Introduction
Hayden and Preskill [23 ] studied an old black hole after roughly half its initial entropy has been emitted. Under rapidly mixing unitary dynamics, they showed that information carried by a quantum system sent into the black hole becomes information-theoretically recoverable after a short interval of further radiation, provided the observer has access to both the earlier and subsequent radiation.
[6 ] described a procedure acting on the old radiation which recovers entanglement with the next single qubit of radiation: If an observer could perform this computation quickly enough, she could then jump into the black hole and discover the partner mode of that qubit, ostensibly violating the monogamy of entanglement.
There have been many interesting ideas addressing this apparent paradox, including foundational ideas in many categories of modern physics. Forefront among these is the computational complexity argument of [22 ] , who showed that while the firewall-creating computation is information-theoretically possible with knowledge of the black hole dynamics, computational complexity evidence suggests that it cannot be carried out before the black hole in question evaporates,3 providing a possible computational obstruction to the proposed experiment.. Further, Aaronson [1 Section 6.5.1, Theorem 6.5.3] derived hardness from injective quantum-secure one-way functions, and Brakerski [12 ] showed an existential equivalence between hard-to-decode black hole states and EFI.
We study this question in the Haar-random oracle model (HROM) introduced by Chen and Movassagh [15 ] , which allows forward and inverse queries. A reference qubit B is initially maximally entangled with one input qubit, while the other n − 1 n-1 n − 1 input qubits are in ∣ 0 ⟩ |0\rangle ∣0 ⟩ . A Haar-random unitary U U U acts on these n n n qubits, and its output is split into radiation R and a remaining black hole H. The observer receives R and must produce a qubit A entangled with B; the observer cannot act on B or H. The observer can query the same unitary used to prepare the radiation, as shown in Figure 1 ; we allow arbitrary computation between queries and study how many queries are needed.
Figure 1. The decoding task. A Hadamard gate and a CNOT prepare the Bell pair; U U U acts on its second qubit and n − 1 n-1 n − 1 qubits initialized to ∣ 0 ⟩ |0\rangle ∣0 ⟩ , producing RH. The decoder receives R, but has no access to B, H. It makes q q q queries on its own registers, which may include R: the preparation query is excluded from q q q . The downward arrows mark registers that are traced out, namely the decoder’s non-output bits and H.
This differs slightly from the [22 ] formulation, where U U U acts on the all-∣ 0 ⟩ |0\rangle ∣0 ⟩ initial state and B is a third output register. There, when ∣ R ∣ |R| ∣ R ∣ is sufficiently larger than ∣ B H ∣ |BH| ∣ B H ∣ , Page’s theorem implies for a typical U U U that the reduced state on the system BH is nearly maximally mixed and recovery from R is information-theoretically possible [22 ] . This remains true here: decoupling implies that a recovery map with high fidelity exists [17 ] . A decoder with access to both R and H, along with inverse access, could simply apply U † U^\dagger U † to the original output, recovering the original input qubit with one query. With access only to R and not H, this trivial strategy fails. We allow queries to U U U , U † U^\dagger U † , U ∗ U^* U ∗ , U T U^{\mathsf{T}} U T , including their controlled versions, and show that recovery still requires exponentially many queries in the regimes stated below. The circuit and its initial auxiliary state must be chosen independently of the sampled U U U .
Results
We measure recovery by E U ∼ μ n ∣ ⟨ Φ + ∣ ρ B A ∣ Φ + ⟩ ∣ \mathbb{E}_{U\sim\mu_n}\lvert\langle\Phi^+|\rho_{BA}|\Phi^+\rangle\rvert E U ∼ μ n ∣⟨ Φ + ∣ ρ B A ∣ Φ + ⟩∣ , the squared Bell-state fidelity of BA averaged over U U U . Outputting a qubit independent of R gives fidelity 1 / 4 1/4 1/4 . Our lower bounds apply to every constant improvement over this value.
Main result (informal). Let ∣ R ∣ ≥ ∣ H ∣ |R|\ge|H| ∣ R ∣ ≥ ∣ H ∣ and fix δ > 0 \delta>0 δ > 0 . Every decoder whose circuit and initial auxiliary state are independent of U U U , and whose Haar-averaged Bell-state fidelity is at least 1 / 4 + δ 1/4+\delta 1/4 + δ , requires
Ω ( 2 ∣ H ∣ ) queries with forward-only access, \Omega(2^{|H|}) \qquad\text{queries with forward-only access,} Ω ( 2 ∣ H ∣ ) queries with forward-only access,
Ω ( min { 2 ∣ H ∣ , 2 n / 16 } ) queries with all four types of access. \Omega\left(\min\{2^{|H|},2^{n/16}\}\right) \qquad\text{queries with all four types of access.} Ω ( min { 2 ∣ H ∣ , 2 n /16 } ) queries with all four types of access.
Both bounds allow controlled queries and arbitrary computation between queries. The second also allows a query to coherently select among U U U , U † U^\dagger U † , U ∗ U^* U ∗ , U T U^{\mathsf{T}} U T and the identity.
The two lower bounds scale the same when ∣ H ∣ ≤ n / 16 |H|\le n/16 ∣ H ∣ ≤ n /16 . Outside this regime, the 2 n / 16 2^{n/16} 2 n /16 cutoff comes from the approximation to the Haar oracle used in the proof. The formal bounds and their implications are in Theorem 3.1 and Corollaries 3.2 and 3.5. The same lower bounds hold if a fixed decoder succeeds on any constant fraction of Haar oracles, by Corollary 3.6.
We demonstrate the decoding bounds by showing bounds for the easier distinguishing task, in which an algorithm receives BR and access to U U U and must distinguish the joint state in the real experiment from the maximally mixed state on BR. A successful decoder implies a successful distinguisher by acting on R and measuring BA onto the ∣ Φ + ⟩ |\Phi^+\rangle ∣ Φ + ⟩ Bell state. The test accepts with the decoder’s fidelity in the real experiment and with probability 1 / 4 1/4 1/4 in the mixed4 experiment.
We discuss a matching upper bound in § 5.1 , where for ∣ R ∣ ≥ ∣ H ∣ + 1 |R|\ge|H|+1 ∣ R ∣ ≥ ∣ H ∣ + 1 we specialize the Uhlmann algorithm of Utsumi et al. [35 Theorem 13] with an oracle-independent cutoff to obtain an O ( 2 ∣ H ∣ ) O(2^{|H|}) O ( 2 ∣ H ∣ ) -query decoder using forward and inverse queries, with average fidelity at least 1 − 2 ⋅ 2 ( ∣ H ∣ − ∣ R ∣ ) / 2 − ϵ 1-2\cdot2^{(|H|-|R|)/2}-\epsilon 1 − 2 ⋅ 2 ( ∣ H ∣ − ∣ R ∣ ) /2 − ϵ for any fixed 0 < ϵ < 1 / 2 0<\epsilon<1/2 0 < ϵ < 1/2 . For ∣ H ∣ ≤ n / 16 |H|\le n/16 ∣ H ∣ ≤ n /16 and ∣ H ∣ → ∞ |H|\to\infty ∣ H ∣ → ∞ , it achieves every fixed target fidelity in ( 1 / 4 , 1 ) (1/4,1) ( 1/4 , 1 ) . Hence our lower bound with all four query types is tight in this regime.
We also discuss several applications in § 5 , including a linear rank lower bound for the Uhlmann transformation task and the security of using the Haar-random oracle to generate EPR pairs and quantum commitments. An Uhlmann transformation aligns two purifications by acting only on the accessible subsystem. For inaccessible marginals ρ , τ \rho,\tau ρ , τ , the relevant rank is r = rank ( ρ τ ) r=\operatorname{rank}(\sqrt{\rho}\sqrt{\tau}) r = rank ( ρ τ ) . The maximum root overlap is ∥ ρ τ ∥ 1 \|\sqrt{\rho}\sqrt{\tau}\|_1 ∥ ρ τ ∥ 1 ; its square is the maximum squared overlap. With ∣ R ∣ = 15 ∣ H ∣ |R|=15|H| ∣ R ∣ = 15∣ H ∣ , our source and a fixed target give a family requiring Ω ( r ) \Omega(r) Ω ( r ) preparation queries, matching the known O ( r ) O(r) O ( r ) upper bound at fixed positive error. The lower bound allows squared-fidelity error up to 1/8 on Haar average and all four query types including coherent selection, as long as the algorithm is chosen independently of U U U .
Further, the joint state on BR and the maximally mixed state form an EFI pair in our public-oracle model: they are efficiently preparable, statistically far apart, and computationally indistinguishable against algorithms with oracle-independent circuits and advice. We use the oracle-relative version of the EFI definition [7 Definition 3.1] , averaging the distinguishing gap over the public Haar oracle. We bound the expected absolute acceptance gap for every such polynomial-query algorithm with all four query types. The standard EFI construction then also gives a statistically binding bit commitment [7 Lemma 4.7] . The Haar encoding itself also commits to an arbitrary qubit: the sender sends R and later reveals H. Our comparison proves computational hiding [19 Definition 4.3] , and decoupling proves statistical swap binding [19 Definition 4.2] .
Organization
§ 2 defines the access model and sets up the experiments, and § 3 states the query bounds, along with the reduction from decoding to distinguishing. § 4 proves the trace-norm bound between the marginals in the path recording experiments, which is our main technical contribution. § 5 presents the decoder, rank lower bound, and cryptographic consequences. The appendices give the full commutator calculations and application proofs.
Related work
Strong random unitaries. Schuster et al. [32 Theorems 1 and 2] define strong unitary designs from Haar in experiments with a bounded number of queries to U U U , U † U^\dagger U † , U ∗ U^* U ∗ , and U T U^T U T , and strong pseudorandom unitaries (PRUs) by indistinguishability for efficient experiments with these query types. At fixed design order and approximation error, their Theorem 1 gives depth O ( log n ) O(\log n) O ( log n ) with ancillas and O ( log 2 n ) O(\log^2 n) O ( log 2 n ) without ancillas. Under their cryptographic assumptions, Theorem 2 gives strong PRUs of depth O ( log n ) O(\log n) O ( log n ) with ancillas and poly ( log n ) \operatorname{poly}(\log n) poly ( log n ) without ancillas.
Their lower bounds [32 Proposition 1] concern circuit depth rather than query count. In § 5 they observe that a strong design encodes as well as Haar in the Hayden–Preskill experiment because the Yoshida–Kitaev decoder uses U ∗ U^* U ∗ , and note that this transfer applies only when decoding is efficient from query access to the four variants.
Our bounds show that decoding from the radiation alone is query-hard for Haar under all four query types. Transfer to a strong design requires its order and access model to cover the complete experiment: a q q q -query decoder and challenge preparation use q + 1 q+1 q + 1 calls, or 4 q + 1 4q+1 4 q + 1 after reducing selected queries to controlled queries. An output trace-norm approximation error of η \eta η changes the average Bell-test probability by at most η / 2 \eta/2 η /2 . For a strong PRU, indistinguishability transfers computational hardness to efficient decoders within its security budget, without the secret circuit description.
In Section 6 they ask whether strong PRUs enable new cryptographic applications and suggest that ancilla-free constructions of commitments would be stronger evidence that natural dynamics have cryptographic properties. Our direct qubit commitment requires no secret key. The sender applies the public oracle U U U to the message qubit and n − 1 n-1 n − 1 qubits initialized to ∣ 0 ⟩ |0\rangle ∣0 ⟩ , without additional registers for encoding. The real EFI state is prepared by applying U U U to one half of a Bell pair and n − 1 n-1 n − 1 qubits initialized to ∣ 0 ⟩ |0\rangle ∣0 ⟩ ; the other half is the reference register B. The bit-commitment protocol keeps a purification register for opening; for commitment to 0, this register is padded so that both opening registers have the same size.
Radiation decoding. Kim, Tang, and Preskill [26 Definition 6.1] formulate the hypothesis that low-rank radiation is computationally indistinguishable from a maximally mixed state. Our bounds give a quantitative analogue in the Haar-random oracle model. The efficient Hayden–Preskill decoder of Yoshida and Kitaev [39 ] has access to an entangled partner of the initial black hole. Here the other input qubits start in a known pure state, and no such partner is supplied to the decoder.
Yang and Engelhardt [38 Theorem 1] study the hardness of learning Haar-random dynamics before a fresh input is supplied. Their algorithm finishes querying before it receives the input, whereas our decoder receives the radiation before its queries. Poremba, Ragavan, and Vaikuntanathan [PRV26, Theorem 8.4] bound joint recovery of a classical message by two separated observers, each making one forward or inverse query.
Haar oracles and query access. Zhandry [41 ] argues that unitary-oracle models should allow controlled access to the unitary, its inverse, conjugate, and transpose. Tang and Wright [33 Theorem 1.1] remove controlled queries for problems that do not depend on a global phase in the oracle. Tang, Wright, and Zhandry [34 Theorem 1.3] show that conjugate queries can give an exponential advantage over forward and inverse queries. Their Theorem 1.7 also gives a commitment secure with forward and inverse access that one conjugate query can break. Bartusek and Goldin [10 ] construct reusable unclonable encryption in the Haar-random oracle model with all four query types and prove a unitary reprogramming lemma. These results motivate proving our decoding and commitment bounds in the stronger access model.
Recording oracles. Zhandry [40 ] introduced compressed oracles for quantum queries to random functions. Carolan [13 ] extends this approach to random permutations, and Carolan and Majenz [16 ] improve its soundness bound. For Haar unitaries, Ma and Huang [29 Theorems 5 and 8] give forward and bidirectional path-recording approximations, and Schuster et al. [32 Theorem 10] extend them to all four query types. Grinko and Yoshida [20 ] give exact compressed oracles for compact-group representations using Clebsch–Gordan transforms, including all four query types. Foxman et al. [18 ] give an exact path-recording construction for closed subgroups of the unitary group. Our proof uses the explicit approximate maps of Ma–Huang and Schuster et al.; the insertion and deletion estimates are proved for those maps.
Uhlmann transformation. Bostanci et al. [8 Theorem 10.3] relate radiation decoding to Uhlmann transformation. Utsumi et al. [35 Theorem 13 and Corollary 5] give an O ( r ) O(r) O ( r ) preparation-query upper bound at fixed fidelity error and a cube-root lower bound in the rank of the inaccessible marginals, at sufficiently small error. They already apply their algorithm to Uhlmann decoders in Theorem 33 and to Haar-based quantum state merging in Theorem 34. Our upper bound specializes the algorithm with one rank cutoff that works for every U U U .
Lee and Jo [LJ26, Theorem 1.1 and Corollary 1.2] prove nearly quadratic sample lower bounds for estimating fidelity to a known rank-r r r reference. At sufficiently small fixed error, their lower bound for a maximally mixed reference also holds with purification copies. Wang [36 Theorems 1.7 and 5.18] proves an Ω ( r / log 2 r ) \Omega(r/\log^2 r) Ω ( r / log 2 r ) query lower bound for fidelity estimation at sufficiently small fixed error. The transformation-to-estimation reduction in Utsumi et al. [35 Proof of Corollary 5] gives the same lower bound for Uhlmann transformation with forward and inverse preparation queries. Section C.4 gives the reduction and checks its hypotheses. Liu and Wang [28 Theorem 3.3 and Corollary 3.4] obtain optimal fidelity estimation when one of the two states is pure, without knowing which one. Our rank lower bound concerns two mixed inaccessible marginals.
Our lower bound is linear, allows squared-fidelity error up to 1 / 8 1/8 1/8 , and includes all four query types on a fixed-target Haar family. The extension of the query-simulation theorem to all four types is left open in [34 Footnote 3] .
Cryptographic consequences. Brakerski [12 Theorems 4.1 and 5.2] gives reductions between EFI pairs and radiation ensembles satisfying hardness and strong decodability conditions. Brakerski, Canetti, and Qian [7 Lemma 4.7] construct quantum bit commitments from EFI pairs. Bostanci et al. [8 Theorem 8.10] characterize commitments with strong statistical hiding and strong computational binding through average-case hard Uhlmann instances with almost equal marginals. Our Uhlmann family has nearly equal inaccessible marginals on BH for most Haar oracles, together with the stated Haar-averaged query lower bound for transforming their purifications. The separate real and mixed challenges on BR form a statistically far EFI pair. This pair gives the computationally hiding, statistically binding bit commitment proved in Corollary 5.6 .
Common Haar states and public unitaries. Chen, Coladangelo, and Sattath [14 ] and Ananth, Gulati, and Lin [AGL25] study cryptography when parties receive copies of common Haar states. They obtain pseudorandom states with bounded-copy security and quantum bit commitments in those models. Goldin and Zhandry [21 ] give conditions for lifting common-Haar-state separations to unitary-oracle separations. Constructions of pseudorandom states and unitaries in quantum and Haar oracle models also appear in [25 ABGL25b, ABGL25a, 24 ] . In particular, the forward-and-inverse constructions [ABGL25a, HY26], combined with the commitment and EFI implications [19 , 7 ] , already give EFI pairs and commitments in that access model. Here the adversary can query the public unitary used to prepare its challenge, with all four query types.
Entropy and entanglement. Bansal et al. [11 Theorem 6 and Appendix M] give EFI pairs by tracing out part of a secret-key pseudorandom state ensemble. Aaronson et al. [ABF+24] construct indistinguishable pure-state ensembles with different entanglement entropies. Bouland et al. [BFG+24] obtain public-key pseudoentanglement under the Learning with Errors assumption. Ryzov et al. [31 ] relate operational definitions of pseudoentanglement to EFI pairs. Our entropy observation concerns mixed BR marginals and follows directly from their rank.
Preliminaries
Notation
We write [ m ] = { 0 , … , m − 1 } [m] = \{0,\ldots,m - 1\} [ m ] = { 0 , … , m − 1 } . Registers are denoted by sans-serif letters. For a register X, its size ∣ X ∣ |X| ∣ X ∣ is its number of qubits. We use ∥ v ∥ 2 \lVert v\rVert_2 ∥ v ∥ 2 for vector norm, ∥ X ∥ \lVert X\rVert ∥ X ∥ for operator norm, and ∥ X ∥ 1 = Tr X † X \lVert X\rVert_1 = \operatorname{Tr}\sqrt{X^\dagger X} ∥ X ∥ 1 = Tr X † X for trace norm. Trace distance is 1 2 ∥ ρ − σ ∥ 1 \frac{1}{2}\lVert\rho- \sigma\rVert_1 2 1 ∥ ρ − σ ∥ 1 . We write F ( ρ , σ ) = ∥ ρ σ ∥ 1 F(\rho,\sigma) = \lVert\sqrt{\rho}\sqrt{\sigma}\rVert_1 F ( ρ , σ ) = ∥ ρ σ ∥ 1 for root fidelity. For a pure target ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ , squared fidelity is ⟨ ψ ∣ ρ ∣ ψ ⟩ \langle\psi|\rho|\psi\rangle ⟨ ψ ∣ ρ ∣ ψ ⟩ . Quantum channels contract trace distance and cannot decrease fidelity [Wai18, Corollary 3.40 and Theorem 3.27]. All logarithms are base two.
The two experiments
Let n ≥ 1 n \ge1 n ≥ 1 , n = ∣ R ∣ + ∣ H ∣ n = |R| + |H| n = ∣ R ∣ + ∣ H ∣ , and x 0 , c = c 0 n − 1 x_{0,c} = c0^{n-1} x 0 , c = c 0 n − 1 for c ∈ { 0 , 1 } c \in\{0,1\} c ∈ { 0 , 1 } . We identify an n n n -qubit output label with a pair ( r , h ) ∈ [ 2 ∣ R ∣ ] × [ 2 ∣ H ∣ ] (r,h) \in[2^{|R|}] \times[2^{|H|}] ( r , h ) ∈ [ 2 ∣ R ∣ ] × [ 2 ∣ H ∣ ] . The oracle U U U is an n n n -qubit unitary sampled from Haar measure. The real experiment prepares
∣ Ψ 0 r e a l , U ⟩ = 1 2 ∑ c ∈ { 0 , 1 } ∣ c ⟩ B ( U ∣ x 0 , c ⟩ ) R H . (1) |\Psi_0^{\mathrm{real},U}\rangle= \frac{1}{\sqrt{2}} \sum_{c \in\{0,1\}} |c\rangle_B (U|x_{0,c}\rangle)_{RH}. \tag*{(1)} ∣ Ψ 0 real , U ⟩ = 2 1 c ∈ { 0 , 1 } ∑ ∣ c ⟩ B ( U ∣ x 0 , c ⟩ ) R H . (1)
The resulting challenge on BR is
ρ B R U = Tr H [ ∣ Ψ 0 r e a l , U ⟩ ⟨ Ψ 0 r e a l , U ∣ ] . \rho_{\mathrm{BR}}^U = \operatorname{Tr}_H\left[|\Psi_0^{\mathrm{real},U}\rangle\langle\Psi_0^{\mathrm{real},U}|\right]. ρ BR U = Tr H [ ∣ Ψ 0 real , U ⟩ ⟨ Ψ 0 real , U ∣ ] .
The distinguishing algorithm receives BR and has no access to H. The mixed experiment supplies 1 B R / 2 1 + ∣ R ∣ \mathbb{1}_{\mathrm{BR}}/2^{1+|R|} 1 BR / 2 1 + ∣ R ∣ instead, with the same oracle U U U . The algorithm’s query count q q q excludes the one forward query used to prepare the real challenge. Let ρ q r e a l , U \rho_q^{\mathrm{real},U} ρ q real , U and ρ q m i x e d , U \rho_q^{\mathrm{mixed},U} ρ q mixed , U be its states immediately after the last query, averaged over U U U ; for q = 0 q = 0 q = 0 , these are the supplied input states, including the auxiliary state. Every bound also holds after the algorithm’s final oracle-independent channel, including its complete computation when q = 0 q = 0 q = 0 , by contractivity.
A uniform bit b b b , sampled independently of U U U , selects the real experiment for b = 0 b = 0 b = 0 and the mixed experiment for b = 1 b = 1 b = 1 . A distinguishing algorithm outputs a a a and has advantage Pr [ a = b ] − 1 / 2 \Pr[a=b] - 1/2 Pr [ a = b ] − 1/2 . A decoder acts only on R and auxiliary registers and outputs a qubit A. Its squared Bell-state fidelity for a fixed oracle and its Haar average are
f D ( U ) = ⟨ Φ + ∣ ( id B ⊗ D U ) ( ρ B R U ) ∣ Φ + ⟩ , f_D(U) = \langle\Phi^+|(\operatorname{id}_B \otimes D^U)(\rho_{\mathrm{BR}}^U)|\Phi^+\rangle, f D ( U ) = ⟨ Φ + ∣ ( id B ⊗ D U ) ( ρ BR U ) ∣ Φ + ⟩ ,
f = E U f D ( U ) , ∣ Φ + ⟩ = ∣ 00 ⟩ + ∣ 11 ⟩ 2 . f = \mathbb{E}_U f_D(U), \qquad|\Phi^+\rangle= \frac{|00\rangle+ |11\rangle}{\sqrt{2}}. f = E U f D ( U ) , ∣ Φ + ⟩ = 2 ∣00 ⟩ + ∣11 ⟩ .
Thus fidelity in the decoding task is the acceptance probability of the Bell-state test. Outputting a fixed qubit independently of the radiation gives f = 1 / 4 f = 1/4 f = 1/4 .
Oracle algorithms
Conjugation and transposition are in the computational basis. The allowed query types are
U ? for ? ∈ { 1 , † , ∗ , T } , U^{?} \qquad\text{for } ? \in\{1,\dagger,*,T\}, U ? for ? ∈ { 1 , † , ∗ , T } ,
with U 1 = U U^1 = U U 1 = U . Forward-only access permits U U U ; bidirectional access permits U , U † U,U^\dagger U , U † ; four-mode access permits every U ? U^{?} U ? . A controlled query applies one type conditional on a control register; a selected query coherently chooses among the four types and the identity. Corollary 3.4 states its constant-factor cost.
The algorithm has an n n n -qubit query register Q and a workspace W. In the distinguishing experiment, W includes BR and the auxiliary registers. Its initial auxiliary state is supplied in tensor product with the challenge and is independent of U U U and b b b . Every operation between queries is independent of the sampled U U U . The bounds permit nonuniform circuits, arbitrary auxiliary states, and unbounded computation, subject to this independence condition.
For the proof, we purify the auxiliary state with a register independent of U U U and b b b and include it in W. Giving the algorithm this register can only help it. By also storing measurement outcomes and discarded registers in the workspace, we may take all operations between queries to be isometries. For a fixed sequence of query types, the enlarged algorithm has the form
A q + 1 U q A q ⋯ U 1 A 1 , U i ∈ { U , U † , U ∗ , U T } . A_{q+1} U_q A_q \cdots U_1 A_1, \qquad U_i \in\{U,U^\dagger,U^*,U^{\mathsf T}\}. A q + 1 U q A q ⋯ U 1 A 1 , U i ∈ { U , U † , U ∗ , U T } .
All A i A_i A i are oracle-independent isometries on the algorithm’s registers. Storing measurement outcomes in a control register includes classical choices in the selected-query model; terminated branches select the identity.
Query lower bounds
The two experiments are difficult to distinguish with few queries. The following state bounds quantify this for a fixed sequence of uncontrolled query types. Their proofs are given in § 4 .
Theorem 3.1 (Four query types). Let ∣ R ∣ ≥ ∣ H ∣ |\mathrm{R}| \geq|\mathrm{H}| ∣ R ∣ ≥ ∣ H ∣ and q ≥ 0 q \geq0 q ≥ 0 . For every algorithm in the two experiments of § 2.2 , with circuit and initial auxiliary state independent of U U U and a fixed sequence of q q q uncontrolled queries to U ? U^{?} U ? ,
∥ ρ q r e a l , U ? − ρ q m i x e d , U ? ∥ 1 ≤ min { 2 , ( 25 + 24 2 ) q 2 ∣ H ∣ + 36 ( q + 1 ) 2 2 n / 8 } . (2) \left\|\rho_q^{\mathrm{real},U?}-\rho_q^{\mathrm{mixed},U?}\right\|_1 \leq\min\left\{2,\,(25+24\sqrt{2})\frac{q}{2|\mathrm{H}|}+\frac{36(q+1)^2}{2^{n/8}}\right\}. \tag*{(2)} ρ q real , U ? − ρ q mixed , U ? 1 ≤ min { 2 , ( 25 + 24 2 ) 2∣ H ∣ q + 2 n /8 36 ( q + 1 ) 2 } . (2)
Forward-only access gives a sharper comparison, depending only on q / 2 ∣ H ∣ q/2^{|\mathrm{H}|} q / 2 ∣ H ∣ . Write ρ q j , U \rho_q^{j,U} ρ q j , U for the same Haar-averaged output when every query is forward, for j ∈ { r e a l , m i x e d } j \in\{\mathrm{real},\mathrm{mixed}\} j ∈ { real , mixed } .
Corollary 3.2 (Forward-only bound). Under the same independence assumptions as Theorem 3.1 , for ∣ R ∣ ≥ ∣ H ∣ |\mathrm{R}| \geq|\mathrm{H}| ∣ R ∣ ≥ ∣ H ∣ and any q ≥ 0 q \geq0 q ≥ 0 , forward-only queries satisfy
∥ ρ q r e a l , U − ρ q m i x e d , U ∥ 1 ≤ min { 2 , ( 12 + 3 2 ) q 2 ∣ H ∣ } . (3) \left\|\rho_q^{\mathrm{real},U}-\rho_q^{\mathrm{mixed},U}\right\|_1 \leq\min\left\{2,\,(12+3\sqrt{2})\frac{q}{2|\mathrm{H}|}\right\}. \tag*{(3)} ρ q real , U − ρ q mixed , U 1 ≤ min { 2 , ( 12 + 3 2 ) 2∣ H ∣ q } . (3)
Both statements compare the complete experiments, in which the challenge and later queries use the same sampled oracle. We now include controlled and selected queries and derive the distinguishing and decoding lower bounds.
Controlled and selected queries
Corollary 3.3 (Controlled queries). The Haar bounds in Equations (2) and (3) also hold for controlled queries, with the same query count.
Proof Sketch. Tang–Wright [33 Theorem 1.1 and Claim 2.6] replace each controlled query by one uncontrolled query of the same type. The replacement circuit is independent of U U U and its input. For every fixed U U U and input, including reference registers, its output is the original output averaged over one common random global phase of U U U . The real challenge is unchanged under U ↦ e i θ U U \mapsto e^{i\theta}U U ↦ e i θ U , since its preparation acquires only a global phase; the mixed challenge is also unchanged. Thus the same replacement applies to either challenge, including the oracle-dependent real input. Haar measure is phase invariant, so both averaged output states and the query count are preserved. The uncontrolled bounds therefore apply with the same query count. Section B.1 gives the counter construction and the phase-invariance calculation.
Corollary 3.4 (Selected queries). For q q q queries coherently selecting among 1 , U , U † , U ∗ , U T 1,U,U^\dagger,U^*,U^{\mathsf{T}} 1 , U , U † , U ∗ , U T , Equation (2) holds with q q q replaced by 4 q 4q 4 q . This includes adaptive choices of query type.
Proof. Let P 0 , … , P 4 P_0,\ldots,P_4 P 0 , … , P 4 be fixed pairwise orthogonal control projectors with sum 1 \mathbb{1} 1 . Set U 1 = U , U 2 = U † , U 3 = U ∗ , U 4 = U T U_1=U,U_2=U^\dagger,U_3=U^*,U_4=U^{\mathsf{T}} U 1 = U , U 2 = U † , U 3 = U ∗ , U 4 = U T . Then
1 ⊗ P 0 + ∑ j = 1 4 U j ⊗ P j = ∏ j = 1 4 ( 1 ⊗ ( 1 − P j ) + U j ⊗ P j ) . \mathbb{1}\otimes P_0+\sum_{j=1}^{4}U_j\otimes P_j=\prod_{j=1}^{4}\left(\mathbb{1}\otimes(1-P_j)+U_j\otimes P_j\right). 1 ⊗ P 0 + j = 1 ∑ 4 U j ⊗ P j = j = 1 ∏ 4 ( 1 ⊗ ( 1 − P j ) + U j ⊗ P j ) .
On the range of P j P_j P j for 1 ≤ j ≤ 4 1 \le j \le4 1 ≤ j ≤ 4 , only the j j j th factor is nontrivial; on the range of P 0 P_0 P 0 , all factors are the identity. For each fixed projector P j P_j P j , we can compute its binary control into an auxiliary qubit, make the controlled query, and uncompute the qubit using oracle-independent gates. Thus four controlled queries implement the selected query. The claim follows from Corollary 3.3. Measurement outcomes can be stored in the control, and terminated branches select the identity.
Distinguishing and decoding
Corollary 3.5 (Distinguishing and decoding). For ∣ R ∣ ≥ ∣ H ∣ |R| \ge|H| ∣ R ∣ ≥ ∣ H ∣ , a fixed positive Haar-averaged distinguishing advantage requires
q = Ω ( 2 ∣ H ∣ ) q = \Omega(2^{|H|}) q = Ω ( 2 ∣ H ∣ ) with forward-only access,
q = Ω ( min { 2 ∣ H ∣ , 2 n / 16 } ) q = \Omega\left(\min\{2^{|H|},2^{n/16}\}\right) q = Ω ( min { 2 ∣ H ∣ , 2 n /16 } ) with all four query types.
Both bounds allow controlled queries; the second also allows selected inverse, conjugate, and transpose queries. The same bounds hold for a fixed positive decoding fidelity advantage over 1 / 4 1/4 1/4 .
Proof. Let 0 ≤ M ≤ 1 0 \le M \le1 0 ≤ M ≤ 1 be the effect for guessing the real experiment and write Δ = ρ q r e a l , U ? − ρ q m i x e d , U ? \Delta= \rho_q^{\mathrm{real},U?} - \rho_q^{\mathrm{mixed},U?} Δ = ρ q real , U ? − ρ q mixed , U ? . Since Tr Δ = 0 \operatorname{Tr}\Delta= 0 Tr Δ = 0 , its positive and negative parts each have trace ∥ Δ ∥ 1 / 2 \|\Delta\|_1/2 ∥Δ ∥ 1 /2 . Consequently,
Pr [ a = b ] − 1 2 = 1 2 Tr [ M Δ ] ≤ 1 4 ∥ Δ ∥ 1 . \Pr[a=b]-\frac{1}{2}=\frac{1}{2}\operatorname{Tr}[M\Delta]\le\frac{1}{4}\|\Delta\|_1. Pr [ a = b ] − 2 1 = 2 1 Tr [ M Δ ] ≤ 4 1 ∥Δ ∥ 1 .
The state bounds give the query lower bounds for any fixed advantage, using q + 1 ≤ 2 q q+1 \le2q q + 1 ≤ 2 q for q ≥ 1 q \ge1 q ≥ 1 . At q = 0 q=0 q = 0 , Haar twirling gives equal averaged inputs. Section B.2 gives explicit lower-bound constants.
For decoding, run the decoder and measure B A BA B A with the Bell projector. In the real experiment this accepts with average probability f f f . For each fixed U U U , the mixed output is 1 B / 2 ⊗ σ A U \mathbb{1}_B/2 \otimes\sigma_A^U 1 B /2 ⊗ σ A U for a state σ A U \sigma_A^U σ A U of trace one. Since Tr B ∣ Φ + ⟩ ⟨ Φ + ∣ = 1 A / 2 \operatorname{Tr}_B|\Phi^+\rangle\langle\Phi^+|=\mathbb{1}_A/2 Tr B ∣ Φ + ⟩ ⟨ Φ + ∣ = 1 A /2 , its acceptance probability is
Tr [ ∣ Φ + ⟩ ⟨ Φ + ∣ ( 1 B 2 ⊗ σ A U ) ] = 1 4 Tr σ A U = 1 4 . \operatorname{Tr}\left[|\Phi^+\rangle\langle\Phi^+|\left(\frac{\mathbb{1}_B}{2}\otimes\sigma_A^U\right)\right]=\frac{1}{4}\operatorname{Tr}\sigma_A^U=\frac{1}{4}. Tr [ ∣ Φ + ⟩ ⟨ Φ + ∣ ( 2 1 B ⊗ σ A U ) ] = 4 1 Tr σ A U = 4 1 .
The resulting distinguishing advantage is ( f − 1 / 4 ) / 2 (f-1/4)/2 ( f − 1/4 ) /2 , with the same queries.
Corollary 3.6 (Decoding on a constant fraction of oracles). Fix p , δ > 0 p,\delta>0 p , δ > 0 and let ∣ R ∣ ≥ ∣ H ∣ |R| \ge|H| ∣ R ∣ ≥ ∣ H ∣ . The asymptotic decoding lower bounds in Corollary 3.5 also hold for any q q q -query decoder, with circuit and initial auxiliary state independent of U U U , satisfying
Pr U [ f D ( U ) ≥ 1 / 4 + δ ] ≥ p . \Pr_U[f_D(U)\ge1/4+\delta]\ge p. U Pr [ f D ( U ) ≥ 1/4 + δ ] ≥ p . The lower-bound constants may depend on p , δ p,\delta p , δ .
Proof sketch. Using fresh challenges and auxiliary states, a distinguisher estimates whether the decoder’s Bell-test probability is above or below 1 / 4 1/4 1/4 . It then tests the original challenge and reverses the outcome if the estimated sign is negative. A constant number of trials, depending only on p , δ p,\delta p , δ , gives a Haar-averaged acceptance gap at least p δ / 2 p\delta/2 p δ /2 . The total query count is O ( q + 1 ) O(q+1) O ( q + 1 ) , so Corollary 3.5 applies. Section B.3 proves the sign estimate and checks conditional independence.
Proof sketch of the query bounds
In this section we outline the proof of Theorem 3.1 and Corollary 3.2, with some explicit calculations pushed to the appendix. A distinguishing algorithm is supplied a state on BR as a challenge, either prepared as in Figure 1 , or in the mixed state 1 B R / 2 1 + ∣ R ∣ \mathbb{1}_{\mathrm{BR}}/2^{1+|R|} 1 BR / 2 1 + ∣ R ∣ . The real and mixed challenges have the same Haar average before any query, but the marginals can become distinguishable as queries are made. In the real and mixed experiments respectively, write ρ q r e a l , U ? , ρ q m i x e d , U ? \rho_q^{\mathrm{real},U^?},\rho_q^{\mathrm{mixed},U^?} ρ q real , U ? , ρ q mixed , U ? for the algorithm’s averaged states after q q q queries to U ? U^? U ? , where ? ∈ { 1 , † , ∗ , T } ? \in\{1,\dagger,*,\mathrm{T}\} ? ∈ { 1 , † , ∗ , T } .
The path-recording constructions of Ma and Huang [29 ] and Schuster et al. [32 ] replace Haar queries by explicit maps V , V ˉ V,\bar{V} V , V ˉ so that U , U † , U ∗ , U T U,U^\dagger,U^*,U^{\mathrm{T}} U , U † , U ∗ , U T are replaced by V , V † , V ˉ , V ˉ † V,V^\dagger,\bar{V},\bar{V}^\dagger V , V † , V ˉ , V ˉ † respectively. V ˉ \bar{V} V ˉ is the recording map for conjugate access, rather than the entrywise conjugate of V V V . These maps store a “path record” of queried input/output pairs in inaccessible left and right query registers E L , E R E_{\mathrm{L}},E_{\mathrm{R}} E L , E R , which store relation states ∣ L ⟩ E L ∣ R ⟩ E R |L\rangle_{E_{\mathrm{L}}}|R\rangle_{E_{\mathrm{R}}} ∣ L ⟩ E L ∣ R ⟩ E R where each of L , R L,R L , R is a multiset of pairs in [ 2 n ] 2 [2^n]^2 [ 2 n ] 2 . The size ∣ L ∣ |L| ∣ L ∣ counts multiplicities, and num ( L , e ) \operatorname{num}(L,e) num ( L , e ) is the multiplicity of the pair e e e . The notation L ∖ { e } L\setminus\{e\} L ∖ { e } removes one copy of e e e . The union L ∪ R L \cup R L ∪ R adds multiplicities, so ∣ L ∪ R ∣ = ∣ L ∣ + ∣ R ∣ |L \cup R| = |L| + |R| ∣ L ∪ R ∣ = ∣ L ∣ + ∣ R ∣ . Write
Im ( L ) = { y : ( x , y ) ∈ L for some x } , Dom ( L ) = { x : ( x , y ) ∈ L for some y } . \operatorname{Im}(L)=\{y:(x,y)\in L\text{ for some }x\},\qquad\operatorname{Dom}(L)=\{x:(x,y)\in L\text{ for some }y\}. Im ( L ) = { y : ( x , y ) ∈ L for some x } , Dom ( L ) = { x : ( x , y ) ∈ L for some y } .
The record basis consists of the normalized symmetric relation states of Ma and Huang [29 Section 2.1] , with ∣ ∅ ⟩ |\emptyset\rangle ∣∅ ⟩ denoting the empty relation. For each fixed size, the states indexed by these multisets form an orthonormal basis of the symmetric subspace: Section A.1 gives the explicit description. A forward recording query can create a pair in E L E_L E L or delete a pair from E R E_R E R ; an inverse query reverses these roles. The maps A , B A, B A , B describe creation with a fresh output or input, and their adjoints describe deletion. The barred maps exchange the two records, as summarized below. Our A , B A, B A , B are the maps denoted V L , V R V^L, V^R V L , V R in Ma–Huang [29 Definition 25] ; A ˉ , B ˉ \bar{A}, \bar{B} A ˉ , B ˉ correspond to the barred maps in Schuster et al. [32 Definition 25] . For ∣ L ∪ R ∣ < 2 n |L \cup R| < 2^n ∣ L ∪ R ∣ < 2 n , the two parts of the bidirectional oracle of Ma–Huang [29 Definition 25] are
A ∣ x ⟩ Q ∣ L ⟩ E L ∣ R ⟩ E R = 1 2 n − ∣ Im ( L ∪ R ) ∣ ∑ y ∉ Im ( L ∪ R ) ∣ y ⟩ Q ∣ L ∪ { ( x , y ) } ⟩ E L ∣ R ⟩ E R . A|x\rangle_Q|L\rangle_{E_L}|R\rangle_{E_R}
=
\frac{1}{\sqrt{2^n-|\operatorname{Im}(L\cup R)|}}
\sum_{y\notin\operatorname{Im}(L\cup R)}
|y\rangle_Q|L\cup\{(x,y)\}\rangle_{E_L}|R\rangle_{E_R}. A ∣ x ⟩ Q ∣ L ⟩ E L ∣ R ⟩ E R = 2 n − ∣ Im ( L ∪ R ) ∣ 1 y ∈ / Im ( L ∪ R ) ∑ ∣ y ⟩ Q ∣ L ∪ {( x , y )} ⟩ E L ∣ R ⟩ E R .
B ∣ y ⟩ Q ∣ L ⟩ E L ∣ R ⟩ E R = 1 2 n − ∣ Dom ( L ∪ R ) ∣ ∑ x ∉ Dom ( L ∪ R ) ∣ x ⟩ Q ∣ L ⟩ E L ∣ R ∪ { ( x , y ) } ⟩ E R . B|y\rangle_Q|L\rangle_{E_L}|R\rangle_{E_R}
=
\frac{1}{\sqrt{2^n-|\operatorname{Dom}(L\cup R)|}}
\sum_{x\notin\operatorname{Dom}(L\cup R)}
|x\rangle_Q|L\rangle_{E_L}|R\cup\{(x,y)\}\rangle_{E_R}. B ∣ y ⟩ Q ∣ L ⟩ E L ∣ R ⟩ E R = 2 n − ∣ Dom ( L ∪ R ) ∣ 1 x ∈ / Dom ( L ∪ R ) ∑ ∣ x ⟩ Q ∣ L ⟩ E L ∣ R ∪ {( x , y )} ⟩ E R .
The corresponding creation maps for conjugate access are those of Schuster et al. [32 Definition 25] . They have the same fresh-coordinate rule, with the destination records exchanged:
A ˉ = SWAP E L E R A SWAP E L E R , B ˉ = SWAP E L E R B SWAP E L E R . \bar{A}=\operatorname{SWAP}_{E_L E_R}A\operatorname{SWAP}_{E_L E_R},\qquad
\bar{B}=\operatorname{SWAP}_{E_L E_R}B\operatorname{SWAP}_{E_L E_R}. A ˉ = SWAP E L E R A SWAP E L E R , B ˉ = SWAP E L E R B SWAP E L E R .
Each map is zero outside its defining domain. The path recording oracle is then
V = A ( 1 − B B † ) + ( 1 − A A † ) B † , V=A(1-BB^\dagger)+(1-AA^\dagger)B^\dagger, V = A ( 1 − B B † ) + ( 1 − A A † ) B † ,
V ˉ = A ˉ ( 1 − B ˉ B ˉ † ) + ( 1 − A ˉ A ˉ † ) B ˉ † . \bar{V}=\bar{A}(1-\bar{B}\bar{B}^\dagger)+(1-\bar{A}\bar{A}^\dagger)\bar{B}^\dagger. V ˉ = A ˉ ( 1 − B ˉ B ˉ † ) + ( 1 − A ˉ A ˉ † ) B ˉ † .
so that V , V † , V ˉ , V ˉ † V,V^\dagger,\bar{V},\bar{V}^\dagger V , V † , V ˉ , V ˉ † replace U , U † , U ∗ , U T U,U^\dagger,U^*,U^T U , U † , U ∗ , U T , respectively. The projection factors keep the A A A and B B B terms separate, so that V V V and V ˉ \bar{V} V ˉ are both partial isometries. Each increases ∣ L ∪ R ∣ |L\cup R| ∣ L ∪ R ∣ by at most one.
[32 ] show that this replacement results in approximation error of at most O ( q 2 2 n ) O\left(\frac{q^2}{2^n}\right) O ( 2 n q 2 ) in trace distance between the output state using Haar queries and the one using path recording queries. For forward only queries, this is instead O ( q 2 2 n ) O\left(\frac{q^2}{2^n}\right) O ( 2 n q 2 ) [29 ] . Their approximation theorems apply to a complete circuit starting with empty records, including the one call that prepares the real challenge. Our technical contribution is the comparison between the two path-recording states: the chain is shown in Figure 3 .
Figure 3. The four experiments for a fixed sequence of uncontrolled queries. The upper states are averaged over the same oracle used for challenge preparation and queries. The vertical comparisons use the path recording Haar approximations; our calculation proves the bottom comparison. In all cases ρ \rho ρ denotes the reduced state on the algorithm’s registers. Figure 2 and 4 show all four circuits.
Connecting the path recording experiments
Replacing the Haar-random oracle in Figure 2 with the path recording oracle, we obtain the circuits in Figure 4.
Figure 2. The Haar experiments. The real preparation makes one forward call to U U U ; the mixed preparation makes none. The algorithm then makes q q q queries, with U i ∈ { U , U † , U ∗ , U T } U_i \in\{U,U^\dagger,U^*,U^{\mathrm{T}}\} U i ∈ { U , U † , U ∗ , U T } . Each gate A i A_i A i acts on QW; the dots omit intermediate gates and queries. In the mixed panel, the copies from R, H are bitwise CNOTs, while the copy from B writes only the first bit of x 0 , c x_{0,c} x 0 , c . Downward arrows trace out the hidden registers. The output labels include the average over the same U U U used throughout.
Figure 4.
Figure 4 (PDF p. 14). The recording experiments. Each V i ∈ { V , V † , V ˉ , V ˉ † } V_i \in\{V,V^\dagger,\bar{V},\bar{V}^\dagger\} V i ∈ { V , V † , V ˉ , V ˉ † } acts on Q E L E R \mathrm{Q}E_L E_R Q E L E R , as indicated by the small squares connected to its gate. The algorithm gates leave all external registers untouched. The real preparation places e 0 e_0 e 0 in E L E_L E L ; the mixed preparation leaves e 0 e_0 e 0 in E 0 E_0 E 0 and both oracle records empty. Dashed cuts mark the initial and final vectors. Downward arrows trace out hidden registers to give the displayed marginals, which may be subnormalized. The map J J J compares the purifications in the proof; it is not a circuit gate.
For the challenge pair, we use y 0 = ( r , h ) y_0=(r,h) y 0 = ( r , h ) and e 0 = ( x 0 , c , y 0 ) e_0=(x_{0,c},y_0) e 0 = ( x 0 , c , y 0 ) . In general c ∈ { 0 , 1 } c \in\{0,1\} c ∈ { 0 , 1 } , r ∈ [ 2 ∣ R ∣ ] r \in[2^{|R|}] r ∈ [ 2 ∣ R ∣ ] , h ∈ [ 2 ∣ H ∣ ] h \in[2^{|H|}] h ∈ [ 2 ∣ H ∣ ] , and x , y ∈ [ 2 n ] x,y \in[2^n] x , y ∈ [ 2 n ] . The initial path-recording purifications are
∣ Ψ 0 r e a l , V ′ ⟩ = 1 2 n + 1 ∑ c , r , h ∣ c , r ⟩ B R ∣ h ⟩ H ∣ { e 0 } ⟩ E L ∣ ∅ ⟩ E R . (4) |\Psi_0^{\mathrm{real},V'}\rangle= \frac{1}{\sqrt{2^{n+1}}}\sum_{c,r,h}|c,r\rangle_{BR}|h\rangle_H|\{e_0\}\rangle_{E_L}|\varnothing\rangle_{E_R}. \tag*{(4)} ∣ Ψ 0 real , V ′ ⟩ = 2 n + 1 1 c , r , h ∑ ∣ c , r ⟩ B R ∣ h ⟩ H ∣ { e 0 } ⟩ E L ∣ ∅ ⟩ E R . (4)
∣ Ψ 0 m i x e d , V ′ ⟩ = 1 2 n + 1 ∑ c , r , h ∣ c , r ⟩ B R ∣ h ⟩ H ∣ e 0 ⟩ E 0 ∣ ∅ ⟩ E L ∣ ∅ ⟩ E R . (5) |\Psi_0^{\mathrm{mixed},V'}\rangle= \frac{1}{\sqrt{2^{n+1}}}\sum_{c,r,h}|c,r\rangle_{BR}|h\rangle_H|e_0\rangle_{E_0}|\varnothing\rangle_{E_L}|\varnothing\rangle_{E_R}. \tag*{(5)} ∣ Ψ 0 mixed , V ′ ⟩ = 2 n + 1 1 c , r , h ∑ ∣ c , r ⟩ B R ∣ h ⟩ H ∣ e 0 ⟩ E 0 ∣ ∅ ⟩ E L ∣ ∅ ⟩ E R . (5)
The first state is obtained by one V V V query with empty records: B † B^\dagger B † annihilates that input, so V V V agrees with A A A there. Tracing out H E 0 HE_0 H E 0 in the second state gives the mixed challenge 1 B R / 2 1 + ∣ R ∣ \mathbb{1}_{BR}/2^{1+|R|} 1 B R / 2 1 + ∣ R ∣ . These differ only by the location of the challenge pair e 0 e_0 e 0 , and to relate them we use an insertion map J J J following the merge-map method of Ananth et al. [ABGL25a, Section 2.1], acting only on the external registers E 0 E L E_0E_L E 0 E L :
J ∣ e ⟩ E 0 ∣ L ⟩ E L ∣ R ⟩ E R = num ( L , e ) + 1 ∣ L ∪ { e } ⟩ E L ∣ R ⟩ E R . (6) J|e\rangle_{E_0}|L\rangle_{E_L}|R\rangle_{E_R}=\sqrt{\operatorname{num}(L,e)+1}|L\cup\{e\}\rangle_{E_L}|R\rangle_{E_R}. \tag*{(6)} J ∣ e ⟩ E 0 ∣ L ⟩ E L ∣ R ⟩ E R = num ( L , e ) + 1 ∣ L ∪ { e } ⟩ E L ∣ R ⟩ E R . (6)
Note that it is not an isometry: different choices of ∣ e 0 ⟩ E 0 ∣ L ⟩ E L |e_0\rangle_{E_0}|L\rangle_{E_L} ∣ e 0 ⟩ E 0 ∣ L ⟩ E L can yield the same ∣ L ∪ { e 0 } ⟩ E L |L\cup\{e_0\}\rangle_{E_L} ∣ L ∪ { e 0 } ⟩ E L after insertion, so insertion need not preserve inner products. It aligns the initial states exactly: J ∣ Ψ 0 m i x e d , V ′ ⟩ = ∣ Ψ 0 r e a l , V ′ ⟩ J|\Psi_0^{\mathrm{mixed},V'}\rangle=|\Psi_0^{\mathrm{real},V'}\rangle J ∣ Ψ 0 mixed , V ′ ⟩ = ∣ Ψ 0 real , V ′ ⟩ . For ∣ L ∣ = ℓ |L|=\ell ∣ L ∣ = ℓ , symmetrizing the inserted challenge with the ℓ \ell ℓ other positions gives J = ℓ + 1 Π s y m J=\sqrt{\ell+1}\Pi_{\mathrm{sym}} J = ℓ + 1 Π sym , which for the normalized relation states already symmetric on E L E_L E L gives the coefficient in Equation (6) . Since the symmetrization projection squares to itself, this gives
J † J = 1 + Σ , Σ = ∑ i = 1 ℓ SWAP 0 i , (7) J^\dagger J = 1 + \Sigma,\qquad\Sigma= \sum_{i=1}^{\ell} \operatorname{SWAP}_{0i}, \tag*{(7)} J † J = 1 + Σ , Σ = i = 1 ∑ ℓ SWAP 0 i , (7)
where position 0 is E0 _0 0 and positions 1 , … , ℓ 1,\ldots,\ell 1 , … , ℓ form EL _L L . This is again spelled out in Section A.1. After q q q queries, the two purifications are
∣ Ψ q j , V ⟩ = V q A q ⋯ V 1 A 1 ∣ Ψ 0 j , V ⟩ , j ∈ { r e a l , m i x e d } , \lvert\Psi_q^{j,V}\rangle= V_q A_q \cdots V_1 A_1\lvert\Psi_0^{j,V}\rangle,\qquad j\in\{\mathrm{real},\mathrm{mixed}\}, ∣ Ψ q j , V ⟩ = V q A q ⋯ V 1 A 1 ∣ Ψ 0 j , V ⟩ , j ∈ { real , mixed } ,
with marginals on QW denoted by ρ q j , V \rho_q^{j,V} ρ q j , V . Each recording query acts on QEL _L L ER _R R while the algorithm gates act on QW. In the mixed experiment, E0 _0 0 therefore remains isolated throughout the experiment.
Write A \mathcal{A} A for the recording-algorithm operator, distinguishing it from primitive creation A A A , and let ∣ ψ ⟩ \lvert\psi\rangle ∣ ψ ⟩ be the mixed initial vector in Equation (5) . Insertion consumes E0 _0 0 , so the real and mixed marginals use different partial traces:
ρ q r e a l , V = Tr H E R ∣ A J ψ ⟩ ⟨ A J ψ ∣ , \rho_q^{\mathrm{real},V}=\operatorname{Tr}_{\mathrm{HE}_R}\lvert A J\psi\rangle\langle A J\psi\rvert, ρ q real , V = Tr HE R ∣ A J ψ ⟩ ⟨ A J ψ ∣ ,
ρ q m i x e d , V = Tr H E 0 E L E R ∣ A ψ ⟩ ⟨ A ψ ∣ , \rho_q^{\mathrm{mixed},V}=\operatorname{Tr}_{\mathrm{HE}_0\mathrm{E}_L\mathrm{E}_R}\lvert A\psi\rangle\langle A\psi\rvert, ρ q mixed , V = Tr HE 0 E L E R ∣ A ψ ⟩ ⟨ A ψ ∣ ,
ρ ~ q = Tr H E L E R ∣ J A ψ ⟩ ⟨ J A ψ ∣ . \widetilde{\rho}_q=\operatorname{Tr}_{\mathrm{HE}_L\mathrm{E}_R}\lvert J A\psi\rangle\langle J A\psi\rvert. ρ q = Tr HE L E R ∣ J A ψ ⟩ ⟨ J A ψ ∣ .
We bound the difference between the mixed marginal and ρ ~ q \widetilde{\rho}_q ρ q , and then between ρ ~ q \widetilde{\rho}_q ρ q and the real marginal. Both bounds apply to the full coherent states, grouping contributions with identical final labels.
Both error estimates use the same property of the mixed purification: its challenge pair stays in E0 _0 0 , which neither the algorithm nor the recording maps touch. Changing h h h thus changes only the labels in H, E0 _0 0 ; the coefficient vectors on the algorithm and oracle records are unchanged. For the mixed state immediately before query t t t , write
∣ ϕ t ′ ⟩ = A t V t − 1 A t − 1 ⋯ V 1 A 1 ∣ Ψ 0 m i x e d , V ⟩ . \lvert\phi'_t\rangle=A_tV_{t-1}A_{t-1}\cdots V_1A_1\lvert\Psi_0^{\mathrm{mixed},V}\rangle. ∣ ϕ t ′ ⟩ = A t V t − 1 A t − 1 ⋯ V 1 A 1 ∣ Ψ 0 mixed , V ⟩ .
The coefficient vectors at every stage can be grouped as
∣ α c , r ⟩ = ∑ x , L , R ∣ L ∪ R ∣ ≤ q ∣ x ⟩ Q ∣ α c , r , x , L , R ⟩ W ∣ L ⟩ E L ∣ R ⟩ E R . \lvert\alpha_{c,r}\rangle=
\sum_{\substack{x,L,R\\ \lvert L\cup R\rvert\le q}}
\lvert x\rangle_Q\lvert\alpha_{c,r,x,L,R}\rangle_W\lvert L\rangle_{E_L}\lvert R\rangle_{E_R}. ∣ α c , r ⟩ = x , L , R ∣ L ∪ R ∣ ≤ q ∑ ∣ x ⟩ Q ∣ α c , r , x , L , R ⟩ W ∣ L ⟩ E L ∣ R ⟩ E R .
They are independent of h h h , and the mixed-experiment vector has the form
∣ ϕ ⟩ = 1 2 n + 1 ∑ c , r , h ∣ α c , r ⟩ Q W E L E R ∣ h ⟩ H ∣ e 0 ⟩ E 0 . (8) \lvert\phi\rangle=\frac{1}{\sqrt{2^{n+1}}}\sum_{c,r,h}\lvert\alpha_{c,r}\rangle_{QWE_LE_R}\lvert h\rangle_H\lvert e_0\rangle_{E_0}. \tag*{(8)} ∣ ϕ ⟩ = 2 n + 1 1 c , r , h ∑ ∣ α c , r ⟩ Q W E L E R ∣ h ⟩ H ∣ e 0 ⟩ E 0 . (8)
The records start empty and each query adds at most one pair, giving the size bound. The vector has norm at most one because all algorithm gates and query maps are contractions. Each coefficient includes the sum of all contributions with the same x x x , L L L , R R R ; no orthogonality of query histories is assumed.
Different values of ( c , r , h ) (c,r,h) ( c , r , h ) give orthogonal labels in E0 _0 0 , even when the corresponding workspace vectors overlap. The normalization in Equation (8) therefore gives ∥ ϕ ∥ 2 2 = 2 ∣ H ∣ − ( n + 1 ) ∑ c , r ∥ α c , r ∥ 2 2 \lVert\phi\rVert_2^2=2^{\lvert H\rvert-(n+1)}\sum_{c,r}\lVert\alpha_{c,r}\rVert_2^2 ∥ ϕ ∥ 2 2 = 2 ∣ H ∣ − ( n + 1 ) ∑ c , r ∥ α c , r ∥ 2 2 . Using n = ∣ R ∣ + ∣ H ∣ n=\lvert R\rvert+\lvert H\rvert n = ∣ R ∣ + ∣ H ∣ and the orthogonality of the query and relation bases, we obtain
∑ c , r , x , L , R ∥ α c , r , x , L , R ∥ 2 2 = ∑ c , r ∥ α c , r ∥ 2 2 = 2 1 + ∣ R ∣ ∥ ϕ ∥ 2 2 . (9) \sum_{c,r,x,L,R}\lVert\alpha_{c,r,x,L,R}\rVert_2^2
=\sum_{c,r}\lVert\alpha_{c,r}\rVert_2^2
=2^{1+\lvert R\rvert}\lVert\phi\rVert_2^2. \tag*{(9)} c , r , x , L , R ∑ ∥ α c , r , x , L , R ∥ 2 2 = c , r ∑ ∥ α c , r ∥ 2 2 = 2 1 + ∣ R ∣ ∥ ϕ ∥ 2 2 . (9)
For fixed r r r , the labels ( r , h ) (r,h) ( r , h ) are distinct query labels, so also
∑ c , r , h , L , R ∥ α c , r , ( r , h ) , L , R ∥ 2 2 ≤ ∑ c , r , x , L , R ∥ α c , r , x , L , R ∥ 2 2 = 2 1 + ∣ R ∣ ∥ ϕ ∥ 2 2 . (10) \sum_{c,r,h,L,R}\left\|\alpha_{c,r,(r,h),L,R}\right\|_2^2 \le\sum_{c,r,x,L,R}\left\|\alpha_{c,r,x,L,R}\right\|_2^2 = 2^{1+|R|}\|\phi\|_2^2. \tag*{(10)} c , r , h , L , R ∑ α c , r , ( r , h ) , L , R 2 2 ≤ c , r , x , L , R ∑ ∥ α c , r , x , L , R ∥ 2 2 = 2 1 + ∣ R ∣ ∥ ϕ ∥ 2 2 . (10)
The first identity will bound the marginal error by counting recorded pairs. The second will bound deletion of the challenge pair, for which the query must equal ( r , h ) (r,h) ( r , h ) .
The error due to J J J not being an isometry
In the first case, the error comes from insertion “forgetting” which pair in the record ∣ L ∪ { e 0 } ⟩ E L \lvert L\cup\{e_0\}\rangle_{E_L} ∣ L ∪ { e 0 } ⟩ E L was the challenge, causing more than one query history to contribute to a branch’s norm. For a vector ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ arising in the mixed experiment, define
K ϕ = Tr H E 0 E L E R [ ∑ ∣ ϕ ⟩ ⟨ ϕ ∣ ] . K_\phi=\operatorname{Tr}_{H E_0 E_L E_R}\left[\sum\lvert\phi\rangle\langle\phi\rvert\right]. K ϕ = Tr H E 0 E L E R [ ∑ ∣ ϕ ⟩ ⟨ ϕ ∣ ] .
Because J J J acts only on the traced out environment, using Equation (7) gives
Tr H E L E R [ J ∣ ϕ ⟩ ⟨ ϕ ∣ J † ] = Tr H E 0 E L E R [ ∣ ϕ ⟩ ⟨ ϕ ∣ ] + K ϕ . (11) \operatorname{Tr}_{H E_L E_R}\left[J\lvert\phi\rangle\langle\phi\rvert J^\dagger\right]=\operatorname{Tr}_{H E_0 E_L E_R}\left[\lvert\phi\rangle\langle\phi\rvert\right]+K_\phi. \tag*{(11)} Tr H E L E R [ J ∣ ϕ ⟩ ⟨ ϕ ∣ J † ] = Tr H E 0 E L E R [ ∣ ϕ ⟩ ⟨ ϕ ∣ ] + K ϕ . (11)
Consequently, the desired comparison splits as
ρ q r e a l , V ? − ρ q m i x e d , V ? = Tr H E L E R [ ∣ Ψ q r e a l , V ? ⟩ ⟨ Ψ q r e a l , V ? ∣ − J ∣ Ψ q m i x e d , V ? ⟩ ⟨ Ψ q m i x e d , V ? ∣ J † ] + K Ψ q m i x e d , V ? . (12) \rho_q^{\mathrm{real},V^?}-\rho_q^{\mathrm{mixed},V^?}=\operatorname{Tr}_{H E_L E_R}\left[\left\lvert\Psi_q^{\mathrm{real},V^?}\right\rangle\left\langle\Psi_q^{\mathrm{real},V^?}\right\rvert-J\left\lvert\Psi_q^{\mathrm{mixed},V^?}\right\rangle\left\langle\Psi_q^{\mathrm{mixed},V^?}\right\rvert J^\dagger\right]+K_{\Psi_q^{\mathrm{mixed},V^?}}. \tag*{(12)} ρ q real , V ? − ρ q mixed , V ? = Tr H E L E R [ Ψ q real , V ? ⟩ ⟨ Ψ q real , V ? − J Ψ q mixed , V ? ⟩ ⟨ Ψ q mixed , V ? J † ] + K Ψ q mixed , V ? . (12)
Lemma 4.1 (Marginal error from insertion). For every vector ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ of the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q \lvert L\cup R\rvert\le q ∣ L ∪ R ∣ ≤ q ,
∥ K ϕ ∥ 1 ≤ q 2 ∣ H ∣ ∥ ϕ ∥ 2 2 , ∥ J ϕ ∥ 2 2 ≤ ( 1 + q 2 ∣ H ∣ ) ∥ ϕ ∥ 2 2 . (13) \left\|K_\phi\right\|_1\le\frac{q}{2^{|H|}}\|\phi\|_2^2,\qquad\left\|J\phi\right\|_2^2\le\left(1+\frac{q}{2^{|H|}}\right)\|\phi\|_2^2. \tag*{(13)} ∥ K ϕ ∥ 1 ≤ 2 ∣ H ∣ q ∥ ϕ ∥ 2 2 , ∥ J ϕ ∥ 2 2 ≤ ( 1 + 2 ∣ H ∣ q ) ∥ ϕ ∥ 2 2 . (13)
The proof is in Section A.2. The bound uses the stronger invariant in Equation (8) : all mixed-experiment operations leave H E 0 H E_0 H E 0 untouched, so the coefficient vectors are independent of h h h . The proof bounds the crossed coherent terms by counting at most q q q recorded pairs. Inaccessibility of H H H alone would not imply the required independence.
This only works because the algorithm has no access to ∣ h ⟩ H \lvert h\rangle_H ∣ h ⟩ H , meaning that its choice of which query paths to put weight on must remain uncorrelated with h h h .
The error due to J J J not commuting with the algorithm
In the second case, our goal is to show that J J J “almost commutes” with the algorithm for this particular initial state, in the sense that the difference between the algorithm’s reduced states under the two orders is small in trace norm. J J J commutes exactly with any non-query algorithm operations, as those cannot touch the external registers, so the work is to bound its commutator with the algorithm’s queries. We use a hybrid argument, bounding the commutator of V ? V^? V ? and J J J for just one query (on relevant intermediate states in the mixed experiment), and then use the triangle inequality to conclude a bound after all q q q queries.
Lemma 4.2 (Query commutator bound). *Let ∣ R ∣ ≥ ∣ H ∣ \lvert R\rvert\ge\lvert H\rvert ∣ R ∣ ≥ ∣ H ∣ and 1 ≤ q < 2 ∣ H ∣ 1\le q<2^{|H|} 1 ≤ q < 2 ∣ H ∣ . For every vector ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ of the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q \lvert L\cup R\rvert\le q ∣ L ∪ R ∣ ≤ q ,
∥ [ V i , J ] ϕ ∥ 2 ≤ 24 2 ∣ H ∣ ∥ ϕ ∥ 2 , V i ∈ { V , V † , V ˉ , V ˉ † } . (14) \left\|[V_i,J]\phi\right\|_2\le\frac{24}{2^{|H|}}\|\phi\|_2,\qquad V_i\in\{V,V^\dagger,\bar V,\bar V^\dagger\}. \tag*{(14)} ∥ [ V i , J ] ϕ ∥ 2 ≤ 2 ∣ H ∣ 24 ∥ ϕ ∥ 2 , V i ∈ { V , V † , V ˉ , V ˉ † } . (14)
The maps A A A , A ˉ \bar{A} A ˉ create a pair with a fresh output coordinate, while B B B , B ˉ \bar{B} B ˉ require a fresh input coordinate. Inserting the challenge first can exclude a coordinate allowed in the other order; it can also change the normalization denominator. Before insertion, the creation maps spread weight over at least 2 n − q 2^n-q 2 n − q available coordinates; insertion can reduce this number by one, and Equation (24) controls the normalization change. For deletion, insertion can change a denominator, block a valid deletion, or make the inserted pair removable. The proofs count contributions with identical final labels to control coherent interference. The exceptional terms for A † A^\dagger A † , A ˉ † \bar{A}^\dagger A ˉ † use the hidden-label coefficient bound; those for B † B^\dagger B † , B ˉ † \bar{B}^\dagger B ˉ † use input matching and at most two challenge-bit choices. Section A.3 gives all eight calculations.
Write ϵ X \epsilon_X ϵ X for the coefficient in the bound ∥ [ X , J ] ϕ ∥ 2 ≤ ϵ X ∥ ϕ ∥ 2 \lVert[X,J]\phi\rVert_2 \le\epsilon_X\lVert\phi\rVert_2 ∥[ X , J ] ϕ ∥ 2 ≤ ϵ X ∥ ϕ ∥ 2 : Equation (34) lists these coefficients explicitly.
It remains to combine the creation and deletion estimates for a full query. Expanding the projection factors gives V = A − A B B † + B † − A A † B † V=A-ABB^\dagger+B^\dagger-AA^\dagger B^\dagger V = A − A B B † + B † − A A † B † . The commutator of each product is given by [ X Y , J ] = X [ Y , J ] + [ X , J ] Y [XY,J]=X[Y,J]+[X,J]Y [ X Y , J ] = X [ Y , J ] + [ X , J ] Y . Each operator to the right of a commutator is the identity, one or two deletions, or a deletion followed by a creation. These contractions leave H E 0 \mathrm{HE}_0 HE 0 unchanged and do not increase the record size, so they preserve the family in Equation (8) . The operators to the left are contractions as well. Thus, for example,
∥ [ V , J ] ϕ ∥ 2 ≤ ( 3 ϵ A + ϵ B + ϵ A † + 3 ϵ B † ) ∥ ϕ ∥ 2 . (15) \lVert[V,J]\phi\rVert_2 \le(3\epsilon_A+\epsilon_B+\epsilon_{A^\dagger}+3\epsilon_{B^\dagger})\lVert\phi\rVert_2. \tag*{(15)} ∥[ V , J ] ϕ ∥ 2 ≤ ( 3 ϵ A + ϵ B + ϵ A † + 3 ϵ B † ) ∥ ϕ ∥ 2 . (15)
The factors 3 count the three occurrences of [ A , J ] [A,J] [ A , J ] and [ B † , J ] [B^\dagger,J] [ B † , J ] in the product expansion; [ B , J ] [B,J] [ B , J ] and [ A † , J ] [A^\dagger,J] [ A † , J ] each occur once. The adjoint and barred queries obey the analogous bounds, which all give coefficients at most 24 2 ∣ H ∣ \frac{24}{2^{|H|}} 2 ∣ H ∣ 24 . Sections A.3 and A.4.1 give the full component proofs and coefficient bounds.
Completing the state comparison
Lemma 4.3 (Path-recording comparison). If ∣ R ∣ ≥ ∣ H ∣ |R|\ge|H| ∣ R ∣ ≥ ∣ H ∣ and q ≥ 0 q\ge0 q ≥ 0 , then
∥ ρ q r e a l , V ? − ρ q m i x e d , V ? ∥ 1 ≤ min { 2 , ( 25 + 24 2 ) q 2 ∣ H ∣ } . (16) \lVert\rho_q^{\mathrm{real},V^?}-\rho_q^{\mathrm{mixed},V^?}\rVert_1\le\min\left\{2,(25+24\sqrt{2})\frac{q}{2^{|H|}}\right\}. \tag*{(16)} ∥ ρ q real , V ? − ρ q mixed , V ? ∥ 1 ≤ min { 2 , ( 25 + 24 2 ) 2 ∣ H ∣ q } . (16)
Proof. The query estimates now compare insertion before all queries with insertion after all queries. Assume 1 ≤ q < 2 ∣ H ∣ 1\le q<2^{|H|} 1 ≤ q < 2 ∣ H ∣ .
Comparing the final vectors. Since J J J maps the initial mixed state to the real state and commutes with each algorithm gate A t A_t A t , the difference of the final vectors is
∣ Ψ q r e a l , V ? ⟩ − J ∣ Ψ q m i x e d , V ? ⟩ = ∑ t = 1 q V q A q ⋯ V t + 1 A t + 1 [ V t , J ] ∣ ϕ t ′ ⟩ . |\Psi_q^{\mathrm{real},V^?}\rangle-J|\Psi_q^{\mathrm{mixed},V^?}\rangle
=\sum_{t=1}^{q}V_qA_q\cdots V_{t+1}A_{t+1}[V_t,J]|\phi_t'\rangle. ∣ Ψ q real , V ? ⟩ − J ∣ Ψ q mixed , V ? ⟩ = t = 1 ∑ q V q A q ⋯ V t + 1 A t + 1 [ V t , J ] ∣ ϕ t ′ ⟩ .
This is the telescoping identity obtained by moving J J J past one query at a time. The t t t th summand is the error at query t t t , followed by all later operations; the product is the identity when t = q t=q t = q . Every later operation is a contraction, and the mixed vector ∣ ϕ t ′ ⟩ |\phi_t'\rangle ∣ ϕ t ′ ⟩ has norm at most one. The triangle inequality and Equation (14) therefore give
∥ Ψ q r e a l , V ? − J Ψ q m i x e d , V ? ∥ 2 ≤ ∑ t = 1 q ∥ [ V t , J ] ϕ t ′ ∥ 2 ≤ 24 q 2 ∣ H ∣ . \lVert\Psi_q^{\mathrm{real},V^?}-J\Psi_q^{\mathrm{mixed},V^?}\rVert_2
\le\sum_{t=1}^{q}\lVert[V_t,J]\phi_t'\rVert_2
\le\frac{24q}{2^{|H|}}. ∥ Ψ q real , V ? − J Ψ q mixed , V ? ∥ 2 ≤ t = 1 ∑ q ∥[ V t , J ] ϕ t ′ ∥ 2 ≤ 2 ∣ H ∣ 24 q .
Passing to the marginals. To convert this vector estimate to a marginal-state bound, we use
∥ ∣ v ⟩ ⟨ v ∣ − ∣ w ⟩ ⟨ w ∣ ∥ 1 ≤ ( ∥ v ∥ 2 + ∥ w ∥ 2 ) ∥ v − w ∥ 2 . \lVert|v\rangle\langle v| - |w\rangle\langle w| \rVert_1 \le(\lVert v\rVert_2 + \lVert w\rVert_2)\lVert v-w\rVert_2. ∥ ∣ v ⟩ ⟨ v ∣ − ∣ w ⟩ ⟨ w ∣ ∥ 1 ≤ (∥ v ∥ 2 + ∥ w ∥ 2 ) ∥ v − w ∥ 2 .
It follows by writing ∣ v ⟩ ⟨ v ∣ − ∣ w ⟩ ⟨ w ∣ = ∣ v − w ⟩ ⟨ v ∣ + ∣ w ⟩ ⟨ v − w ∣ |v\rangle\langle v| - |w\rangle\langle w| = |v-w\rangle\langle v| + |w\rangle\langle v-w| ∣ v ⟩ ⟨ v ∣ − ∣ w ⟩ ⟨ w ∣ = ∣ v − w ⟩ ⟨ v ∣ + ∣ w ⟩ ⟨ v − w ∣ and bounding the two rank-one terms. Here the real vector has norm at most one, while Lemma 4.1 bounds the inserted mixed vector by 1 + q / 2 ∣ H ∣ \sqrt{1+q/2^{|H|}} 1 + q / 2 ∣ H ∣ . The decomposition in Equation (12) , contractivity under partial trace, and the same lemma give
∥ ρ q r e a l , V ′ − ρ q m i x e d , V ′ ∥ 1 ≤ [ 24 ( 1 + 1 + q 2 ∣ H ∣ ) + 1 ] q 2 ∣ H ∣ . (17) \lVert\rho_q^{\mathrm{real},V'}-\rho_q^{\mathrm{mixed},V'}\rVert_1 \le\left[24\left(1+\sqrt{1+\frac{q}{2^{|H|}}}\right)+1\right]\frac{q}{2^{|H|}}. \tag*{(17)} ∥ ρ q real , V ′ − ρ q mixed , V ′ ∥ 1 ≤ [ 24 ( 1 + 1 + 2 ∣ H ∣ q ) + 1 ] 2 ∣ H ∣ q . (17)
Since q < 2 ∣ H ∣ q<2^{|H|} q < 2 ∣ H ∣ , the square root is at most 2 \sqrt{2} 2 . At q = 0 q=0 q = 0 the marginals agree. For q ≥ 2 ∣ H ∣ q\ge2^{|H|} q ≥ 2 ∣ H ∣ , their traces are at most one, so the trace-norm difference is at most 2.
The recording comparison gives the bottom bound in Figure 3 ; the two vertical bounds follow from the Haar approximation.
The Haar approximation. For any fixed t t t -query circuit with an oracle-independent input and empty records, let ρ t U \rho_t^{U} ρ t U and ρ t V \rho_t^{V} ρ t V denote the outputs of that same circuit using the Haar and recording oracles. Schuster et al. [32 Theorem 10] give
∥ ρ t U − ρ t V ∥ 1 ≤ 18 t ( t + 1 ) 2 n / 8 . (18) \lVert\rho_t^{U}-\rho_t^{V}\rVert_1 \le\frac{18t(t+1)}{2^{n/8}}. \tag*{(18)} ∥ ρ t U − ρ t V ∥ 1 ≤ 2 n /8 18 t ( t + 1 ) . (18)
Their bound is 9 t ( t + 1 ) / 2 n / 8 9t(t+1)/2^{n/8} 9 t ( t + 1 ) / 2 n /8 in trace distance, so the trace-norm coefficient is 18. They obtain this bound by extending the proof of Ma–Huang [29 Theorem 8] to the barred query maps. The Haar output is averaged over U U U , and reference registers may be included in the workspace. An arbitrary oracle-independent initial state can be purified as in § 2.3 . Fixed swaps put the preparation and interaction calls on one query register, without changing their number.
Proof of Theorem 3.1 . If q ≥ 2 n − 1 q\ge2^{n-1} q ≥ 2 n − 1 , then q ≥ 2 ∣ H ∣ q\ge2^{|H|} q ≥ 2 ∣ H ∣ because ∣ R ∣ ≥ 1 |R|\ge1 ∣ R ∣ ≥ 1 . The right-hand side of Equation (2) is then 2, which bounds the trace-norm difference of any two states. We may therefore assume q ≤ 2 n − 1 − 1 q\le2^{n-1}-1 q ≤ 2 n − 1 − 1 . The complete real circuit uses q + 1 q+1 q + 1 queries, including the query preparing the challenge; the mixed circuit uses q q q . Both circuits start with oracle-independent inputs and empty records. The approximation in Equation (18) applies to each complete circuit, after which we trace out all registers hidden from the algorithm. The two simulation errors are at most 18 ( q + 1 ) ( q + 2 ) / 2 n / 8 18(q+1)(q+2)/2^{n/8} 18 ( q + 1 ) ( q + 2 ) / 2 n /8 and 18 q ( q + 1 ) / 2 n / 8 18q(q+1)/2^{n/8} 18 q ( q + 1 ) / 2 n /8 . These two upper bounds sum to 36 ( q + 1 ) 2 / 2 n / 8 36(q+1)^2/2^{n/8} 36 ( q + 1 ) 2 / 2 n /8 . The triangle inequality and Lemma 4.3 give the stated bound. The distance between two states is also at most 2 in trace norm.
The sharper forward-only approximation gives Corollary 3.2.
Proof of Corollary 3.2. Forward queries keep E R E_R E R empty and V = A V=A V = A , also after inserting e 0 e_0 e 0 . The comparison therefore uses only [ A , J ] [A,J] [ A , J ] , whose coefficient is at most 3 / 2 ∣ H ∣ 3/2^{|H|} 3/ 2 ∣ H ∣ . The proof of Lemma 4.3 then gives [ 3 ( 1 + 2 ) + 1 ] q / 2 ∣ H ∣ = ( 4 + 3 2 ) q / 2 ∣ H ∣ [3(1+\sqrt{2})+1]q/2^{|H|}=(4+3\sqrt{2})q/2^{|H|} [ 3 ( 1 + 2 ) + 1 ] q / 2 ∣ H ∣ = ( 4 + 3 2 ) q / 2 ∣ H ∣ for 1 ≤ q < 2 ∣ H ∣ 1\le q<2^{|H|} 1 ≤ q < 2 ∣ H ∣ . Starting from empty records, the forward recording circuits reach only relations with distinct outputs; on these, A A A agrees with the forward oracle of Ma–Huang [29 Definition 10] . Their Theorem 5 gives trace-norm error 4 t ( t − 1 ) / ( 2 n + 1 ) 4t(t-1)/(2^n+1) 4 t ( t − 1 ) / ( 2 n + 1 ) for a t t t -query circuit. Using t = q + 1 t=q+1 t = q + 1 for the real circuit and t = q t=q t = q for the mixed circuit, the error bounds sum to 8 q 2 / ( 2 n + 1 ) ≤ 8 q / 2 ∣ H ∣ 8q^2/(2^n+1)\le8q/2^{|H|} 8 q 2 / ( 2 n + 1 ) ≤ 8 q / 2 ∣ H ∣ , since q < 2 ∣ H ∣ q<2^{|H|} q < 2 ∣ H ∣ and n ≥ 2 ∣ H ∣ n\ge2|H| n ≥ 2∣ H ∣ . At q = 0 q=0 q = 0 the marginals agree; for q ≥ 2 ∣ H ∣ q\ge2^{|H|} q ≥ 2 ∣ H ∣ , use the trace-norm bound 2.
Applications
A matching decoder
Utsumi et al. [35 Theorems 33 and 34] already apply their Uhlmann algorithm to decoding and Haar-based state merging. We specialize their preparation-query algorithm to our source and fixed target, with parameters chosen uniformly over U U U . A decoder aims to transform R so that one of its qubits is maximally entangled with B, while leaving BH untouched. We choose a fixed target purification with this property and approximate it by acting only on R. Decoupling bounds the achievable overlap, and the Uhlmann algorithm implements the transformation through preparation queries. The source and target marginals on the inaccessible registers are
ρ B H U = Tr R ∣ Ψ 0 r e a l , U ⟩ ⟨ Ψ 0 r e a l , U ∣ , τ B H = 1 B H 2 1 + ∣ H ∣ . \rho_{\mathrm{BH}}^{U}=\operatorname{Tr}_{R}|\Psi_{0}^{\mathrm{real},U}\rangle\langle\Psi_{0}^{\mathrm{real},U}|,\qquad\tau_{\mathrm{BH}}=\frac{\mathbb{1}_{\mathrm{BH}}}{2^{1+|H|}}. ρ BH U = Tr R ∣ Ψ 0 real , U ⟩ ⟨ Ψ 0 real , U ∣ , τ BH = 2 1 + ∣ H ∣ 1 BH .
Assume ∣ R ∣ ≥ ∣ H ∣ + 1 |R|\ge|H|+1 ∣ R ∣ ≥ ∣ H ∣ + 1 and split R into a qubit A, a copy H′ of H, and a register R′ of ∣ R ∣ − ∣ H ∣ − 1 |R|-|H|-1 ∣ R ∣ − ∣ H ∣ − 1 qubits. The fixed target is
∣ Θ ⟩ B H R = ∣ Φ + ⟩ B A ∣ Φ H ⟩ H H ′ ∣ 0 ⟩ R ′ , |\Theta\rangle_{\mathrm{BHR}}=|\Phi^{+}\rangle_{\mathrm{BA}}|\Phi_{H}\rangle_{\mathrm{HH}^{\prime}}|0\rangle_{\mathrm{R}^{\prime}}, ∣Θ ⟩ BHR = ∣ Φ + ⟩ BA ∣ Φ H ⟩ HH ′ ∣0 ⟩ R ′ ,
∣ Φ H ⟩ H H ′ = 1 2 ∣ H ∣ ∑ h ∣ h ⟩ H ∣ h ⟩ H ′ . |\Phi_{H}\rangle_{\mathrm{HH}^{\prime}}=\frac{1}{\sqrt{2^{|H|}}}\sum_{h}|h\rangle_{H}|h\rangle_{H^{\prime}}. ∣ Φ H ⟩ HH ′ = 2 ∣ H ∣ 1 h ∑ ∣ h ⟩ H ∣ h ⟩ H ′ .
Its BH marginal is τ B H \tau_{\mathrm{BH}} τ BH , and its qubit A is maximally entangled with B. Uhlmann’s theorem [Wat18, Theorem 3.22] identifies the optimal overlap:
max W R u n i t a r y ∣ ⟨ Θ ∣ ( 1 B H ⊗ W R ) ∣ Ψ 0 r e a l , U ⟩ ∣ 2 = F ( ρ B H U , τ B H ) 2 . \max_{W_{R}\ \mathrm{unitary}}\left|\langle\Theta|(\mathbb{1}_{\mathrm{BH}}\otimes W_{R})|\Psi_{0}^{\mathrm{real},U}\rangle\right|^{2}=F(\rho_{\mathrm{BH}}^{U},\tau_{\mathrm{BH}})^{2}. W R unitary max ⟨ Θ∣ ( 1 BH ⊗ W R ) ∣ Ψ 0 real , U ⟩ 2 = F ( ρ BH U , τ BH ) 2 .
Both purifications fit in BH : R since 2 ∣ R ∣ ≥ 2 1 + ∣ H ∣ 2^{|R|}\ge2^{1+|H|} 2 ∣ R ∣ ≥ 2 1 + ∣ H ∣ . The remaining task is to approximate this optimum with oracle queries. The Haar-decoupling estimate [17 Theorem 3.3] , applied with reference B and channel Tr R \operatorname{Tr}_{R} Tr R , gives
E U ∥ ρ B H U − τ B H ∥ 1 ≤ 2 ⋅ 2 ( ∣ H ∣ − ∣ R ∣ ) / 2 . (19) \mathbb{E}_{U}\|\rho_{\mathrm{BH}}^{U}-\tau_{\mathrm{BH}}\|_{1}\le2\cdot2^{(|H|-|R|)/2}. \tag*{(19)} E U ∥ ρ BH U − τ BH ∥ 1 ≤ 2 ⋅ 2 ( ∣ H ∣ − ∣ R ∣ ) /2 . (19)
Here τ B H \tau_{\mathrm{BH}} τ BH is the product of the maximally mixed states on B and H. Section C.1 gives a direct proof from the moments of the two Haar columns.
Since τ B H \tau_{\mathrm{BH}} τ BH is maximally mixed, the fidelity bound follows from a scalar inequality. Let a j a_j a j be the eigenvalues of ρ B H U \rho_{\mathrm{BH}}^{U} ρ BH U , including zeros. For nonnegative a , b a,b a , b , ( a − b ) 2 ≤ ∣ a − b ∣ (\sqrt{a}-\sqrt{b})^2\le|a-b| ( a − b ) 2 ≤ ∣ a − b ∣ , since ∣ a − b ∣ ≤ a + b |\sqrt{a}-\sqrt{b}|\le\sqrt{a}+\sqrt{b} ∣ a − b ∣ ≤ a + b . Thus
1 − F ( ρ B H U , τ B H ) = 1 2 ∑ j ( a j − 2 − ( 1 + ∣ H ∣ ) / 2 ) 2 ≤ 1 2 ∑ j ∣ a j − 2 − ( 1 + ∣ H ∣ ) ∣ = 1 2 ∥ ρ B H U − τ B H ∥ 1 . \begin{aligned}
1-F(\rho_{\mathrm{BH}}^{U},\tau_{\mathrm{BH}})=\frac{1}{2}\sum_j\left(\sqrt{a_j}-2^{-(1+|H|)/2}\right)^2 \\
&\le\frac{1}{2}\sum_j\left|a_j-2^{-(1+|H|)}\right|=\frac{1}{2}\|\rho_{\mathrm{BH}}^{U}-\tau_{\mathrm{BH}}\|_{1}.
\end{aligned} 1 − F ( ρ BH U , τ BH ) = 2 1 j ∑ ( a j − 2 − ( 1 + ∣ H ∣ ) /2 ) 2 ≤ 2 1 j ∑ a j − 2 − ( 1 + ∣ H ∣ ) = 2 1 ∥ ρ BH U − τ BH ∥ 1 .
Using 1 − F 2 = ( 1 − F ) ( 1 + F ) ≤ 2 ( 1 − F ) 1-F^{2}=(1-F)(1+F)\le2(1-F) 1 − F 2 = ( 1 − F ) ( 1 + F ) ≤ 2 ( 1 − F ) gives
F ( ρ B H U , τ B H ) 2 ≥ 1 − ∥ ρ B H U − τ B H ∥ 1 . (20) F(\rho_{\mathrm{BH}}^{U},\tau_{\mathrm{BH}})^{2}\ge1-\|\rho_{\mathrm{BH}}^{U}-\tau_{\mathrm{BH}}\|_{1}. \tag*{(20)} F ( ρ BH U , τ BH ) 2 ≥ 1 − ∥ ρ BH U − τ BH ∥ 1 . (20)
For additive squared-fidelity error ϵ \epsilon ϵ , the transformation criterion is
⟨ Θ ∣ ( 1 B H ⊗ T U ) ( ∣ Ψ 0 r e a l , U ⟩ ⟨ Ψ 0 r e a l , U ∣ ) ∣ Θ ⟩ ≥ F ( ρ B H U , τ B H ) 2 − ϵ . (21) \langle\Theta|(\mathbb{1}_{\mathrm{BH}}\otimes\mathcal{T}^{U})(|\Psi_{0}^{\mathrm{real},U}\rangle\langle\Psi_{0}^{\mathrm{real},U}|)|\Theta\rangle\ge F(\rho_{\mathrm{BH}}^{U},\tau_{\mathrm{BH}})^{2}-\epsilon. \tag*{(21)} ⟨ Θ∣ ( 1 BH ⊗ T U ) ( ∣ Ψ 0 real , U ⟩ ⟨ Ψ 0 real , U ∣ ) ∣Θ ⟩ ≥ F ( ρ BH U , τ BH ) 2 − ϵ . (21)
Lemma 5.1. A channel satisfying Equation (21) yields a decoder D U = Tr H ′ R ′ ∘ T U \mathcal{D}^{U}=\operatorname{Tr}_{H'R'}\circ\mathcal{T}^{U} D U = Tr H ′ R ′ ∘ T U using the same queries, with fidelity at least 1 − ∥ ρ B H U − τ B H ∥ 1 − ϵ 1-\lVert\rho^{U}_{BH}-\tau_{BH}\rVert_{1}-\epsilon 1 − ∥ ρ B H U − τ B H ∥ 1 − ϵ .
Proof. Since ∣ Φ + ⟩ ⟨ Φ + ∣ B A ⊗ 1 H H ′ R ′ ≥ ∣ Θ ⟩ ⟨ Θ ∣ \lvert\Phi^{+}\rangle\langle\Phi^{+}\rvert_{BA}\otimes\mathbb{1}_{HH'R'}\geq\lvert\Theta\rangle\langle\Theta\rvert ∣ Φ + ⟩ ⟨ Φ + ∣ B A ⊗ 1 H H ′ R ′ ≥ ∣ Θ ⟩ ⟨ Θ ∣ , the Bell-test probability after discarding H ′ R ′ H'R' H ′ R ′ is at least the overlap with ∣ Θ ⟩ \lvert\Theta\rangle ∣ Θ ⟩ . The two fidelity inequalities Equations (20) and (21) give the result, and discarding registers uses no queries.
To implement the transformation, we use source and target preparation circuits. Preparation queries act on auxiliary registers of the same dimensions as B H BH B H : R R R and leave the actual B H BH B H untouched. In these preparation circuits, B B B , Q Q Q label auxiliary copies of the register spaces. Let C C C apply a Hadamard to this auxiliary B B B , followed by a CNOT from B B B to the first qubit of Q Q Q . Then
C ∣ 0 ⟩ B Q = 1 2 ∑ c ∣ c ⟩ B ∣ x 0 , c ⟩ Q , P U = ( 1 B ⊗ U ) C . C\lvert0\rangle_{BQ}=\frac{1}{\sqrt{2}}\sum_{c}\lvert c\rangle_{B}\lvert x_{0,c}\rangle_{Q},\qquad P_{U}=(\mathbb{1}_{B}\otimes U)C. C ∣ 0 ⟩ B Q = 2 1 c ∑ ∣ c ⟩ B ∣ x 0 , c ⟩ Q , P U = ( 1 B ⊗ U ) C .
The source preparation P U P_{U} P U costs one query, while preparing ∣ Θ ⟩ \lvert\Theta\rangle ∣ Θ ⟩ uses fixed gates.
Corollary 5.2 (Decoder upper bound). For ∣ R ∣ ≥ ∣ H ∣ + 1 \lvert R\rvert\geq\lvert H\rvert+1 ∣ R ∣ ≥ ∣ H ∣ + 1 and 0 < ϵ < 1 / 2 0<\epsilon<1/2 0 < ϵ < 1/2 , there is a decoder using O ( ( 2 ∣ H ∣ / ϵ ) log ( 1 / ϵ ) ) O((2^{\lvert H\rvert}/\epsilon)\log(1/\epsilon)) O (( 2 ∣ H ∣ / ϵ ) log ( 1/ ϵ )) forward and inverse queries with Haar-averaged fidelity at least
1 − 2 ⋅ 2 ( ∣ H ∣ − ∣ R ∣ ) / 2 − ϵ . 1-2\cdot2^{(\lvert H\rvert-\lvert R\rvert)/2}-\epsilon. 1 − 2 ⋅ 2 (∣ H ∣ − ∣ R ∣) /2 − ϵ . Its operations between queries are independent of U U U . At fixed ϵ \epsilon ϵ , its query cost is O ( 2 ∣ H ∣ ) O(2^{\lvert H\rvert}) O ( 2 ∣ H ∣ ) .
Proof sketch. The overlap operator Tr B H ∣ Θ ⟩ ⟨ Ψ 0 r e a l , U ∣ \operatorname{Tr}_{BH}\lvert\Theta\rangle\langle\Psi^{\mathrm{real},U}_{0}\rvert Tr B H ∣ Θ ⟩ ⟨ Ψ 0 real , U ∣ on R R R has at most 2 1 + ∣ H ∣ 2^{1+\lvert H\rvert} 2 1 + ∣ H ∣ nonzero singular values. For this fixed target, the optimal root overlap is the sum of these singular values. The algorithm of Utsumi et al. [35 Theorem 13 and Proposition 10] uses preparation queries and a polynomial approximation to align the operator’s right and left singular vectors. The uniform approximation error above its cutoff is chosen proportional to ϵ \epsilon ϵ . The singular values below the cutoff have total weight at most 2 1 + ∣ H ∣ 2^{1+\lvert H\rvert} 2 1 + ∣ H ∣ times the cutoff. A cutoff proportional to ϵ / 2 1 + ∣ H ∣ \epsilon/2^{1+\lvert H\rvert} ϵ / 2 1 + ∣ H ∣ therefore bounds the total loss, while keeping the query cost O ( 2 ∣ H ∣ ) O(2^{\lvert H\rvert}) O ( 2 ∣ H ∣ ) at fixed ϵ \epsilon ϵ . The same cutoff works for every U U U , so the polynomial and its gates depend only on the dimensions and ϵ \epsilon ϵ . This gives Equation (21) . The decoder implication in Lemma 5.1 , averaged over U U U with Equation (19) , gives the stated fidelity. Section C.2 gives the full proof and the uniform parameter choice.
If ∣ H ∣ ≤ n / 16 \lvert H\rvert\leq n/16 ∣ H ∣ ≤ n /16 and ∣ H ∣ → ∞ \lvert H\rvert\to\infty ∣ H ∣ → ∞ , the decoupling error tends to zero and any fixed fidelity below one is achievable with O ( 2 ∣ H ∣ ) O(2^{\lvert H\rvert}) O ( 2 ∣ H ∣ ) queries. For every fixed target fidelity in ( 1 / 4 , 1 ) (1/4,1) ( 1/4 , 1 ) , Corollary 3.5 gives the matching lower bound even with all four query types.
A rank lower bound for Uhlmann transformation
The transformation above gives a decoder without increasing the source-query cost. We use this reduction to prove a lower bound for Uhlmann transformation with a fixed target. With ∣ R ∣ = 15 ∣ H ∣ \lvert R\rvert=15\lvert H\rvert ∣ R ∣ = 15 ∣ H ∣ , we have n = 16 ∣ H ∣ n=16\lvert H\rvert n = 16 ∣ H ∣ . The two query lower-bound scales then both equal 2 ∣ H ∣ 2^{\lvert H\rvert} 2 ∣ H ∣ , while the decoupling error is at most 2 1 − 7 ∣ H ∣ 2^{1-7\lvert H\rvert} 2 1 − 7 ∣ H ∣ . The rank of the product on this family is almost surely 2 1 + ∣ H ∣ 2^{1+\lvert H\rvert} 2 1 + ∣ H ∣ , as shown next.
Lemma 5.3. If ∣ R ∣ ≥ ∣ H ∣ + 1 \lvert R\rvert\geq\lvert H\rvert+1 ∣ R ∣ ≥ ∣ H ∣ + 1 , then for Haar-almost every U U U ,
rank ( τ B H ρ B H U ) = 2 1 + ∣ H ∣ . \operatorname{rank}\left(\sqrt{\tau_{BH}}\sqrt{\rho^{U}_{BH}}\right)=2^{1+\lvert H\rvert}. rank ( τ B H ρ B H U ) = 2 1 + ∣ H ∣ .
Proof sketch. Since τ B H \tau_{\mathrm{BH}} τ BH is invertible and square roots preserve rank, the product has the rank of ρ B H \rho_{\mathrm{BH}} ρ BH . The two relevant Haar columns can be generated by orthonormalizing two independent standard complex Gaussian vectors. Reshaping these vectors across B H : R \mathrm{BH}:\mathrm{R} BH : R gives a 2 1 + ∣ H ∣ × 2 ∣ R ∣ 2^{1+|\mathrm{H}|}\times2^{|\mathrm{R}|} 2 1 + ∣ H ∣ × 2 ∣ R ∣ matrix with independent Gaussian entries and full row rank almost surely. The hypothesis makes the number of columns at least the number of rows, and each new Gaussian row lies in the span of the preceding rows with probability zero. Orthonormalization acts by an invertible matrix on its rows and preserves rank. Section C.3 gives the coefficient matrices and the full calculation.
Theorem 5.4 (Linear rank lower bound). Let ∣ H ∣ ≥ 1 |\mathrm{H}|\ge1 ∣ H ∣ ≥ 1 , ∣ R ∣ = 15 ∣ H ∣ |\mathrm{R}|=15|\mathrm{H}| ∣ R ∣ = 15∣ H ∣ , and 0 ≤ ϵ ≤ 1 / 8 0\le\epsilon\le1/8 0 ≤ ϵ ≤ 1/8 . Suppose one algorithm, with circuit and initial auxiliary state independent of U U U , acts only on R \mathrm{R} R and satisfies
E U ⟨ Θ ∣ ( id B H ⊗ T U ) ( ∣ Ψ 0 r e a l , U ⟩ ⟨ Ψ 0 r e a l , U ∣ ) ∣ Θ ⟩ ≥ E U F ( ρ B H U , τ B H ) 2 − ϵ . \mathbb{E}_{U}\langle\Theta|(\operatorname{id}_{\mathrm{BH}}\otimes\mathcal{T}^{U})(|\Psi_{0}^{\mathrm{real},U}\rangle\langle\Psi_{0}^{\mathrm{real},U}|)|\Theta\rangle\ge\mathbb{E}_{U}F(\rho_{\mathrm{BH}}^{U},\tau_{\mathrm{BH}})^{2}-\epsilon. E U ⟨ Θ∣ ( id BH ⊗ T U ) ( ∣ Ψ 0 real , U ⟩ ⟨ Ψ 0 real , U ∣ ) ∣Θ ⟩ ≥ E U F ( ρ BH U , τ BH ) 2 − ϵ . In particular, this condition holds if Equation (21) holds for every U U U . If it uses at most q q q source-preparation queries, then q = Ω ( r ) q=\Omega(r) q = Ω ( r ) , where r = rank ( τ B H ρ B H U ) = 2 1 + ∣ H ∣ r=\operatorname{rank}(\sqrt{\tau_{\mathrm{BH}}}\sqrt{\rho_{\mathrm{BH}}^{U}})=2^{1+|\mathrm{H}|} r = rank ( τ BH ρ BH U ) = 2 1 + ∣ H ∣ for Haar-almost every U U U . This holds even when a query coherently selects among 1 \mathbb{1} 1 , P U P_U P U , P U † P_U^{\dagger} P U † , P U ∗ P_U^{*} P U ∗ , P U T P_U^{\mathsf{T}} P U T .
Proof sketch. Since C C C is fixed, each of the four source-preparation queries costs one oracle query of the corresponding type. The same conversion holds for a coherent choice of query type, using fixed controlled gates before and after the query. The Bell projector tensored with the identity dominates ∣ Θ ⟩ ⟨ Θ ∣ |\Theta\rangle\langle\Theta| ∣Θ ⟩ ⟨ Θ∣ , so discarding H ′ R ′ \mathrm{H}'\mathrm{R}' H ′ R ′ gives a q q q -query decoder. The averaged transformation condition and Equations (19) and (20) bound its Haar-averaged fidelity by
1 − 2 1 − 7 ∣ H ∣ − ϵ ≥ 3 4 . 1-2^{1-7|\mathrm{H}|}-\epsilon\ge\frac{3}{4}. 1 − 2 1 − 7∣ H ∣ − ϵ ≥ 4 3 .
Here n = 16 ∣ H ∣ n=16|\mathrm{H}| n = 16∣ H ∣ , so Corollary 3.5 requires q = Ω ( 2 ∣ H ∣ ) q=\Omega(2^{|\mathrm{H}|}) q = Ω ( 2 ∣ H ∣ ) . By Lemma 5.3 , this is Ω ( r ) \Omega(r) Ω ( r ) . Section C.3 gives the complete query conversion and reduction.
For every fixed 0 < ϵ ≤ 1 / 8 0<\epsilon\le1/8 0 < ϵ ≤ 1/8 , this matches the O ( r ) O(r) O ( r ) preparation-query upper bound [35 Theorem 13] . Both purifications have efficient oracle preparations: the source uses one forward query, and the target uses fixed gates. Decoupling makes their inaccessible marginals nearly equal for most Haar unitaries, so a nearly perfect local transformation exists. Our bound quantifies the query cost of finding such a transformation on this family. This connects the example to the hard Uhlmann instances considered by Bostanci et al. [8 Theorem 8.10] ; the resource measured here is access to the public oracle.
EFI and commitments from a public Haar oracle
The low rank of the real challenge makes it statistically far from the maximally mixed state in the family below. The query bound shows that this difference remains hard to detect even with access to the same public oracle. For λ ≥ 1 \lambda\ge1 λ ≥ 1 , set ∣ H ∣ = λ |\mathrm{H}|=\lambda ∣ H ∣ = λ , ∣ R ∣ = 2 λ |\mathrm{R}|=2\lambda ∣ R ∣ = 2 λ , and n = 3 λ n=3\lambda n = 3 λ , and sample U λ U_{\lambda} U λ from Haar measure. The pair is
ρ B R U λ , σ B R λ = 1 B R 2 1 + 2 λ . \rho_{\mathrm{BR}}^{U_{\lambda}},\qquad\sigma_{\mathrm{BR}}^{\lambda}=\frac{\mathbb{1}_{\mathrm{BR}}}{2^{1+2\lambda}}. ρ BR U λ , σ BR λ = 2 1 + 2 λ 1 BR .
The real generator makes one forward query and discards H; the mixed generator makes no query. Both use polynomially many fixed gates, and the distinguisher has the same public oracle. For a binary-output algorithm A \mathcal{A} A , write
Δ A ( U ) = Pr [ A U ( ρ B R U ) = 1 ] − Pr [ A U ( σ B R λ ) = 1 ] . (22) \Delta_{\mathcal{A}}(U)=\Pr[\mathcal{A}^{U}(\rho_{\mathrm{BR}}^{U})=1]-\Pr[\mathcal{A}^{U}(\sigma_{\mathrm{BR}}^{\lambda})=1]. \tag*{(22)} Δ A ( U ) = Pr [ A U ( ρ BR U ) = 1 ] − Pr [ A U ( σ BR λ ) = 1 ] . (22)
Corollary 5.5 (Oracle-relative EFI). For every U λ U_\lambda U λ , the trace distance of the pair is at least 1 − 2 − λ − 1 1-2^{-\lambda-1} 1 − 2 − λ − 1 . For every algorithm whose circuit family and initial auxiliary state are independent of U λ U_\lambda U λ , with polynomial selected-query count q q q ,
E U λ ∣ Δ A ( U λ ) ∣ = O ( ( q + 1 ) 2 2 − λ / 16 ) , \mathbb{E}_{U_\lambda}\lvert\Delta_{\mathcal{A}}(U_\lambda)\rvert=O((q+1)2^{2-\lambda/16}), E U λ ∣ Δ A ( U λ )∣ = O (( q + 1 ) 2 2 − λ /16 ) , which is negligible in λ \lambda λ .
Proof sketch. The real state has rank at most 2 λ 2^\lambda 2 λ in dimension 2 1 + 2 λ 2^{1+2\lambda} 2 1 + 2 λ . Its support projector witnesses the stated trace distance.
We prove the stronger bound on the expected absolute gap, whereas the query bound controls the signed average gap. Gaps with opposite signs can cancel across oracles. We augment A \mathcal{A} A with a calibration step that leaves the original challenge untouched. The calibrated algorithm estimates the sign of Δ A ( U ) \Delta_{\mathcal{A}}(U) Δ A ( U ) using N N N real trials and N N N mixed trials on separate registers. These trials use fresh challenges and separately supplied copies of the auxiliary state, so they are independent conditioned on U U U . It then runs A \mathcal{A} A on the original challenge and reverses the output when the estimated sign is negative. Conditioned on U U U , the resulting acceptance gap averaged over the trials is at least ∣ Δ A ( U ) ∣ − 2 / N \lvert\Delta_{\mathcal{A}}(U)\rvert-\sqrt{2/N} ∣ Δ A ( U )∣ − 2/ N . With N = ⌈ 2 λ / 8 ⌉ N=\lceil2^{\lambda/8}\rceil N = ⌈ 2 λ /8 ⌉ , the procedure uses O ( N ( q + 1 ) ) O(N(q+1)) O ( N ( q + 1 )) queries.
The calibrated algorithm need not be efficient, since the state bound allows arbitrary computation. Theorem 3.1 and Corollary 3.4 apply to this query count and give the stated bound on the expected absolute gap. Section D.1 gives the full proof, including independence, the sign estimate, and the total query count.
For an independently sampled oracle sequence, Corollary D.1 gives almost-sure security against every uniform polynomial-query algorithm with a finite description that accesses the current oracle. The public oracle is part of the construction: averaging it out gives E U λ ρ B R U λ = σ B R U λ \mathbb{E}_{U_\lambda}\rho_{\mathrm{BR}}^{U_\lambda}=\sigma_{\mathrm{BR}}^{U_\lambda} E U λ ρ BR U λ = σ BR U λ . The same rank bound shows that the real state’s entropy is at most λ \lambda λ bits, whereas the mixed state’s entropy is 1 + 2 λ 1+2\lambda 1 + 2 λ bits. Thus polynomial-query algorithms cannot detect an entropy gap of at least λ + 1 \lambda+1 λ + 1 bits. A hybrid argument extends the indistinguishability bound to polynomially many copies; Section D.1 gives the query count.
Quantum bit commitment. The purified-generator construction of Brakerski, Canetti, and Qian [7 Lemma 4.7] applies directly to this pair. To commit to zero, the sender prepares ∣ Ψ 0 r e a l , U ⟩ B R H \lvert\Psi_0^{\mathrm{real},U}\rangle_{\mathrm{BRH}} ∣ Ψ 0 real , U ⟩ BRH , sends BR, and keeps H. To commit to one, it prepares a maximally entangled state between BR and an opening register of 1 + 2 λ 1+2\lambda 1 + 2 λ qubits, and again sends BR. The opening register for zero is padded with λ + 1 \lambda+1 λ + 1 qubits initialized to ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ so that both openings have the same size. Opening reveals the bit and this register; the receiver uncomputes the stated preparation and accepts exactly when every qubit is zero.
Corollary 5.6 (Quantum bit commitment). This protocol has perfect correctness and expected absolute hiding gap O ( ( q + 1 ) 2 2 − λ / 16 ) O((q+1)2^{2-\lambda/16}) O (( q + 1 ) 2 2 − λ /16 ) against any receiver whose circuit and initial auxiliary state are independent of U U U and which makes a polynomial number q q q of selected queries. q q q counts all receiver queries before and after receipt of the commitment, through the end of the hiding experiment and before opening. For every fixed U U U , every common post-commit state and every pair of opening procedures satisfy p 0 + p 1 ≤ 1 + 2 − ( λ + 1 ) / 2 p_0+p_1\le1+2^{-(\lambda+1)/2} p 0 + p 1 ≤ 1 + 2 − ( λ + 1 ) /2 , where p b p_b p b is the probability of successfully opening bit b b b . Honest commitment uses at most one forward query, and verification uses at most one inverse query.
Proof sketch. The receiver’s commitment marginals are exactly the EFI pair, so Corollary 5.5 proves hiding. Let Π U \Pi_U Π U be the support projector of ρ B R U \rho^{U}_{\mathrm{BR}} ρ BR U . Its weight in the mixed marginal is
Tr [ Π U σ B R U ] = rank ( ρ B R U ) 2 1 + 2 λ ≤ 2 − λ − 1 . \operatorname{Tr}[\Pi_U\sigma_{\mathrm{BR}}^{U}]=\frac{\operatorname{rank}(\rho_{\mathrm{BR}}^{U})}{2^{1+2\lambda}}\leq2^{-\lambda-1}. Tr [ Π U σ BR U ] = 2 1 + 2 λ rank ( ρ BR U ) ≤ 2 − λ − 1 .
An accepted zero-opening vector is supported on Π U \Pi_U Π U in BR, whereas an accepted one-opening vector has the mixed marginal. Cauchy–Schwarz therefore bounds their inner product by 2 − ( λ + 1 ) / 2 2^{-(\lambda+1)/2} 2 − ( λ + 1 ) /2 . The norm of the sum of the two acceptance projections is at most one plus this overlap, giving the binding bound. Section D.2 proves this for arbitrary malicious commitments and opening procedures. □
A commitment to a qubit. The same Haar encoding gives a direct commitment to a quantum message. Let M be one qubit and initialize the 3 λ − 1 3\lambda-1 3 λ − 1 qubits of W in ∣ 0 ⟩ ⊗ ( 3 λ − 1 ) \lvert0\rangle^{\otimes(3\lambda-1)} ∣ 0 ⟩ ⊗ ( 3 λ − 1 ) . The sender applies U U U to MW, sends R, and keeps H. Opening reveals H; the receiver applies U † U^\dagger U † , checks that W is zero, and recovers M. Correctness holds even when M is entangled with an external reference.
We use the hiding definition [19 Definition 4.3] and the swap-binding definition [19 Definition 4.2] of Gunn et al. Hiding compares encoding a receiver-chosen message with encoding zero, while preserving the receiver’s workspace. Swap binding asks whether a malicious sender can distinguish keeping the accepted message from replacing it by zero, after the receiver re-encodes and returns only H.
Corollary 5.7 (Quantum state commitment). The one-qubit protocol has perfect correctness and Haar-averaged statistical swap-binding advantage at most 2 ⋅ 2 − λ / 2 2\cdot2^{-\lambda/2} 2 ⋅ 2 − λ /2 . For polynomial q q q , its expected absolute hiding gap is O ( ( q + 1 ) 2 2 − λ / 16 ) O((q+1)2^{2^{-\lambda/16}}) O (( q + 1 ) 2 2 − λ /16 ) . Hiding holds for chosen messages entangled with a reference and for receivers with oracle-independent circuits and initial auxiliary states; q q q counts all selected queries before and after commitment, , through the end of the hiding experiment and before opening. The binding bound holds uniformly over unbounded senders, including strategies chosen with knowledge of U U U . Honest commitment uses one forward query, and opening verification uses one inverse query.
Proof sketch. Replacing B by a maximally mixed qubit fixes the mixed challenge. Applying Corollary 5.5 before and after this replacement therefore also bounds the gap between ρ B R U \rho_{\mathrm{BR}}^{U} ρ BR U and 1 B 2 ⊗ ρ R U \frac{\mathbb{1}_{B}}{2}\otimes\rho_{\mathrm{R}}^{U} 2 1 B ⊗ ρ R U . To encode a chosen message using this EPR challenge, measure the message and B in the Bell basis. The Φ + \Phi^{+} Φ + outcome has probability 1 / 4 1/4 1/4 for every U U U and every message, and produces exactly its encoding on R, including its correlations with the receiver’s workspace. For the decorrelated challenge it instead produces ρ R U \rho_{\mathrm{R}}^{U} ρ R U independently of the message. Comparing both the chosen message and zero with this same state proves hiding.
For binding, Equation (19) bounds the Choi state of the channel from M to H by its maximally mixed replacement. Since M is one qubit, this trace-norm bound controls the channel uniformly over all inputs with a reference, losing only a factor of two. It therefore bounds both states returned to a malicious sender in the swap-binding game, even after conditioning on a successful validity check. Section D.3 gives the channel estimate, the Bell-measurement identities, and the full security bounds. □
Both protocols use quantum communication and the same public oracle as the decoding task. The one-qubit protocol sends 2 λ 2\lambda 2 λ qubits during commitment and another λ \lambda λ qubits at opening, for 3 λ 3\lambda 3 λ qubits in total; its purpose here is to give a direct cryptographic use of the encoding.
Acknowledgments
This work is supported by AM’s faculty startup grant from Virginia Tech and, in part, by the Commonwealth Cyber Initiative, an investment in the advancement of cyber research, innovation, and workforce development. The authors thank Charles Cao and Thomas Koutsikos for helpful discussions.
AI Disclosure
The authors came up with the initial idea and approach for the forward-access result. Claude Opus 5 then helped turn the authors’ proof sketch for this case into a complete proof, and also helped with the calculations for the inverse-access case. For the remaining two access models and for some of the applications, the authors wrote proof sketches and used ChatGPT Sol 6.1 to help draft more rigorous proofs from them. The AI-generated drafts of these proofs were often long and complicated. The authors replaced them with simpler proofs based on elementary identities, and these are the proofs in the paper. Claude Opus 5.5 and ChatGPT Sol 6.1 were also used throughout for revising and editing the manuscript, including finding and fixing errors in the initial proofs. The authors checked the correctness of all proofs and take full responsibility for the content of this paper.
Deferred proofs
These appendices give the full case calculations, query-bound constants, and application proofs.
Recording-oracle calculations
The calculations below establish the relation normalization, swap identity, and commutator bounds used in § 4 . The commutators are expanded separately for the four creation maps and their adjoints.
Elementary norm and counting bounds
Relation states. Let K = span { ∣ e ⟩ : e ∈ [ 2 n ] 2 } \mathcal{K} = \operatorname{span}\{|e\rangle: e \in[2^n]^2\} K = span { ∣ e ⟩ : e ∈ [ 2 n ] 2 } . At relation size ℓ \ell ℓ , each relation register has state space Sym ℓ ( K ) \operatorname{Sym}^{\ell}(\mathcal{K}) Sym ℓ ( K ) , the subspace of K ⊗ ℓ \mathcal{K}^{\otimes\ell} K ⊗ ℓ invariant under permutations. The full relation registers are the direct sums of these spaces over ℓ ≥ 0 \ell\ge0 ℓ ≥ 0 , and E 0 \mathrm{E}_0 E 0 has state space K \mathcal{K} K . For L = { ( x 1 , y 1 ) , … , ( x ℓ , y ℓ ) } L = \{(x_1,y_1), \ldots, (x_\ell,y_\ell)\} L = {( x 1 , y 1 ) , … , ( x ℓ , y ℓ )} , use the normalized relation state of Ma and Huang [29 Section 2.1] :
∣ L ⟩ = ∑ π ∈ Sym ℓ ∣ x π ( 1 ) , y π ( 1 ) , … , x π ( ℓ ) , y π ( ℓ ) ⟩ ℓ ! ∏ e ∈ [ 2 n ] 2 num ( L , e ) ! (23) |L\rangle= \frac{\sum_{\pi\in\operatorname{Sym}_{\ell}} |x_{\pi(1)},y_{\pi(1)},\ldots,x_{\pi(\ell)},y_{\pi(\ell)}\rangle}{\sqrt{\ell!\prod_{e\in[2^n]^2}\operatorname{num}(L,e)!}} \tag*{(23)} ∣ L ⟩ = ℓ ! ∏ e ∈ [ 2 n ] 2 num ( L , e )! ∑ π ∈ Sym ℓ ∣ x π ( 1 ) , y π ( 1 ) , … , x π ( ℓ ) , y π ( ℓ ) ⟩ (23)
Here Sym ℓ \operatorname{Sym}_{\ell} Sym ℓ is the set of permutations of the ℓ \ell ℓ positions. For ℓ = 0 \ell=0 ℓ = 0 , write ∣ ∅ ⟩ |\varnothing\rangle ∣ ∅ ⟩ .
In Equation (22), each distinct ordering occurs ∏ e num ( L , e ) ! \prod_e \operatorname{num}(L,e)! ∏ e num ( L , e )! times. There are ℓ ! / ∏ e num ( L , e ) ! \ell!/\prod_e \operatorname{num}(L,e)! ℓ ! / ∏ e num ( L , e )! such orderings. The numerator therefore has squared norm ℓ ! ∏ e num ( L , e ) ! \ell!\prod_e \operatorname{num}(L,e)! ℓ ! ∏ e num ( L , e )! , which verifies the normalization. Distinct multisets have disjoint supports, and a symmetric vector has equal coefficients on all orderings of a given multiset. Thus these states form an orthonormal basis of the symmetric subspace.
Oracle norms. The maps A , B A,B A , B are isometries on their defining domains, as in Ma–Huang [29 Claim 14] . For A A A , the final query y y y identifies the unique added pair ( x , y ) (x,y) ( x , y ) ; removing it recovers x , L , R x,L,R x , L , R . Thus distinct input basis vectors have orthogonal images, and
∥ A ∣ x ⟩ ∣ L ⟩ ∣ R ⟩ ∥ 2 2 = 2 n − ∣ Im ( L ∪ R ) ∣ 2 n − ∣ Im ( L ∪ R ) ∣ = 1. \lVert A|x\rangle|L\rangle|R\rangle\rVert_2^2
= \frac{2^n-|\operatorname{Im}(L\cup R)|}{2^n-|\operatorname{Im}(L\cup R)|}
=1. ∥ A ∣ x ⟩ ∣ L ⟩ ∣ R ⟩ ∥ 2 2 = 2 n − ∣ Im ( L ∪ R ) ∣ 2 n − ∣ Im ( L ∪ R ) ∣ = 1.
For B B B , the final query x x x identifies the unique added pair in R R R , and
∥ B ∣ y ⟩ ∣ L ⟩ ∣ R ⟩ ∥ 2 2 = 2 n − ∣ Dom ( L ∪ R ) ∣ 2 n − ∣ Dom ( L ∪ R ) ∣ = 1. \lVert B|y\rangle|L\rangle|R\rangle\rVert_2^2
= \frac{2^n-|\operatorname{Dom}(L\cup R)|}{2^n-|\operatorname{Dom}(L\cup R)|}
=1. ∥ B ∣ y ⟩ ∣ L ⟩ ∣ R ⟩ ∥ 2 2 = 2 n − ∣ Dom ( L ∪ R ) ∣ 2 n − ∣ Dom ( L ∪ R ) ∣ = 1.
Extend A , B A,B A , B by zero outside their defining domains. Then A A † , B B † AA^\dagger,BB^\dagger A A † , B B † are orthogonal projectors and
∥ A ∥ = ∥ A † ∥ = ∥ B ∥ = ∥ B † ∥ = 1. \lVert A\rVert=\lVert A^\dagger\rVert=\lVert B\rVert=\lVert B^\dagger\rVert=1. ∥ A ∥ = ∥ A † ∥ = ∥ B ∥ = ∥ B † ∥ = 1.
Ma–Huang [29 Claim 15] prove that V V V is a partial isometry. For the norm bound used here, the first term in V V V is in the image of A A A and the second is orthogonal to it. Hence
∥ V v ∥ 2 2 = ∥ A ( 1 − B B † ) v ∥ 2 2 + ∥ ( 1 − A A † ) B † v ∥ 2 2 ≤ ∥ ( 1 − B B † ) v ∥ 2 2 + ∥ B † v ∥ 2 2 = ∥ ( 1 − B B † ) v ∥ 2 2 + ∥ B B † v ∥ 2 2 = ∥ v ∥ 2 2 . \begin{aligned}
\lVert Vv\rVert_2^2
&= \lVert A(1-BB^\dagger)v\rVert_2^2+\lVert(1-AA^\dagger)B^\dagger v\rVert_2^2\\
&\le\lVert(1-BB^\dagger)v\rVert_2^2+\lVert B^\dagger v\rVert_2^2\\
&= \lVert(1-BB^\dagger)v\rVert_2^2+\lVert BB^\dagger v\rVert_2^2=\lVert v\rVert_2^2.
\end{aligned} ∥ V v ∥ 2 2 = ∥ A ( 1 − B B † ) v ∥ 2 2 + ∥( 1 − A A † ) B † v ∥ 2 2 ≤ ∥( 1 − B B † ) v ∥ 2 2 + ∥ B † v ∥ 2 2 = ∥( 1 − B B † ) v ∥ 2 2 + ∥ B B † v ∥ 2 2 = ∥ v ∥ 2 2 .
Here ∥ B † v ∥ 2 2 = ⟨ v ∣ B B † ∣ v ⟩ = ∥ B B † v ∥ 2 2 \lVert B^{\dagger}v\rVert_2^2=\langle v|BB^{\dagger}|v\rangle=\lVert BB^{\dagger}v\rVert_2^2 ∥ B † v ∥ 2 2 = ⟨ v ∣ B B † ∣ v ⟩ = ∥ B B † v ∥ 2 2 , and the projectors B B † BB^{\dagger} B B † and 1 − B B † 1-BB^{\dagger} 1 − B B † have orthogonal images. The adjoint obeys the same norm bound:
∥ V † v ∥ 2 = sup ∥ w ∥ 2 = 1 ∣ ⟨ w ∣ V † v ⟩ ∣ = sup ∥ w ∥ 2 = 1 ∣ ⟨ V w ∣ v ⟩ ∣ ≤ sup ∥ w ∥ 2 = 1 ∥ V w ∥ 2 ∥ v ∥ 2 ≤ ∥ v ∥ 2 . \lVert V^{\dagger}v\rVert_2=\sup_{\lVert w\rVert_2=1}|\langle w|V^{\dagger}v\rangle|=\sup_{\lVert w\rVert_2=1}|\langle Vw|v\rangle|
\le\sup_{\lVert w\rVert_2=1}\lVert Vw\rVert_2\lVert v\rVert_2\le\lVert v\rVert_2. ∥ V † v ∥ 2 = ∥ w ∥ 2 = 1 sup ∣ ⟨ w ∣ V † v ⟩ ∣ = ∥ w ∥ 2 = 1 sup ∣ ⟨ V w ∣ v ⟩ ∣ ≤ ∥ w ∥ 2 = 1 sup ∥ V w ∥ 2 ∥ v ∥ 2 ≤ ∥ v ∥ 2 .
Swapping E L , E R E_{\mathrm{L}},E_{\mathrm{R}} E L , E R maps A , B , V A,B,V A , B , V to A ˉ , B ˉ , V ˉ \bar{A},\bar{B},\bar{V} A ˉ , B ˉ , V ˉ , respectively. The swap is unitary, so
∥ A ˉ ∥ = ∥ A ˉ † ∥ = ∥ B ˉ ∥ = ∥ B ˉ † ∥ = 1 , ∥ V ˉ ∥ , ∥ V ˉ † ∥ ≤ 1. \lVert\bar{A}\rVert=\lVert\bar{A}^{\dagger}\rVert=\lVert\bar{B}\rVert=\lVert\bar{B}^{\dagger}\rVert=1,\qquad\lVert\bar{V}\rVert,\lVert\bar{V}^{\dagger}\rVert\le1. ∥ A ˉ ∥ = ∥ A ˉ † ∥ = ∥ B ˉ ∥ = ∥ B ˉ † ∥ = 1 , ∥ V ˉ ∥ , ∥ V ˉ † ∥ ≤ 1.
Insertion and its norm. For ∣ L ∣ = ℓ |L|=\ell ∣ L ∣ = ℓ , let P ℓ + 1 P_{\ell+1} P ℓ + 1 be the orthogonal projector onto Sym ℓ + 1 ( K ) \operatorname{Sym}^{\ell+1}(\mathcal{K}) Sym ℓ + 1 ( K ) and define
J = ℓ + 1 P ℓ + 1 ∣ K ⊗ Sym ℓ ( K ) . J=\sqrt{\ell+1}\,P_{\ell+1}\big|_{\mathcal{K}\otimes\operatorname{Sym}^{\ell}(\mathcal{K})}. J = ℓ + 1 P ℓ + 1 K ⊗ Sym ℓ ( K ) .
The first factor is E 0 E_0 E 0 , and the remaining ℓ \ell ℓ factors form E L E_{\mathrm{L}} E L . The map acts trivially on E R E_{\mathrm{R}} E R and the other registers. The fraction of orderings of L ∪ { e } L\cup\{e\} L ∪ { e } with first pair e e e is ( num ( L , e ) + 1 ) / ( ℓ + 1 ) (\operatorname{num}(L,e)+1)/(\ell+1) ( num ( L , e ) + 1 ) / ( ℓ + 1 ) . By the normalization above, its square root is the overlap of ∣ e ⟩ ∣ L ⟩ |e\rangle|L\rangle ∣ e ⟩ ∣ L ⟩ with ∣ L ∪ { e } ⟩ |L\cup\{e\}\rangle ∣ L ∪ { e }⟩ . The projection P ℓ + 1 P_{\ell+1} P ℓ + 1 is this overlap times ∣ L ∪ { e } ⟩ |L\cup\{e\}\rangle ∣ L ∪ { e }⟩ ; multiplying by ℓ + 1 \sqrt{\ell+1} ℓ + 1 gives
J ∣ e ⟩ E 0 ∣ L ⟩ E L = num ( L , e ) + 1 ∣ L ∪ { e } ⟩ E L . J|e\rangle_{E_0}|L\rangle_{E_{\mathrm{L}}}=\sqrt{\operatorname{num}(L,e)+1}|L\cup\{e\}\rangle_{E_{\mathrm{L}}}. J ∣ e ⟩ E 0 ∣ L ⟩ E L = num ( L , e ) + 1 ∣ L ∪ { e } ⟩ E L .
The factors are numbered 0 , 1 , … , ℓ 0,1,\ldots,\ell 0 , 1 , … , ℓ , with 0 0 0 corresponding to E 0 E_0 E 0 . We write
Σ = ∑ i = 1 ℓ SWAP 0 i . \Sigma=\sum_{i=1}^{\ell}\operatorname{SWAP}_{0i}. Σ = i = 1 ∑ ℓ SWAP 0 i .
Permuting the last ℓ \ell ℓ factors permutes the summands of Σ \Sigma Σ , so Σ \Sigma Σ preserves K ⊗ Sym ℓ ( K ) \mathcal{K}\otimes\operatorname{Sym}^{\ell}(\mathcal{K}) K ⊗ Sym ℓ ( K ) . For each i i i , a permutation sending 0 0 0 to i i i acts as SWAP 0 i \operatorname{SWAP}_{0i} SWAP 0 i on this subspace: removing that swap leaves a permutation of the last ℓ \ell ℓ factors. There are ℓ ! \ell! ℓ ! such permutations for each i i i , so averaging all ( ℓ + 1 ) ! (\ell+1)! ( ℓ + 1 )! permutations gives P ℓ + 1 = ( 1 + Σ ) / ( ℓ + 1 ) P_{\ell+1}=(1+\Sigma)/(\ell+1) P ℓ + 1 = ( 1 + Σ ) / ( ℓ + 1 ) on this subspace. Since P ℓ + 1 2 = P ℓ + 1 P_{\ell+1}^2=P_{\ell+1} P ℓ + 1 2 = P ℓ + 1 , we obtain
J † J = ( ℓ + 1 ) P ℓ + 1 ∣ K ⊗ Sym ℓ ( K ) = 1 + Σ . J^{\dagger}J=(\ell+1)P_{\ell+1}\big|_{\mathcal{K}\otimes\operatorname{Sym}^{\ell}(\mathcal{K})}=1+\Sigma. J † J = ( ℓ + 1 ) P ℓ + 1 K ⊗ Sym ℓ ( K ) = 1 + Σ.
These definitions are applied separately on each subspace of fixed relation size. For ∣ L ∣ = ℓ |L|=\ell ∣ L ∣ = ℓ , the orthogonal projection gives
∥ J v ∥ 2 2 = ( ℓ + 1 ) ∥ P ℓ + 1 v ∥ 2 2 ≤ ( ℓ + 1 ) ∥ v ∥ 2 2 , \lVert Jv\rVert_2^2=(\ell+1)\lVert P_{\ell+1}v\rVert_2^2\le(\ell+1)\lVert v\rVert_2^2, ∥ J v ∥ 2 2 = ( ℓ + 1 ) ∥ P ℓ + 1 v ∥ 2 2 ≤ ( ℓ + 1 ) ∥ v ∥ 2 2 ,
∥ v ∥ 2 2 − ∥ P ℓ + 1 v ∥ 2 2 = ∥ ( 1 − P ℓ + 1 ) v ∥ 2 2 ≥ 0. \lVert v\rVert_2^2-\lVert P_{\ell+1}v\rVert_2^2=\lVert(1-P_{\ell+1})v\rVert_2^2\ge0. ∥ v ∥ 2 2 − ∥ P ℓ + 1 v ∥ 2 2 = ∥( 1 − P ℓ + 1 ) v ∥ 2 2 ≥ 0.
If v = ∑ ℓ = 0 s v ℓ v=\sum_{\ell=0}^{s}v_{\ell} v = ∑ ℓ = 0 s v ℓ , where v ℓ v_{\ell} v ℓ has ∣ L ∣ = ℓ |L|=\ell ∣ L ∣ = ℓ , then
∥ J v ∥ 2 2 = ∑ ℓ = 0 s ∥ J v ℓ ∥ 2 2 ≤ ∑ ℓ = 0 s ( ℓ + 1 ) ∥ v ℓ ∥ 2 2 ≤ ( s + 1 ) ∥ v ∥ 2 2 . \lVert Jv\rVert_2^2=\sum_{\ell=0}^{s}\lVert Jv_{\ell}\rVert_2^2\le\sum_{\ell=0}^{s}(\ell+1)\lVert v_{\ell}\rVert_2^2\le(s+1)\lVert v\rVert_2^2. ∥ J v ∥ 2 2 = ℓ = 0 ∑ s ∥ J v ℓ ∥ 2 2 ≤ ℓ = 0 ∑ s ( ℓ + 1 ) ∥ v ℓ ∥ 2 2 ≤ ( s + 1 ) ∥ v ∥ 2 2 .
Different ℓ \ell ℓ give orthogonal outputs, since J v ℓ Jv_{\ell} J v ℓ has ∣ L ∣ = ℓ + 1 |L|=\ell+1 ∣ L ∣ = ℓ + 1 .
Amplitude and interference bounds. We use the following square-root estimate for each denominator change. For m ≥ 2 m \ge2 m ≥ 2 ,
f ( m ) : = m m − 1 − 1 = m / ( m − 1 ) − 1 m / ( m − 1 ) + 1 = 1 ( m − 1 ) ( m / ( m − 1 ) + 1 ) ≤ 1 2 ( m − 1 ) . (24) f(m) := \sqrt{\frac{m}{m-1}}-1=\frac{m/(m-1)-1}{\sqrt{m/(m-1)}+1}=\frac{1}{(m-1)(\sqrt{m/(m-1)}+1)}\le\frac{1}{2(m-1)}. \tag*{(24)} f ( m ) := m − 1 m − 1 = m / ( m − 1 ) + 1 m / ( m − 1 ) − 1 = ( m − 1 ) ( m / ( m − 1 ) + 1 ) 1 ≤ 2 ( m − 1 ) 1 . (24)
The last inequality uses m / ( m − 1 ) ≥ 1 \sqrt{m/(m-1)}\ge1 m / ( m − 1 ) ≥ 1 .
When several terms have the same output label, their workspace vectors can interfere. For vectors v 1 , … , v m v_1,\ldots,v_m v 1 , … , v m ,
∥ ∑ i = 1 m v i ∥ 2 2 = ∑ i , j = 1 m Re ⟨ v i ∣ v j ⟩ ≤ ∑ i , j = 1 m ∥ v i ∥ 2 ∥ v j ∥ 2 ≤ 1 2 ∑ i , j = 1 m ( ∥ v i ∥ 2 2 + ∥ v j ∥ 2 2 ) = m ∑ i = 1 m ∥ v i ∥ 2 2 . (25) \left\|\sum_{i=1}^{m}v_i\right\|_2^2=\sum_{i,j=1}^{m}\operatorname{Re}\langle v_i|v_j\rangle
\le\sum_{i,j=1}^{m}\|v_i\|_2\|v_j\|_2
\le\frac{1}{2}\sum_{i,j=1}^{m}\left(\|v_i\|_2^2+\|v_j\|_2^2\right)=m\sum_{i=1}^{m}\|v_i\|_2^2. \tag*{(25)} i = 1 ∑ m v i 2 2 = i , j = 1 ∑ m Re ⟨ v i ∣ v j ⟩ ≤ i , j = 1 ∑ m ∥ v i ∥ 2 ∥ v j ∥ 2 ≤ 2 1 i , j = 1 ∑ m ( ∥ v i ∥ 2 2 + ∥ v j ∥ 2 2 ) = m i = 1 ∑ m ∥ v i ∥ 2 2 . (25)
The two inequalities use Cauchy–Schwarz and 2 a b ≤ a 2 + b 2 2ab\le a^2+b^2 2 ab ≤ a 2 + b 2 , respectively. If ∣ λ ⟩ |\lambda\rangle ∣ λ ⟩ are orthonormal labels and λ μ \lambda_\mu λ μ is the label of the term indexed by μ \mu μ , then
∥ ∑ μ ∣ λ μ ⟩ ∣ v μ ⟩ ∥ 2 2 = ∑ μ , μ ~ λ μ = λ μ ~ Re ⟨ v μ ∣ v μ ~ ⟩ ≤ 1 2 ∑ μ , μ ~ λ μ = λ μ ~ ( ∥ v μ ∥ 2 2 + ∥ v μ ~ ∥ 2 2 ) = ∑ μ ∥ v μ ∥ 2 2 ∑ μ ~ λ μ ~ = λ μ 1. (26) \left\|\sum_\mu|\lambda_\mu\rangle|v_\mu\rangle\right\|_2^2
=\sum_{\substack{\mu,\widetilde{\mu}\\\lambda_\mu=\lambda_{\widetilde{\mu}}}}\operatorname{Re}\langle v_\mu|v_{\widetilde{\mu}}\rangle
\le\frac{1}{2}\sum_{\substack{\mu,\widetilde{\mu}\\\lambda_\mu=\lambda_{\widetilde{\mu}}}}\left(\|v_\mu\|_2^2+\|v_{\widetilde{\mu}}\|_2^2\right)
=\sum_\mu\|v_\mu\|_2^2\sum_{\substack{\widetilde{\mu}\\\lambda_{\widetilde{\mu}}=\lambda_\mu}}1. \tag*{(26)} μ ∑ ∣ λ μ ⟩ ∣ v μ ⟩ 2 2 = μ , μ λ μ = λ μ ∑ Re ⟨ v μ ∣ v μ ⟩ ≤ 2 1 μ , μ λ μ = λ μ ∑ ( ∥ v μ ∥ 2 2 + ∥ v μ ∥ 2 2 ) = μ ∑ ∥ v μ ∥ 2 2 μ λ μ = λ μ ∑ 1. (26)
The last inner sum counts the indices with the same final label. The two squared-norm sums agree after interchanging μ , μ ~ \mu,\widetilde{\mu} μ , μ .
Rank-one trace norm. For any vectors v , w v,w v , w ,
( ∣ v ⟩ ⟨ w ∣ ) † ∣ v ⟩ ⟨ w ∣ = ∥ v ∥ 2 2 ∣ w ⟩ ⟨ w ∣ , ∥ ∣ v ⟩ ⟨ w ∣ ∥ 1 = ∥ v ∥ 2 ∥ w ∥ 2 . \left(|v\rangle\langle w|\right)^\dagger|v\rangle\langle w|=\|v\|_2^2|w\rangle\langle w|,\qquad\left\||v\rangle\langle w|\right\|_1=\|v\|_2\|w\|_2. ( ∣ v ⟩ ⟨ w ∣ ) † ∣ v ⟩ ⟨ w ∣ = ∥ v ∥ 2 2 ∣ w ⟩ ⟨ w ∣ , ∥ ∣ v ⟩ ⟨ w ∣ ∥ 1 = ∥ v ∥ 2 ∥ w ∥ 2 .
The only possible nonzero singular value is ∥ v ∥ 2 ∥ w ∥ 2 \|v\|_2\|w\|_2 ∥ v ∥ 2 ∥ w ∥ 2 .
Proof of Lemma 4.1
Proof. We express matrix elements of the swap sum Σ \Sigma Σ as deletion followed by insertion.
Matrix entries of the swap sum. For a pair e e e , define D e ∣ L ⟩ = num ( L , e ) ∣ L ∖ { e } ⟩ D_e|L\rangle=\sqrt{\operatorname{num}(L,e)}|L\setminus\{e\}\rangle D e ∣ L ⟩ = num ( L , e ) ∣ L ∖ { e }⟩ , with value zero if e ∉ L e\notin L e ∈ / L . Then D e † D e ∣ L ⟩ = num ( L , e ) ∣ L ⟩ D_e^\dagger D_e|L\rangle=\operatorname{num}(L,e)|L\rangle D e † D e ∣ L ⟩ = num ( L , e ) ∣ L ⟩ . The matrix entry ⟨ e ′ ∣ E 0 Σ ∣ e ⟩ E 0 \langle e'|E_0\Sigma|e\rangle E_0 ⟨ e ′ ∣ E 0 Σ∣ e ⟩ E 0 replaces e ′ e' e ′ by e e e in L L L , summed over all positions. The normalized insertion and deletion weights give
⟨ e ′ ∣ E 0 Σ ∣ e ⟩ E 0 = D e † D e ′ . (27) \langle e'|E_0\Sigma|e\rangle E_0=D_e^\dagger D_{e'}. \tag*{(27)} ⟨ e ′ ∣ E 0 Σ∣ e ⟩ E 0 = D e † D e ′ . (27)
Verification of Equation (26)
For ∣ L ∣ = ℓ ≥ 1 |L| = \ell\ge1 ∣ L ∣ = ℓ ≥ 1 , the fraction of orderings whose first pair is e e e is num ( L , e ) / ℓ \operatorname{num}(L,e)/\ell num ( L , e ) / ℓ . Grouping by the first pair gives
∣ L ⟩ = ∑ e ∈ L num ( L , e ) ℓ ∣ e ⟩ ∣ L ∖ { e } ⟩ , |L\rangle= \sum_{e\in L} \sqrt{\frac{\operatorname{num}(L,e)}{\ell}} |e\rangle|L \setminus\{e\}\rangle, ∣ L ⟩ = e ∈ L ∑ ℓ num ( L , e ) ∣ e ⟩ ∣ L ∖ { e }⟩ ,
where the sum is over distinct pairs. Also,
⟨ e ′ ∣ E 0 Σ ∣ e ⟩ E 0 = ∑ i = 1 ℓ ( ∣ e ⟩ ⟨ e ′ ∣ ) i . \langle e'|E_0\Sigma|e\rangle_{E_0} = \sum_{i=1}^{\ell} (|e\rangle\langle e'|)_i. ⟨ e ′ ∣ E 0 Σ∣ e ⟩ E 0 = i = 1 ∑ ℓ ( ∣ e ⟩ ⟨ e ′ ∣ ) i .
For each swap, taking the matrix entry from e e e to e ′ e' e ′ in E 0 E_0 E 0 replaces e ′ e' e ′ by e e e in the swapped position of E L E_L E L . The ℓ \ell ℓ terms have equal matrix entries because the relation states are symmetric. For e ≠ e ′ e \ne e' e = e ′ , e ′ ∈ L e' \in L e ′ ∈ L , and L ′ = ( L ∖ { e ′ } ) ∪ { e } L' = (L \setminus\{e'\}) \cup\{e\} L ′ = ( L ∖ { e ′ }) ∪ { e } ,
⟨ L ′ ∣ ∑ i = 1 ℓ ( ∣ e ⟩ ⟨ e ′ ∣ ) i ∣ L ⟩ = ℓ ⟨ L ′ ∣ ( ∣ e ⟩ ⟨ e ′ ∣ ) 1 ∣ L ⟩ = ℓ num ( L , e ′ ) ℓ num ( L ′ , e ) ℓ = num ( L , e ′ ) ( num ( L , e ) + 1 ) . \begin{aligned}
\langle L'| \sum_{i=1}^{\ell} (|e\rangle\langle e'|)_i |L\rangle= \ell\langle L'|(|e\rangle\langle e'|)_1|L\rangle\\
&= \ell\sqrt{\frac{\operatorname{num}(L,e')}{\ell}} \sqrt{\frac{\operatorname{num}(L',e)}{\ell}} \\
&= \sqrt{\operatorname{num}(L,e')(\operatorname{num}(L,e)+1)}.
\end{aligned} ⟨ L ′ ∣ i = 1 ∑ ℓ ( ∣ e ⟩ ⟨ e ′ ∣ ) i ∣ L ⟩ = ℓ ⟨ L ′ ∣ ( ∣ e ⟩ ⟨ e ′ ∣ ) 1 ∣ L ⟩ = ℓ ℓ num ( L , e ′ ) ℓ num ( L ′ , e ) = num ( L , e ′ ) ( num ( L , e ) + 1 ) .
The second line uses the decomposition by the first pair, and the last uses num ( L ′ , e ) = num ( L , e ) + 1 \operatorname{num}(L',e) = \operatorname{num}(L,e)+1 num ( L ′ , e ) = num ( L , e ) + 1 . For e = e ′ e=e' e = e ′ ,
⟨ L ∣ ∑ i = 1 ℓ ( ∣ e ⟩ ⟨ e ∣ ) i ∣ L ⟩ = ℓ num ( L , e ) ℓ = num ( L , e ) . \langle L| \sum_{i=1}^{\ell} (|e\rangle\langle e|)_i |L\rangle= \ell\frac{\operatorname{num}(L,e)}{\ell} = \operatorname{num}(L,e). ⟨ L ∣ i = 1 ∑ ℓ ( ∣ e ⟩ ⟨ e ∣ ) i ∣ L ⟩ = ℓ ℓ num ( L , e ) = num ( L , e ) .
All other matrix entries are zero. Applying D e ′ D_{e'} D e ′ and then D e † D^\dagger_e D e † gives these same coefficients by their definitions. For ℓ = 0 \ell=0 ℓ = 0 , both Σ \Sigma Σ and D e ′ ∣ ∅ ⟩ D_{e'}|\varnothing\rangle D e ′ ∣ ∅ ⟩ vanish. Thus ⟨ e ′ ∣ E 0 Σ ∣ e ⟩ E 0 = D e ′ † D e \langle e'|E_0\Sigma|e\rangle_{E_0}=D^\dagger_{e'}D_e ⟨ e ′ ∣ E 0 Σ∣ e ⟩ E 0 = D e ′ † D e for every relation size.
Counting the deletion weight. Let e ~ 0 = ( x 0 , c ~ , ( r ~ , h ) ) \tilde e_0=(x_{0,\tilde c},(\tilde r,h)) e ~ 0 = ( x 0 , c ~ , ( r ~ , h )) . Tracing out H forces the same h h h in the ket and bra. Using Equation (27) and cyclicity of the partial trace over E L E_L E L gives
K ϕ = 1 2 n + 1 ∑ c , r , c ~ , r ~ , h Tr E L E R [ ∣ D e 0 α c , r ⟩ ⟨ D e 0 α c ~ , r ~ ∣ ] . K_\phi= \frac{1}{2^{n+1}} \sum_{c,r,\tilde c,\tilde r,h} \operatorname{Tr}_{E_L E_R}\left[|D_{e_0}\alpha_{c,r}\rangle\langle D_{e_0}\alpha_{\tilde c,\tilde r}|\right]. K ϕ = 2 n + 1 1 c , r , c ~ , r ~ , h ∑ Tr E L E R [ ∣ D e 0 α c , r ⟩ ⟨ D e 0 α c ~ , r ~ ∣ ] .
For any vectors v , w v,w v , w , trace-norm duality and ∥ ∣ v ⟩ ⟨ w ∣ ∥ 1 = ∥ v ∥ 2 ∥ w ∥ 2 \||v\rangle\langle w|\|_1=\|v\|_2\|w\|_2 ∥∣ v ⟩ ⟨ w ∣ ∥ 1 = ∥ v ∥ 2 ∥ w ∥ 2 give ∥ Tr E ∣ v ⟩ ⟨ w ∣ ∥ 1 ≤ ∥ v ∥ 2 ∥ w ∥ 2 \|\operatorname{Tr}_E|v\rangle\langle w|\|_1\le\|v\|_2\|w\|_2 ∥ Tr E ∣ v ⟩ ⟨ w ∣ ∥ 1 ≤ ∥ v ∥ 2 ∥ w ∥ 2 . The deletion weights have a common bound. For fixed c , r c,r c , r , the diagonal operator D e † D e D^\dagger_eD_e D e † D e counts copies of e e e in L L L . Summing over all challenge pairs counts a subset of L L L , so
∑ c ~ , r ~ , h ∥ D e ~ 0 α c , r ∥ 2 2 ≤ q ∥ α c , r ∥ 2 2 . \sum_{\tilde c,\tilde r,h} \|D_{\tilde e_0}\alpha_{c,r}\|_2^2 \le q\|\alpha_{c,r}\|_2^2. c ~ , r ~ , h ∑ ∥ D e ~ 0 α c , r ∥ 2 2 ≤ q ∥ α c , r ∥ 2 2 .
Marginal and norm bounds. We apply the rank-one trace bound and then 2 a b ≤ a 2 + b 2 2ab\le a^2+b^2 2 ab ≤ a 2 + b 2 . The two squared sums are equal after interchanging ( c , r ) (c,r) ( c , r ) with ( c ~ , r ~ ) (\tilde c,\tilde r) ( c ~ , r ~ ) , and the deletion bound applies to each. Thus
∥ K ϕ ∥ 1 ≤ 1 2 n + 1 ∑ c , r , c ~ , r ~ , h ∥ D e 0 α c , r ∥ 2 ∥ D e 0 α c ~ , r ~ ∥ 2 ≤ q 2 n + 1 ∑ c , r ∥ α c , r ∥ 2 2 = q 2 ∣ H ∣ ∥ ϕ ∥ 2 2 . \begin{aligned}
\|K_\phi\|_1 \le\frac{1}{2^{n+1}} \sum_{c,r,\tilde c,\tilde r,h} \|D_{e_0}\alpha_{c,r}\|_2\|D_{e_0}\alpha_{\tilde c,\tilde r}\|_2 \\
&\le\frac{q}{2^{n+1}}\sum_{c,r}\|\alpha_{c,r}\|_2^2 = \frac{q}{2|H|}\|\phi\|_2^2.
\end{aligned} ∥ K ϕ ∥ 1 ≤ 2 n + 1 1 c , r , c ~ , r ~ , h ∑ ∥ D e 0 α c , r ∥ 2 ∥ D e 0 α c ~ , r ~ ∥ 2 ≤ 2 n + 1 q c , r ∑ ∥ α c , r ∥ 2 2 = 2∣ H ∣ q ∥ ϕ ∥ 2 2 .
The last equality is Equation (9) . Taking the trace in Equation (11) gives ∥ F ∥ 2 = ∥ ϕ ∥ 2 + Tr K ϕ \lVert\mathcal{F}\rVert^2=\lVert\phi\rVert^2+\operatorname{Tr}K_\phi ∥ F ∥ 2 = ∥ ϕ ∥ 2 + Tr K ϕ . The second bound follows from ∣ Tr K ϕ ∣ ≤ ∥ K ϕ ∥ 1 \lvert\operatorname{Tr}K_\phi\rvert\le\lVert K_\phi\rVert_1 ∣ Tr K ϕ ∣ ≤ ∥ K ϕ ∥ 1 .
Commutator bounds
This subsection proves the eight component bounds collected in Equation (34) . Lemmas A.1 and A.2 treat creation in the two records, and Lemmas A.3 and A.4 treat the corresponding deletions. The last four lemmas treat the barred maps, whose destination records are exchanged. In every case, [ X , J ] = X J − J X [X,J]=XJ-JX [ X , J ] = X J − J X , 0 ≤ q ≤ 2 n − 2 0\le q\le2^n-2 0 ≤ q ≤ 2 n − 2 , and ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ has the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q \lvert L\cup R\rvert\le q ∣ L ∪ R ∣ ≤ q . Here ∣ a ⟩ \lvert a\rangle ∣ a ⟩ , ∣ b ⟩ \lvert b\rangle ∣ b ⟩ , ∣ c ⟩ \lvert c\rangle ∣ c ⟩ denote error vectors; c c c in summation indices is the challenge bit. Old labels mean the input challenge, radiation, hidden, query, and relation labels; final labels mean the output basis labels outside the workspace.
Each proof expands the two orders and cancels the terms with unchanged normalization and allowed labels. The remaining vectors describe the normalization change, the excluded creation or blocked deletion, and, for A † A^\dagger A † , B ˉ † \bar B^\dagger B ˉ † , deletion of e 0 e_0 e 0 itself. We bound the normalization term using Equation (24) and the norm of J J J . For the other terms, we group contributions with the same query, hidden, and relation labels, count the input labels yielding each such output, and apply Equation (26) to their workspace vectors. Equations (9) and (10) then account for the sums over the radiation and hidden labels.
Lemma A.1 (Forward creation). Let 0 ≤ q ≤ 2 n − 2 0\le q\le2^n-2 0 ≤ q ≤ 2 n − 2 and let ∣ ϕ ⟩ \lvert\phi\rangle ∣ ϕ ⟩ have the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q \lvert L\cup R\rvert\le q ∣ L ∪ R ∣ ≤ q . Then
∥ [ A , J ] ϕ ∥ 2 ≤ ( 2 2 n − q + q + 2 4 ( 2 n − q − 1 ) 2 ) ∥ ϕ ∥ 2 . (28) \lVert[A,J]\phi\rVert^2\le\left(\frac{2}{2^n-q}+\frac{q+2}{4(2^n-q-1)^2}\right)\lVert\phi\rVert^2. \tag*{(28)} ∥[ A , J ] ϕ ∥ 2 ≤ ( 2 n − q 2 + 4 ( 2 n − q − 1 ) 2 q + 2 ) ∥ ϕ ∥ 2 . (28) Proof. Write k = ∣ Im ( L ∪ R ) ∣ ≤ q k=\lvert\operatorname{Im}(L\cup R)\rvert\le q k = ∣ Im ( L ∪ R )∣ ≤ q . Insertion changes the image size as follows:
∣ Im ( ( L ∪ { e 0 } ) ∪ R ) ∣ = { k + 1 , y 0 ∉ Im ( L ∪ R ) , k , y 0 ∈ Im ( L ∪ R ) . \lvert\operatorname{Im}((L\cup\{e_0\})\cup R)\rvert=
\begin{cases}
k+1, & y_0\notin\operatorname{Im}(L\cup R),\\
k, & y_0\in\operatorname{Im}(L\cup R).
\end{cases} ∣ Im (( L ∪ { e 0 }) ∪ R )∣ = { k + 1 , k , y 0 ∈ / Im ( L ∪ R ) , y 0 ∈ Im ( L ∪ R ) . The two orders. For the branch y = y 0 ∉ Im ( L ∪ R ) y=y_0\notin\operatorname{Im}(L\cup R) y = y 0 ∈ / Im ( L ∪ R ) , the insertion weight is
w c , x : = { 2 , x = x 0 , c , 1 , x ≠ x 0 , c . w_{c,x}:=
\begin{cases}
\sqrt{2}, & x=x_{0,c},\\
1, & x\ne x_{0,c}.
\end{cases} w c , x := { 2 , 1 , x = x 0 , c , x = x 0 , c . The common output vector is
∣ β ⟩ = ∣ y ⟩ Q ∣ α c , r , x , L , R ⟩ W ∣ h ⟩ H ∣ L ∪ { e 0 , ( x , y ) } ⟩ E L ∣ R ⟩ E R . \lvert\beta\rangle=\lvert y\rangle_Q\lvert\alpha_{c,r,x,L,R}\rangle_W\lvert h\rangle_H\lvert L\cup\{e_0,(x,y)\}\rangle_{E_L}\lvert R\rangle_{E_R}. ∣ β ⟩ = ∣ y ⟩ Q ∣ α c , r , x , L , R ⟩ W ∣ h ⟩ H ∣ L ∪ { e 0 , ( x , y )} ⟩ E L ∣ R ⟩ E R .
By the definitions of A A A , J J J ,
A J ∣ ϕ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) , y ≠ y 0 ∣ β ⟩ 2 n − k − 1 + 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∈ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) num ( L , e 0 ) + 1 2 n − k ∣ β ⟩ , \begin{aligned}
AJ\lvert\phi\rangle={}&\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R),\ y\ne y_0}}\frac{\lvert\beta\rangle}{\sqrt{2^n-k-1}}\\
&+\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\ y_0\in\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R)}}\frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-k}}\lvert\beta\rangle,
\end{aligned} A J ∣ ϕ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) , y = y 0 ∑ 2 n − k − 1 ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) ∑ 2 n − k num ( L , e 0 ) + 1 ∣ β ⟩ ,
J A ∣ ϕ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) , y ≠ y 0 ∣ β ⟩ 2 n − k + 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∈ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) num ( L , e 0 ) + 1 2 n − k ∣ β ⟩ + 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y = y 0 w c , x 2 n − k ∣ β ⟩ . \begin{aligned}
JA\lvert\phi\rangle={}&\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R),\ y\ne y_0}}\frac{\lvert\beta\rangle}{\sqrt{2^n-k}}\\
&+\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\ y_0\in\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R)}}\frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-k}}\lvert\beta\rangle\\
&+\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y=y_0}}\frac{w_{c,x}}{\sqrt{2^n-k}}\lvert\beta\rangle.
\end{aligned} J A ∣ ϕ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) , y = y 0 ∑ 2 n − k ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) ∑ 2 n − k num ( L , e 0 ) + 1 ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y = y 0 ∑ 2 n − k w c , x ∣ β ⟩ .
When y 0 ∈ Im ( L ∪ R ) y_0\in\operatorname{Im}(L\cup R) y 0 ∈ Im ( L ∪ R ) , the two orders have the same denominator and insertion weight, so their second sums cancel. When y 0 ∉ Im ( L ∪ R ) y_0\notin\operatorname{Im}(L\cup R) y 0 ∈ / Im ( L ∪ R ) , insertion forbids y = y 0 y=y_0 y = y 0 in A J AJ A J , whereas J A JA J A can include it. In this last case, the inserted pairs coincide exactly when x = x 0 , c x=x_{0,c} x = x 0 , c , giving the weight 2 \sqrt{2} 2 . Since
1 2 n − k − 1 − 1 2 n − k = f ( 2 n − k ) 2 n − k , \frac{1}{\sqrt{2^n-k-1}}-\frac{1}{\sqrt{2^n-k}}=\frac{f(2^n-k)}{\sqrt{2^n-k}}, 2 n − k − 1 1 − 2 n − k 1 = 2 n − k f ( 2 n − k ) ,
we have
[ A , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ , ∣ a ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) , y ≠ y 0 f ( 2 n − k ) 2 n − k ∣ β ⟩ , ∣ c ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y = y 0 w c , x 2 n − k ∣ β ⟩ . \begin{aligned}
[A,J]\lvert\phi\rangle&=\lvert a\rangle-\lvert c\rangle,\\
\lvert a\rangle&=\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R),\ y\ne y_0}}\frac{f(2^n-k)}{\sqrt{2^n-k}}\lvert\beta\rangle,\\
\lvert c\rangle&=\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y=y_0}}\frac{w_{c,x}}{\sqrt{2^n-k}}\lvert\beta\rangle.
\end{aligned} [ A , J ] ∣ ϕ ⟩ ∣ a ⟩ ∣ c ⟩ = ∣ a ⟩ − ∣ c ⟩ , = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) , y = y 0 ∑ 2 n − k f ( 2 n − k ) ∣ β ⟩ , = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y = y 0 ∑ 2 n − k w c , x ∣ β ⟩ .
The normalization term. Let ∣ a ′ ⟩ \lvert a'\rangle ∣ a ′ ⟩ be the sum defining ∣ a ⟩ \lvert a\rangle ∣ a ⟩ before applying J J J :
∣ a ′ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) , y ≠ y 0 f ( 2 n − k ) 2 n − k ∣ y ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ∪ { ( x , y ) } ⟩ ∣ R ⟩ . \lvert a'\rangle=\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R),\ y\ne y_0}}\frac{f(2^n-k)}{\sqrt{2^n-k}}\lvert y\rangle\lvert\alpha_{c,r,x,L,R}\rangle\lvert h\rangle\lvert e_0\rangle\lvert L\cup\{(x,y)\}\rangle\lvert R\rangle. ∣ a ′ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) , y = y 0 ∑ 2 n − k f ( 2 n − k ) ∣ y ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ∪ {( x , y )}⟩ ∣ R ⟩ .
Here ∣ a ⟩ = J ∣ a ′ ⟩ \lvert a\rangle=J\lvert a'\rangle ∣ a ⟩ = J ∣ a ′ ⟩ , and the added pair is the unique pair with output y y y . Removing it and reading e 0 e_0 e 0 recovers all old labels, so the terms in ∣ a ′ ⟩ \lvert a'\rangle ∣ a ′ ⟩ have orthogonal labels. There are 2 n − k − 1 2^n-k-1 2 n − k − 1 allowed y y y values. The relation in E L E_{\mathrm{L}} E L has size at most q + 1 q+1 q + 1 in ∣ a ′ ⟩ |a'\rangle ∣ a ′ ⟩ . Using f ( 2 n − k ) ≤ 1 / [ 2 ( 2 n − q − 1 ) ] f(2^n-k)\le1/[2(2^n-q-1)] f ( 2 n − k ) ≤ 1/ [ 2 ( 2 n − q − 1 )] , Equation (9) , and the bound on J J J , we get
∥ a ′ ∥ 2 2 = 1 2 n + 1 ∑ c , r , h , x , L , R y 0 ∉ Im ( L ∪ R ) 2 n − k − 1 2 n − k f ( 2 n − k ) 2 ∥ α c , r , x , L , R ∥ 2 2 ≤ 1 4 ( 2 n − q − 1 ) 2 ⋅ 1 2 n + 1 ∑ c , r , h , x , L , R ∥ α c , r , x , L , R ∥ 2 2 = ∥ ϕ ∥ 2 2 4 ( 2 n − q − 1 ) 2 , \begin{aligned}
\lVert a'\rVert_2^2=\frac{1}{2^{n+1}}\sum_{\substack{c,r,h,x,L,R\\y_0\notin\operatorname{Im}(L\cup R)}}\frac{2^n-k-1}{2^n-k}f(2^n-k)^2\lVert\alpha_{c,r,x,L,R}\rVert_2^2 \\
&\le\frac{1}{4(2^n-q-1)^2}\cdot\frac{1}{2^{n+1}}\sum_{c,r,h,x,L,R}\lVert\alpha_{c,r,x,L,R}\rVert_2^2 \\
&=\frac{\lVert\phi\rVert_2^2}{4(2^n-q-1)^2},
\end{aligned} ∥ a ′ ∥ 2 2 = 2 n + 1 1 c , r , h , x , L , R y 0 ∈ / Im ( L ∪ R ) ∑ 2 n − k 2 n − k − 1 f ( 2 n − k ) 2 ∥ α c , r , x , L , R ∥ 2 2 ≤ 4 ( 2 n − q − 1 ) 2 1 ⋅ 2 n + 1 1 c , r , h , x , L , R ∑ ∥ α c , r , x , L , R ∥ 2 2 = 4 ( 2 n − q − 1 ) 2 ∥ ϕ ∥ 2 2 ,
∥ a ∥ 2 2 ≤ ( q + 2 ) ∥ a ′ ∥ 2 2 ≤ q + 2 4 ( 2 n − q − 1 ) 2 ∥ ϕ ∥ 2 2 . \lVert a\rVert_2^2\le(q+2)\lVert a'\rVert_2^2\le\frac{q+2}{4(2^n-q-1)^2}\lVert\phi\rVert_2^2. ∥ a ∥ 2 2 ≤ ( q + 2 ) ∥ a ′ ∥ 2 2 ≤ 4 ( 2 n − q − 1 ) 2 q + 2 ∥ ϕ ∥ 2 2 .
The excluded output. For ∣ c ⟩ |c\rangle ∣ c ⟩ , write
μ = ( c , r , h , x , L , R ) , λ μ = ( y 0 , h , L ∪ { e 0 , ( x , y 0 ) } , R ) , w μ = w c , x . \mu=(c,r,h,x,L,R),\qquad\lambda_\mu=(y_0,h,L\cup\{e_0,(x,y_0)\},R),\qquad w_\mu=w_{c,x}. μ = ( c , r , h , x , L , R ) , λ μ = ( y 0 , h , L ∪ { e 0 , ( x , y 0 )} , R ) , w μ = w c , x .
The index μ \mu μ ranges over the terms in the sum defining ∣ c ⟩ |c\rangle ∣ c ⟩ , with α μ = α c , r , x , L , R \alpha_\mu=\alpha_{c,r,x,L,R} α μ = α c , r , x , L , R and k μ = ∣ Im ( L ∪ R ) ∣ k_\mu=|\operatorname{Im}(L\cup R)| k μ = ∣ Im ( L ∪ R ) ∣ . The two pairs with output y 0 y_0 y 0 recover the old L L L after their removal. Choosing which is e 0 e_0 e 0 fixes c , r , h , x c,r,h,x c , r , h , x . If the two pairs are distinct, there are at most two choices, both with w μ = 1 w_\mu=1 w μ = 1 . If they are equal, there is one choice with w μ = 2 w_\mu=\sqrt{2} w μ = 2 . Hence
w μ 2 ∑ μ ~ λ μ ~ = λ μ 1 ≤ 2. w_\mu^2\sum_{\substack{\widetilde{\mu}\\\lambda_{\widetilde{\mu}}=\lambda_\mu}}1\le2. w μ 2 μ λ μ = λ μ ∑ 1 ≤ 2.
By Equation (26) ,
∥ c ∥ 2 2 = 1 2 n + 1 ∑ λ ∥ ∑ μ λ μ = λ w μ α μ 2 n − k μ ∥ 2 2 ≤ 1 2 n + 1 ∑ μ w μ 2 ∣ α μ ∣ 2 2 n − k μ ∑ μ ~ λ μ ~ = λ μ 1 ≤ 2 2 n + 1 ∑ c , r , h , x , L , R y 0 ∉ Im ( L ∪ R ) ∥ α c , r , x , L , R ∥ 2 2 2 n − k ≤ 2 2 n − q ∥ ϕ ∥ 2 2 . \begin{aligned}
\lVert c\rVert_2^2=\frac{1}{2^{n+1}}\sum_\lambda\left\lVert\sum_{\substack{\mu\\\lambda_\mu=\lambda}}\frac{w_\mu\alpha_\mu}{\sqrt{2^n-k_\mu}}\right\rVert_2^2 \\
&\le\frac{1}{2^{n+1}}\sum_\mu\frac{w_\mu^2\lvert\alpha_\mu\rvert^2}{2^n-k_\mu}\sum_{\substack{\widetilde{\mu}\\\lambda_{\widetilde{\mu}}=\lambda_\mu}}1 \\
&\le\frac{2}{2^{n+1}}\sum_{\substack{c,r,h,x,L,R\\y_0\notin\operatorname{Im}(L\cup R)}}\frac{\lVert\alpha_{c,r,x,L,R}\rVert_2^2}{2^n-k} \\
&\le\frac{2}{2^n-q}\lVert\phi\rVert_2^2.
\end{aligned} ∥ c ∥ 2 2 = 2 n + 1 1 λ ∑ μ λ μ = λ ∑ 2 n − k μ w μ α μ 2 2 ≤ 2 n + 1 1 μ ∑ 2 n − k μ w μ 2 ∣ α μ ∣ 2 μ λ μ = λ μ ∑ 1 ≤ 2 n + 1 2 c , r , h , x , L , R y 0 ∈ / Im ( L ∪ R ) ∑ 2 n − k ∥ α c , r , x , L , R ∥ 2 2 ≤ 2 n − q 2 ∥ ϕ ∥ 2 2 .
In ∣ a ⟩ |a\rangle ∣ a ⟩ , the final relation L L L contains one pair with output equal to the final query label; in ∣ c ⟩ |c\rangle ∣ c ⟩ , it contains two. These are different relation labels, so
⟨ a ∣ c ⟩ = 0 , ∥ [ A , J ] ϕ ∥ 2 2 = ∥ a ∥ 2 2 + ∥ c ∥ 2 2 ≤ ( q + 2 4 ( 2 n − q − 1 ) 2 + 2 2 n − q ) ∥ ϕ ∥ 2 2 . \langle a|c\rangle=0,\qquad\lVert[A,J]\phi\rVert_2^2=\lVert a\rVert_2^2+\lVert c\rVert_2^2\le\left(\frac{q+2}{4(2^n-q-1)^2}+\frac{2}{2^n-q}\right)\lVert\phi\rVert_2^2. ⟨ a ∣ c ⟩ = 0 , ∥[ A , J ] ϕ ∥ 2 2 = ∥ a ∥ 2 2 + ∥ c ∥ 2 2 ≤ ( 4 ( 2 n − q − 1 ) 2 q + 2 + 2 n − q 2 ) ∥ ϕ ∥ 2 2 .
Lemma A.2 (Inverse creation). Let 0 ≤ q ≤ 2 n − 2 0 \le q \le2^n-2 0 ≤ q ≤ 2 n − 2 and let ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ have the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q |L \cup R| \le q ∣ L ∪ R ∣ ≤ q . Then
∥ [ B , J ] ϕ ∥ 2 2 ≤ ( 1 2 n − q + q + 1 4 ( 2 n − q − 1 ) 2 ) ∥ ϕ ∥ 2 2 \lVert[B,J]\phi\rVert_2^2 \le\left(\frac{1}{2^n-q}+\frac{q+1}{4(2^n-q-1)^2}\right)\lVert\phi\rVert_2^2 ∥[ B , J ] ϕ ∥ 2 2 ≤ ( 2 n − q 1 + 4 ( 2 n − q − 1 ) 2 q + 1 ) ∥ ϕ ∥ 2 2
Proof. We relabel the query-basis index x x x in the expansion of α c , r \alpha_{c,r} α c , r as y y y . Write d = ∣ Dom ( L ∪ R ) ∣ ≤ q d=|\operatorname{Dom}(L\cup R)|\le q d = ∣ Dom ( L ∪ R ) ∣ ≤ q . Insertion changes the domain size as follows:
∣ Dom ( ( L ∪ { e 0 } ) ∪ R ) ∣ = { d + 1 , x 0 , c ∉ Dom ( L ∪ R ) , d , x 0 , c ∈ Dom ( L ∪ R ) . |\operatorname{Dom}((L\cup\{e_0\})\cup R)|=
\begin{cases}
d+1, & x_{0,c}\notin\operatorname{Dom}(L\cup R),\\
d, & x_{0,c}\in\operatorname{Dom}(L\cup R).
\end{cases} ∣ Dom (( L ∪ { e 0 }) ∪ R ) ∣ = { d + 1 , d , x 0 , c ∈ / Dom ( L ∪ R ) , x 0 , c ∈ Dom ( L ∪ R ) .
The two orders. The common output vector is
∣ β ⟩ = ∣ x ⟩ Q ∣ α c , r , y , L , R ⟩ W ∣ h ⟩ H ∣ L ∪ { e 0 } ⟩ E L ∣ R ∪ { ( x , y ) } ⟩ E R . |\beta\rangle=|x\rangle_Q|\alpha_{c,r,y,L,R}\rangle_W|h\rangle_H|L\cup\{e_0\}\rangle_{E_L}|R\cup\{(x,y)\}\rangle_{E_R}. ∣ β ⟩ = ∣ x ⟩ Q ∣ α c , r , y , L , R ⟩ W ∣ h ⟩ H ∣ L ∪ { e 0 } ⟩ E L ∣ R ∪ {( x , y )} ⟩ E R .
The definitions of B , J B,J B , J give
B J ∣ ϕ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) , x ≠ x 0 , c ∣ β ⟩ 2 n − d − 1 + 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∈ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) num ( L , e 0 ) + 1 2 n − d ∣ β ⟩ , \begin{aligned}
BJ|\phi\rangle={}&\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R),\ x\ne x_{0,c}}}
\frac{|\beta\rangle}{\sqrt{2^n-d-1}}\\
&+\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\in\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R)}}
\frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-d}}|\beta\rangle,
\end{aligned} B J ∣ ϕ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) , x = x 0 , c ∑ 2 n − d − 1 ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) ∑ 2 n − d num ( L , e 0 ) + 1 ∣ β ⟩ ,
J B ∣ ϕ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) , x ≠ x 0 , c ∣ β ⟩ 2 n − d + 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∈ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) num ( L , e 0 ) + 1 2 n − d ∣ β ⟩ + 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x = x 0 , c ∣ β ⟩ 2 n − d . \begin{aligned}
JB|\phi\rangle={}&\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R),\ x\ne x_{0,c}}}
\frac{|\beta\rangle}{\sqrt{2^n-d}}\\
&+\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\in\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R)}}
\frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-d}}|\beta\rangle\\
&+\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x=x_{0,c}}}
\frac{|\beta\rangle}{\sqrt{2^n-d}}.
\end{aligned} J B ∣ ϕ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) , x = x 0 , c ∑ 2 n − d ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) ∑ 2 n − d num ( L , e 0 ) + 1 ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x = x 0 , c ∑ 2 n − d ∣ β ⟩ .
When x 0 , c ∈ Dom ( L ∪ R ) x_{0,c}\in\operatorname{Dom}(L\cup R) x 0 , c ∈ Dom ( L ∪ R ) , the second sums cancel. Otherwise insertion forbids x = x 0 , c x=x_{0,c} x = x 0 , c in B J BJ B J , whereas J B JB J B can include it. Since B B B adds its pair to R R R , it does not change the insertion weight in L L L . Since
1 2 n − d − 1 − 1 2 n − d = f ( 2 n − d ) 2 n − d , (29) \frac{1}{\sqrt{2^n-d-1}}-\frac{1}{\sqrt{2^n-d}}=\frac{f(2^n-d)}{\sqrt{2^n-d}}, \tag*{(29)} 2 n − d − 1 1 − 2 n − d 1 = 2 n − d f ( 2 n − d ) , (29)
we have
[ B , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ , [B,J]|\phi\rangle=|a\rangle-|c\rangle, [ B , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ ,
∣ a ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) , x ≠ x 0 , c f ( 2 n − d ) 2 n − d ∣ β ⟩ , |a\rangle=\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R),\ x\ne x_{0,c}}}\frac{f(2^n-d)}{\sqrt{2^n-d}}|\beta\rangle, ∣ a ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) , x = x 0 , c ∑ 2 n − d f ( 2 n − d ) ∣ β ⟩ ,
∣ c ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x = x 0 , c ∣ β ⟩ 2 n − d . |c\rangle=\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x=x_{0,c}}}\frac{|\beta\rangle}{\sqrt{2^n-d}}. ∣ c ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x = x 0 , c ∑ 2 n − d ∣ β ⟩ .
The normalization term. Before applying J J J , the added pair in R R R is identified by x x x . Let
∣ a ′ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) , x ≠ x 0 , c f ( 2 n − d ) 2 n − d ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ∪ { ( x , y ) } ⟩ . |a'\rangle=\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R),\ x\ne x_{0,c}}}\frac{f(2^n-d)}{\sqrt{2^n-d}}|x\rangle|\alpha_{c,r,y,L,R}\rangle|h\rangle|e_0\rangle|L\rangle|R\cup\{(x,y)\}\rangle. ∣ a ′ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) , x = x 0 , c ∑ 2 n − d f ( 2 n − d ) ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ∪ {( x , y )}⟩ .
There are 2 n − d − 1 2^n-d-1 2 n − d − 1 allowed x x x values, and ∣ a ⟩ = J ∣ a ′ ⟩ |a\rangle=J|a'\rangle ∣ a ⟩ = J ∣ a ′ ⟩ . Removing the unique pair with input x x x from R R R and reading e 0 e_0 e 0 recovers all old labels, so the terms in ∣ a ′ ⟩ |a'\rangle ∣ a ′ ⟩ have orthogonal labels. Since B B B leaves L L L unchanged, J J J contributes at most q + 1 q+1 q + 1 to the squared norm. Using f ( 2 n − d ) ≤ 1 / [ 2 ( 2 n − q − 1 ) ] f(2^n-d)\leq1/[2(2^n-q-1)] f ( 2 n − d ) ≤ 1/ [ 2 ( 2 n − q − 1 )] and Equation (9) ,
∥ a ′ ∥ 2 2 = 1 2 n + 1 ∑ c , r , h , y , L , R x 0 , c ∉ Dom ( L ∪ R ) 2 n − d − 1 2 n − d f ( 2 n − d ) 2 ∥ α c , r , y , L , R ∥ 2 2 ≤ 1 4 ( 2 n − q − 1 ) 2 ⋅ 1 2 n + 1 ∑ c , r , h , y , L , R ∥ α c , r , y , L , R ∥ 2 2 ≤ ∥ ϕ ∥ 2 2 4 ( 2 n − q − 1 ) 2 , \begin{aligned}
\lVert a'\rVert_2^2=\frac{1}{2^{n+1}}\sum_{\substack{c,r,h,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)}}\frac{2^n-d-1}{2^n-d}f(2^n-d)^2\lVert\alpha_{c,r,y,L,R}\rVert_2^2 \\
&\leq\frac{1}{4(2^n-q-1)^2}\cdot\frac{1}{2^{n+1}}\sum_{c,r,h,y,L,R}\lVert\alpha_{c,r,y,L,R}\rVert_2^2 \\
&\leq\frac{\lVert\phi\rVert_2^2}{4(2^n-q-1)^2},
\end{aligned} ∥ a ′ ∥ 2 2 = 2 n + 1 1 c , r , h , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) ∑ 2 n − d 2 n − d − 1 f ( 2 n − d ) 2 ∥ α c , r , y , L , R ∥ 2 2 ≤ 4 ( 2 n − q − 1 ) 2 1 ⋅ 2 n + 1 1 c , r , h , y , L , R ∑ ∥ α c , r , y , L , R ∥ 2 2 ≤ 4 ( 2 n − q − 1 ) 2 ∥ ϕ ∥ 2 2 ,
∥ a ∥ 2 2 ≤ ( q + 1 ) ∥ a ′ ∥ 2 2 ≤ q + 1 4 ( 2 n − q − 1 ) 2 ∥ ϕ ∥ 2 2 . \begin{aligned}
\lVert a\rVert_2^2\leq(q+1)\lVert a'\rVert_2^2 \\
&\leq\frac{q+1}{4(2^n-q-1)^2}\lVert\phi\rVert_2^2.
\end{aligned} ∥ a ∥ 2 2 ≤ ( q + 1 ) ∥ a ′ ∥ 2 2 ≤ 4 ( 2 n − q − 1 ) 2 q + 1 ∥ ϕ ∥ 2 2 .
The excluded input. In ∣ c ⟩ |c\rangle ∣ c ⟩ , the final query label x 0 , c x_{0,c} x 0 , c fixes c c c . The unique pair with this input in the final relation L L L fixes e 0 e_0 e 0 ; the unique pair with this input in the final relation R R R fixes ( x 0 , c , y ) (x_{0,c},y) ( x 0 , c , y ) . Removing these pairs recovers the old records. Therefore
∥ c ∥ 2 2 = 1 2 n + 1 ∑ c , r , h , y , L , R x 0 , c ∉ Dom ( L ∪ R ) ∥ α c , r , y , L , R ∥ 2 2 2 n − d ≤ 1 2 n − q ∥ ϕ ∥ 2 2 . \begin{aligned}
\lVert c\rVert_2^2=\frac{1}{2^{n+1}}\sum_{\substack{c,r,h,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)}}\frac{\lVert\alpha_{c,r,y,L,R}\rVert_2^2}{2^n-d} \\
&\leq\frac{1}{2^n-q}\lVert\phi\rVert_2^2.
\end{aligned} ∥ c ∥ 2 2 = 2 n + 1 1 c , r , h , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) ∑ 2 n − d ∥ α c , r , y , L , R ∥ 2 2 ≤ 2 n − q 1 ∥ ϕ ∥ 2 2 .
In ∣ a ⟩ |a\rangle ∣ a ⟩ , the final relation L L L has no pair with input equal to the final query label; in ∣ c ⟩ |c\rangle ∣ c ⟩ , it has one. These are different relation labels, so
⟨ a ∣ c ⟩ = 0 , ∥ [ B , J ] ϕ ∥ 2 2 = ∥ a ∥ 2 2 + ∥ c ∥ 2 2 ≤ ( q + 1 4 ( 2 n − q − 1 ) 2 + 1 2 n − q ) ∥ ϕ ∥ 2 2 . \langle a|c\rangle=0,\qquad\lVert[B,J]\phi\rVert_2^2=\lVert a\rVert_2^2+\lVert c\rVert_2^2\leq\left(\frac{q+1}{4(2^n-q-1)^2}+\frac{1}{2^n-q}\right)\lVert\phi\rVert_2^2. ⟨ a ∣ c ⟩ = 0 , ∥[ B , J ] ϕ ∥ 2 2 = ∥ a ∥ 2 2 + ∥ c ∥ 2 2 ≤ ( 4 ( 2 n − q − 1 ) 2 q + 1 + 2 n − q 1 ) ∥ ϕ ∥ 2 2 .
Lemma A.3 (Inverse deletion). Let 0 ≤ q ≤ 2 n − 2 0 \le q \le2^n - 2 0 ≤ q ≤ 2 n − 2 and let ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ have the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q |L \cup R| \le q ∣ L ∪ R ∣ ≤ q . Then
∥ [ A † , J ] ϕ ∥ 2 ≤ ( q 2 ( 2 n − q ) + 1 2 ∣ H ∣ 2 n 2 n − q + q 2 ∣ H ∣ ( 2 n − q + 1 ) ) ∥ ϕ ∥ 2 . (30) \left\|[A^\dagger,J]\phi\right\|_2 \le\left(\frac{\sqrt{q}}{2(2^n-q)}+\frac{1}{2|H|}\sqrt{\frac{2^n}{2^n-q}}+\sqrt{\frac{q}{2|H|(2^n-q+1)}}\right)\|\phi\|_2. \tag*{(30)} [ A † , J ] ϕ 2 ≤ ( 2 ( 2 n − q ) q + 2∣ H ∣ 1 2 n − q 2 n + 2∣ H ∣ ( 2 n − q + 1 ) q ) ∥ ϕ ∥ 2 . (30)
Proof. We relabel the query as y y y and write k = ∣ Im ( L ∪ R ) ∣ k=|\operatorname{Im}(L\cup R)| k = ∣ Im ( L ∪ R ) ∣ . For ( x , y ) ∈ L (x,y)\in L ( x , y ) ∈ L with y ∉ Im ( ( L ∖ { ( x , y ) } ) ∪ R ) y\notin\operatorname{Im}((L\setminus\{(x,y)\})\cup R) y ∈ / Im (( L ∖ {( x , y )}) ∪ R ) ,
A † ∣ y ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ x ⟩ ∣ L ∖ { ( x , y ) } ⟩ ∣ R ⟩ 2 n − k + 1 . (31) A^\dagger|y\rangle|L\rangle|R\rangle=\frac{|x\rangle|L\setminus\{(x,y)\}\rangle|R\rangle}{\sqrt{2^n-k+1}}. \tag*{(31)} A † ∣ y ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − k + 1 ∣ x ⟩ ∣ L ∖ {( x , y )}⟩ ∣ R ⟩ . (31)
otherwise the result is zero. Removing this pair gives ∣ Im ( ( L ∖ { ( x , y ) } ) ∪ R ) ∣ = k − 1 |\operatorname{Im}((L\setminus\{(x,y)\})\cup R)|=k-1 ∣ Im (( L ∖ {( x , y )}) ∪ R ) ∣ = k − 1 , so
A ∣ x ⟩ ∣ L ∖ { ( x , y ) } ⟩ ∣ R ⟩ = 1 2 n − k + 1 ∑ z ∉ Im ( ( L ∖ { ( x , y ) } ) ∪ R ) ∣ z ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { ( x , z ) } ⟩ ∣ R ⟩ . A|x\rangle|L\setminus\{(x,y)\}\rangle|R\rangle=\frac{1}{\sqrt{2^n-k+1}}\sum_{z\notin\operatorname{Im}((L\setminus\{(x,y)\})\cup R)}|z\rangle|(L\setminus\{(x,y)\})\cup\{(x,z)\}\rangle|R\rangle. A ∣ x ⟩ ∣ L ∖ {( x , y )}⟩ ∣ R ⟩ = 2 n − k + 1 1 z ∈ / Im (( L ∖ {( x , y )}) ∪ R ) ∑ ∣ z ⟩ ∣ ( L ∖ {( x , y )}) ∪ {( x , z )}⟩ ∣ R ⟩ .
The term z = y z=y z = y gives Equation (31) . The query label y y y fixes the unique pair removed from L L L ; no input contributes if the displayed conditions fail.
The two orders. Suppose ( x , y ) (x,y) ( x , y ) satisfies the conditions in Equation (31) and y ≠ y 0 y\ne y_0 y = y 0 . If y 0 ∉ Im ( L ∪ R ) y_0\notin\operatorname{Im}(L\cup R) y 0 ∈ / Im ( L ∪ R ) , then
A † J ∣ y ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ x ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ 2 n − k , A^\dagger J|y\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|x\rangle|(L\setminus\{(x,y)\})\cup\{e_0\}\rangle|R\rangle}{\sqrt{2^n-k}}, A † J ∣ y ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − k ∣ x ⟩ ∣ ( L ∖ {( x , y )}) ∪ { e 0 }⟩ ∣ R ⟩ ,
J A † ∣ y ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ x ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ 2 n − k + 1 . JA^\dagger|y\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|x\rangle|(L\setminus\{(x,y)\})\cup\{e_0\}\rangle|R\rangle}{\sqrt{2^n-k+1}}. J A † ∣ y ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − k + 1 ∣ x ⟩ ∣ ( L ∖ {( x , y )}) ∪ { e 0 }⟩ ∣ R ⟩ .
If y 0 ∈ Im ( L ∪ R ) y_0\in\operatorname{Im}(L\cup R) y 0 ∈ Im ( L ∪ R ) , both orders give
num ( L , e 0 ) + 1 2 n − k + 1 ∣ x ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ . \frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-k+1}}|x\rangle|(L\setminus\{(x,y)\})\cup\{e_0\}\rangle|R\rangle. 2 n − k + 1 num ( L , e 0 ) + 1 ∣ x ⟩ ∣ ( L ∖ {( x , y )}) ∪ { e 0 }⟩ ∣ R ⟩ .
Removing ( x , y ) (x,y) ( x , y ) does not change the number of copies of e 0 e_0 e 0 , since y ≠ y 0 y\ne y_0 y = y 0 . If y y y cannot be removed, adding output y 0 ≠ y y_0\ne y y 0 = y does not change this, and both orders give zero. For y = y 0 ∉ Im ( L ∪ R ) y=y_0\notin\operatorname{Im}(L\cup R) y = y 0 ∈ / Im ( L ∪ R ) , A † J A^\dagger J A † J removes the added pair:
A † J ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ x 0 , c ⟩ ∣ L ⟩ ∣ R ⟩ 2 n − k , J A † ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0. A^\dagger J|y_0\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|x_{0,c}\rangle|L\rangle|R\rangle}{\sqrt{2^n-k}},\qquad JA^\dagger|y_0\rangle|e_0\rangle|L\rangle|R\rangle=0. A † J ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − k ∣ x 0 , c ⟩ ∣ L ⟩ ∣ R ⟩ , J A † ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0.
For y = y 0 y=y_0 y = y 0 with exactly one pair ( x , y 0 ) (x,y_0) ( x , y 0 ) in L L L and no output y 0 y_0 y 0 in R R R , insertion gives two pairs with output y 0 y_0 y 0 . Thus
A † J ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0 , A^\dagger J|y_0\rangle|e_0\rangle|L\rangle|R\rangle=0, A † J ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0 ,
J A † ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ x ⟩ ∣ ( L ∖ { ( x , y 0 ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ 2 n − k + 1 . JA^\dagger|y_0\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|x\rangle|(L\setminus\{(x,y_0)\})\cup\{e_0\}\rangle|R\rangle}{\sqrt{2^n-k+1}}. J A † ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − k + 1 ∣ x ⟩ ∣ ( L ∖ {( x , y 0 )}) ∪ { e 0 }⟩ ∣ R ⟩ .
The insertion weight in the second line is one because deletion removes the only output y 0 y_0 y 0 . If y 0 y_0 y 0 occurs in R R R or at least twice in L L L , both orders give zero. For the common terms,
1 2 n − k − 1 2 n − k + 1 = f ( 2 n − k + 1 ) 2 n − k + 1 . \frac{1}{\sqrt{2^n-k}}-\frac{1}{\sqrt{2^n-k+1}}=\frac{f(2^n-k+1)}{\sqrt{2^n-k+1}}. 2 n − k 1 − 2 n − k + 1 1 = 2 n − k + 1 f ( 2 n − k + 1 ) .
We define
∣ β ⟩ = ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ . \lvert\beta\rangle=\lvert x\rangle\lvert\alpha_{c,r,y,L,R}\rangle\lvert h\rangle\lvert(L\setminus\{(x,y)\})\cup\{e_0\}\rangle\lvert R\rangle. ∣ β ⟩ = ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣( L ∖ {( x , y )}) ∪ { e 0 }⟩ ∣ R ⟩ .
The difference of the two orders is
[ A † , J ] ∣ ϕ ⟩ = ∣ a ⟩ + ∣ b ⟩ − ∣ c ⟩ , [A^\dagger,J]\lvert\phi\rangle=\lvert a\rangle+\lvert b\rangle-\lvert c\rangle, [ A † , J ] ∣ ϕ ⟩ = ∣ a ⟩ + ∣ b ⟩ − ∣ c ⟩ ,
∣ a ⟩ = 1 2 n + 1 ∑ c , r , h , y , x , L , R y ≠ y 0 , y 0 ∉ Im ( L ∪ R ) ( x , y ) ∈ L , y ∉ Im ( ( L ∖ { ( x , y ) } ) ∪ R ) f ( 2 n − k + 1 ) 2 n − k + 1 ∣ β ⟩ , \lvert a\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,y,x,L,R\\y\ne y_0,\ y_0\notin\operatorname{Im}(L\cup R)\\(x,y)\in L,\ y\notin\operatorname{Im}((L\setminus\{(x,y)\})\cup R)}}
\frac{f(2^n-k+1)}{\sqrt{2^n-k+1}}\lvert\beta\rangle, ∣ a ⟩ = 2 n + 1 1 c , r , h , y , x , L , R y = y 0 , y 0 ∈ / Im ( L ∪ R ) ( x , y ) ∈ L , y ∈ / Im (( L ∖ {( x , y )}) ∪ R ) ∑ 2 n − k + 1 f ( 2 n − k + 1 ) ∣ β ⟩ ,
∣ b ⟩ = 1 2 n + 1 ∑ c , r , h , L , R y 0 ∉ Im ( L ∪ R ) ∣ x 0 , c ⟩ ∣ α c , r , ( r , h ) , L , R ⟩ ∣ h ⟩ ∣ L ⟩ ∣ R ⟩ 2 n − k , \lvert b\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,L,R\\y_0\notin\operatorname{Im}(L\cup R)}}
\frac{\lvert x_0,c\rangle\lvert\alpha_{c,r,(r,h),L,R}\rangle\lvert h\rangle\lvert L\rangle\lvert R\rangle}{\sqrt{2^n-k}}, ∣ b ⟩ = 2 n + 1 1 c , r , h , L , R y 0 ∈ / Im ( L ∪ R ) ∑ 2 n − k ∣ x 0 , c ⟩ ∣ α c , r , ( r , h ) , L , R ⟩ ∣ h ⟩ ∣ L ⟩ ∣ R ⟩ ,
∣ c ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y = y 0 , ( x , y ) ∈ L y ∉ Im ( ( L ∖ { ( x , y ) } ) ∪ R ) ∣ β ⟩ 2 n − k + 1 . \lvert c\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\y=y_0,\ (x,y)\in L\\y\notin\operatorname{Im}((L\setminus\{(x,y)\})\cup R)}}
\frac{\lvert\beta\rangle}{\sqrt{2^n-k+1}}. ∣ c ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y = y 0 , ( x , y ) ∈ L y ∈ / Im (( L ∖ {( x , y )}) ∪ R ) ∑ 2 n − k + 1 ∣ β ⟩ .
The normalization term. We define
∣ η ⟩ = 1 2 n + 1 ∑ c , r , h , y , L , R y ≠ y 0 , y 0 ∉ Im ( L ∪ R ) f ( 2 n − k + 1 ) ∣ y ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ . \lvert\eta\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,y,L,R\\y\ne y_0,\ y_0\notin\operatorname{Im}(L\cup R)}}
f(2^n-k+1)\lvert y\rangle\lvert\alpha_{c,r,y,L,R}\rangle\lvert h\rangle\lvert e_0\rangle\lvert L\rangle\lvert R\rangle. ∣ η ⟩ = 2 n + 1 1 c , r , h , y , L , R y = y 0 , y 0 ∈ / Im ( L ∪ R ) ∑ f ( 2 n − k + 1 ) ∣ y ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ .
Then ∣ a ⟩ = J A † ∣ η ⟩ \lvert a\rangle=JA^\dagger\lvert\eta\rangle ∣ a ⟩ = J A † ∣ η ⟩ . By Equation (24) , f ( 2 n − k + 1 ) ≤ 1 / [ 2 ( 2 n − q ) ] f(2^n-k+1)\le1/[2(2^n-q)] f ( 2 n − k + 1 ) ≤ 1/ [ 2 ( 2 n − q )] . The relation in E L E_L E L has size at most q − 1 q-1 q − 1 in A † ∣ η ⟩ A^\dagger\lvert\eta\rangle A † ∣ η ⟩ , so, for q ≥ 1 q\ge1 q ≥ 1 ,
∥ a ∥ 2 2 ≤ q ∥ A † η ∥ 2 2 ≤ q ∥ η ∥ 2 2 = q 2 n + 1 ∑ c , r , h , y , L , R y ≠ y 0 , y 0 ∉ Im ( L ∪ R ) f ( 2 n − k + 1 ) 2 ∥ α c , r , y , L , R ∥ 2 2 ≤ q 4 ( 2 n − q ) 2 ∥ ϕ ∥ 2 2 . \begin{aligned}
\lVert a\rVert_2^2\le q\lVert A^\dagger\eta\rVert_2^2\le q\lVert\eta\rVert_2^2 \\
&=\frac{q}{2^{n+1}}
\sum_{\substack{c,r,h,y,L,R\\y\ne y_0,\ y_0\notin\operatorname{Im}(L\cup R)}}
f(2^n-k+1)^2\lVert\alpha_{c,r,y,L,R}\rVert_2^2 \\
&\le\frac{q}{4(2^n-q)^2}\lVert\phi\rVert_2^2.
\end{aligned} ∥ a ∥ 2 2 ≤ q ∥ A † η ∥ 2 2 ≤ q ∥ η ∥ 2 2 = 2 n + 1 q c , r , h , y , L , R y = y 0 , y 0 ∈ / Im ( L ∪ R ) ∑ f ( 2 n − k + 1 ) 2 ∥ α c , r , y , L , R ∥ 2 2 ≤ 4 ( 2 n − q ) 2 q ∥ ϕ ∥ 2 2 .
For q = 0 q=0 q = 0 , ∣ a ⟩ = 0 \lvert a\rangle=0 ∣ a ⟩ = 0 .
Deletion of the inserted pair. For ∣ b ⟩ \lvert b\rangle ∣ b ⟩ , different r r r values can give the same labels c , h , L , R c,h,L,R c , h , L , R . There are at most 2 ∣ R ∣ 2^{\lvert R\rvert} 2 ∣ R ∣ such values, so the squared norm of their sum is at most 2 ∣ R ∣ 2^{\lvert R\rvert} 2 ∣ R ∣ times the sum of their squared norms. Using Equations (10) and (25) ,
∥ b ∥ 2 2 = 1 2 n + 1 ∑ c , h , L , R ∥ ∑ r ( r , h ) ∉ Im ( L ∪ R ) α c , r , ( r , h ) , L , R 2 n − k ∥ 2 2 ≤ 2 ∣ R ∣ 2 n + 1 ( 2 n − q ) ∑ c , r , h , L , R ∥ α c , r , ( r , h ) , L , R ∥ 2 2 ≤ 2 ∣ R ∣ 2 1 + ∣ R ∣ 2 n + 1 ( 2 n − q ) ∥ ϕ ∥ 2 2 = 2 n 2 2 ∣ H ∣ ( 2 n − q ) ∥ ϕ ∥ 2 2 . \begin{aligned}
\lVert b\rVert_2^2=\frac{1}{2^{n+1}}\sum_{c,h,L,R}
\left\lVert\sum_{\substack{r\\(r,h)\notin\operatorname{Im}(L\cup R)}}
\frac{\alpha_{c,r,(r,h),L,R}}{\sqrt{2^n-k}}\right\rVert_2^2 \\
&\le\frac{2^{\lvert R\rvert}}{2^{n+1}(2^n-q)}
\sum_{c,r,h,L,R}\lVert\alpha_{c,r,(r,h),L,R}\rVert_2^2 \\
&\le\frac{2^{\lvert R\rvert}2^{1+\lvert R\rvert}}{2^{n+1}(2^n-q)}\lVert\phi\rVert_2^2
=\frac{2^n}{2^{2\lvert H\rvert}(2^n-q)}\lVert\phi\rVert_2^2.
\end{aligned} ∥ b ∥ 2 2 = 2 n + 1 1 c , h , L , R ∑ r ( r , h ) ∈ / Im ( L ∪ R ) ∑ 2 n − k α c , r , ( r , h ) , L , R 2 2 ≤ 2 n + 1 ( 2 n − q ) 2 ∣ R ∣ c , r , h , L , R ∑ ∥ α c , r , ( r , h ) , L , R ∥ 2 2 ≤ 2 n + 1 ( 2 n − q ) 2 ∣ R ∣ 2 1 + ∣ R ∣ ∥ ϕ ∥ 2 2 = 2 2 ∣ H ∣ ( 2 n − q ) 2 n ∥ ϕ ∥ 2 2 .
The last equality uses 2 ∣ R ∣ − n = n − 2 ∣ H ∣ 2\lvert R\rvert-n=n-2\lvert H\rvert 2 ∣ R ∣ − n = n − 2 ∣ H ∣ .
Blocked deletion. For ∣ c ⟩ |c\rangle ∣ c ⟩ , fix the final labels ( x , h , L ′ , R ) (x,h,L',R) ( x , h , L ′ , R ) . Deleting one pair and inserting e 0 e_0 e 0 preserves the total size, so ∣ L ′ ∣ ≤ q |L'| \le q ∣ L ′ ∣ ≤ q . Each possible e 0 e_0 e 0 is one of the at most q q q pairs in L ′ L' L ′ , and
e 0 = ( x 0 , c , ( r , h ) ) , L = ( L ′ ∖ { e 0 } ) ∪ { ( x , ( r , h ) ) } . e_0=(x_0,c,(r,h)),\qquad L=(L'\setminus\{e_0\})\cup\{(x,(r,h))\}. e 0 = ( x 0 , c , ( r , h )) , L = ( L ′ ∖ { e 0 }) ∪ {( x , ( r , h ))} .
Thus each choice of e 0 e_0 e 0 fixes all old labels. Write
μ = ( c , r , h , x , L , R ) , λ μ = ( x , h , ( L ∖ { ( x , y 0 ) } ) ∪ { e 0 } , R ) . \mu=(c,r,h,x,L,R),\qquad\lambda_\mu=(x,h,(L\setminus\{(x,y_0)\})\cup\{e_0\},R). μ = ( c , r , h , x , L , R ) , λ μ = ( x , h , ( L ∖ {( x , y 0 )}) ∪ { e 0 } , R ) .
Here μ \mu μ ranges over the terms in the sum defining ∣ c ⟩ |c\rangle ∣ c ⟩ . Let α μ = α c , r , ( r , h ) , L , R \alpha_\mu=\alpha_{c,r,(r,h),L,R} α μ = α c , r , ( r , h ) , L , R and k μ = ∣ Im ( L ∪ R ) ∣ k_\mu=|\operatorname{Im}(L\cup R)| k μ = ∣ Im ( L ∪ R ) ∣ . There are at most q q q indices with the same λ μ \lambda_\mu λ μ . For fixed L , y 0 L,y_0 L , y 0 , at most one x x x satisfies the deletion condition, so dropping that condition does not count any coefficient twice. By Equations (10) and (26) ,
∥ c ∥ 2 2 = 1 2 n + 1 ∑ λ ∥ ∑ μ : λ μ = λ α μ 2 n − k μ + 1 ∥ 2 2 ≤ 1 2 n + 1 ∑ μ ∥ α μ ∥ 2 2 2 n − k μ + 1 ∑ μ ~ λ μ ~ = λ μ 1 ≤ q 2 n + 1 ∑ c , r , h , x , L , R ( x , y 0 ) ∈ L y 0 ∉ Im ( ( L ∖ { ( x , y 0 ) } ) ∪ R ) ∥ α c , r , ( r , h ) , L , R ∥ 2 2 2 n − k + 1 ≤ q 2 n + 1 ( 2 n − q + 1 ) ∑ c , r , h , L , R ∥ α c , r , ( r , h ) , L , R ∥ 2 2 ≤ q 2 ∣ H ∣ ( 2 n − q + 1 ) ∥ ϕ ∥ 2 2 . \begin{aligned}
\|c\|_2^2
&=\frac{1}{2^{n+1}}\sum_\lambda\left\|\sum_{\substack{\mu:\lambda_\mu=\lambda}}\frac{\alpha_\mu}{\sqrt{2^n-k_\mu+1}}\right\|_2^2\\
&\le\frac{1}{2^{n+1}}\sum_\mu\frac{\|\alpha_\mu\|_2^2}{2^n-k_\mu+1}\sum_{\substack{\widetilde{\mu}\\\lambda_{\widetilde{\mu}}=\lambda_\mu}}1\\
&\le\frac{q}{2^{n+1}}\sum_{\substack{c,r,h,x,L,R\\(x,y_0)\in L\\y_0\notin\operatorname{Im}((L\setminus\{(x,y_0)\})\cup R)}}\frac{\|\alpha_{c,r,(r,h),L,R}\|_2^2}{2^n-k+1}\\
&\le\frac{q}{2^{n+1}(2^n-q+1)}\sum_{c,r,h,L,R}\|\alpha_{c,r,(r,h),L,R}\|_2^2\\
&\le\frac{q}{2^{|H|}(2^n-q+1)}\|\phi\|_2^2.
\end{aligned} ∥ c ∥ 2 2 = 2 n + 1 1 λ ∑ μ : λ μ = λ ∑ 2 n − k μ + 1 α μ 2 2 ≤ 2 n + 1 1 μ ∑ 2 n − k μ + 1 ∥ α μ ∥ 2 2 μ λ μ = λ μ ∑ 1 ≤ 2 n + 1 q c , r , h , x , L , R ( x , y 0 ) ∈ L y 0 ∈ / Im (( L ∖ {( x , y 0 )}) ∪ R ) ∑ 2 n − k + 1 ∥ α c , r , ( r , h ) , L , R ∥ 2 2 ≤ 2 n + 1 ( 2 n − q + 1 ) q c , r , h , L , R ∑ ∥ α c , r , ( r , h ) , L , R ∥ 2 2 ≤ 2 ∣ H ∣ ( 2 n − q + 1 ) q ∥ ϕ ∥ 2 2 .
The triangle inequality gives
∥ [ A † , J ] ϕ ∥ 2 ≤ ∥ a ∥ 2 + ∥ b ∥ 2 + ∥ c ∥ 2 ≤ ( q 2 ( 2 n − q ) + 1 2 ∣ H ∣ 2 n 2 n − q + q 2 ∣ H ∣ ( 2 n − q + 1 ) ) ∥ ϕ ∥ 2 . \begin{aligned}
\|[A^\dagger,J]\phi\|_2\le\|a\|_2+\|b\|_2+\|c\|_2 \\
&\le\left(\frac{\sqrt q}{2(2^n-q)}+\frac{1}{2|H|}\sqrt{\frac{2^n}{2^n-q}}+\sqrt{\frac{q}{2^{|H|}(2^n-q+1)}}\right)\|\phi\|_2.
\end{aligned} ∥ [ A † , J ] ϕ ∥ 2 ≤ ∥ a ∥ 2 + ∥ b ∥ 2 + ∥ c ∥ 2 ≤ ( 2 ( 2 n − q ) q + 2∣ H ∣ 1 2 n − q 2 n + 2 ∣ H ∣ ( 2 n − q + 1 ) q ) ∥ ϕ ∥ 2 .
Lemma A.4 (Forward deletion). Let 0 ≤ q ≤ 2 n − 2 0\le q\le2^n-2 0 ≤ q ≤ 2 n − 2 and let ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ have the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q |L\cup R|\le q ∣ L ∪ R ∣ ≤ q . Then
∥ [ B † , J ] ϕ ∥ 2 ≤ ( q + 1 2 ( 2 n − q ) + 2 2 n − q + 1 ) ∥ ϕ ∥ 2 . \|[B^\dagger,J]\phi\|_2\le\left(\frac{\sqrt{q+1}}{2(2^n-q)}+\sqrt{\frac{2}{2^n-q+1}}\right)\|\phi\|_2. ∥ [ B † , J ] ϕ ∥ 2 ≤ ( 2 ( 2 n − q ) q + 1 + 2 n − q + 1 2 ) ∥ ϕ ∥ 2 .
Proof. Let d = ∣ Dom ( L ∪ R ) ∣ d=|\operatorname{Dom}(L\cup R)| d = ∣ Dom ( L ∪ R ) ∣ . For ( x , y ) ∈ R (x,y)\in R ( x , y ) ∈ R with x ∉ Dom ( L ∪ ( R ∖ { ( x , y ) } ) ) x\notin\operatorname{Dom}(L\cup(R\setminus\{(x,y)\})) x ∈ / Dom ( L ∪ ( R ∖ {( x , y )})) ,
B † ∣ x ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ y ⟩ ∣ L ⟩ ∣ R ∖ { ( x , y ) } ⟩ 2 n − d + 1 . B^\dagger|x\rangle|L\rangle|R\rangle=\frac{|y\rangle|L\rangle|R\setminus\{(x,y)\}\rangle}{\sqrt{2^n-d+1}}. B † ∣ x ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − d + 1 ∣ y ⟩ ∣ L ⟩ ∣ R ∖ {( x , y )}⟩ .
otherwise the result is zero. Removing this pair gives ∣ Dom ( L ∪ ( R ∖ { ( x , y ) } ) ) ∣ = d − 1 |\operatorname{Dom}(L \cup(R \setminus\{(x,y)\}))| = d - 1 ∣ Dom ( L ∪ ( R ∖ {( x , y )})) ∣ = d − 1 , so
B ∣ y ⟩ ∣ L ⟩ ∣ R ∖ { ( x , y ) } ⟩ = 1 2 n − d + 1 ∑ z ∉ Dom ( L ∪ ( R ∖ { ( x , y ) } ) ) ∣ z ⟩ ∣ L ⟩ ∣ ( R ∖ { ( x , y ) } ) ∪ { ( z , y ) } ⟩ . B|y\rangle|L\rangle|R \setminus\{(x,y)\}\rangle= \frac{1}{\sqrt{2^n-d+1}}\sum_{z\notin\operatorname{Dom}(L\cup(R\setminus\{(x,y)\}))}|z\rangle|L\rangle|(R\setminus\{(x,y)\})\cup\{(z,y)\}\rangle. B ∣ y ⟩ ∣ L ⟩ ∣ R ∖ {( x , y )}⟩ = 2 n − d + 1 1 z ∈ / Dom ( L ∪ ( R ∖ {( x , y )})) ∑ ∣ z ⟩ ∣ L ⟩ ∣ ( R ∖ {( x , y )}) ∪ {( z , y )}⟩ .
The term z = x z=x z = x gives the adjoint action. The query label x x x fixes the unique pair removed from R R R ; no input contributes if the conditions fail.
The two orders. Suppose ( x , y ) (x,y) ( x , y ) satisfies these conditions and x ≠ x 0 , c x\ne x_{0,c} x = x 0 , c . If x 0 , c ∉ Dom ( L ∪ R ) x_{0,c}\notin\operatorname{Dom}(L\cup R) x 0 , c ∈ / Dom ( L ∪ R ) , then
B † J ∣ x ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ y ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x , y ) } ⟩ 2 n − d . B^\dagger J|x\rangle|e_0\rangle|L\rangle|R\rangle= \frac{|y\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x,y)\}\rangle}{\sqrt{2^n-d}}. B † J ∣ x ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − d ∣ y ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x , y )}⟩ .
J B † ∣ x ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ y ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x , y ) } ⟩ 2 n − d + 1 . JB^\dagger|x\rangle|e_0\rangle|L\rangle|R\rangle= \frac{|y\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x,y)\}\rangle}{\sqrt{2^n-d+1}}. J B † ∣ x ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − d + 1 ∣ y ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x , y )}⟩ .
If x 0 , c ∈ Dom ( L ∪ R ) x_{0,c}\in\operatorname{Dom}(L\cup R) x 0 , c ∈ Dom ( L ∪ R ) , both orders give
num ( L , e 0 ) + 1 2 n − d + 1 ∣ y ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x , y ) } ⟩ . \frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-d+1}}|y\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x,y)\}\rangle. 2 n − d + 1 num ( L , e 0 ) + 1 ∣ y ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x , y )}⟩ .
For x = x 0 , c x=x_{0,c} x = x 0 , c satisfying the deletion condition, adding e 0 e_0 e 0 to L L L prevents deletion from R R R , so
B † J ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0 , B^\dagger J|x_{0,c}\rangle|e_0\rangle|L\rangle|R\rangle=0, B † J ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0 ,
J B † ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ y ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x 0 , c , y ) } ⟩ 2 n − d + 1 . JB^\dagger|x_{0,c}\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|y\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x_{0,c},y)\}\rangle}{\sqrt{2^n-d+1}}. J B † ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − d + 1 ∣ y ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x 0 , c , y )}⟩ .
Here x 0 , c ∉ Dom ( L ) x_{0,c}\notin\operatorname{Dom}(L) x 0 , c ∈ / Dom ( L ) , so the insertion weight is one. If x x x cannot be removed, adding a pair to L L L does not change this, and both orders give zero. For the common terms,
1 2 n − d − 1 2 n − d + 1 = f ( 2 n − d + 1 ) 2 n − d + 1 . \frac{1}{\sqrt{2^n-d}}-\frac{1}{\sqrt{2^n-d+1}}=\frac{f(2^n-d+1)}{\sqrt{2^n-d+1}}. 2 n − d 1 − 2 n − d + 1 1 = 2 n − d + 1 f ( 2 n − d + 1 ) .
We define
∣ β ⟩ = ∣ y ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x , y ) } ⟩ . |\beta\rangle=|y\rangle|\alpha_{c,r,x,L,R}\rangle|h\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x,y)\}\rangle. ∣ β ⟩ = ∣ y ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x , y )}⟩ .
Then
[ B † , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ , [B^\dagger,J]|\phi\rangle=|a\rangle-|c\rangle, [ B † , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ ,
∣ a ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x ≠ x 0 , c , x 0 , c ∉ Dom ( L ∪ R ) ( x , y ) ∈ R , x ∉ Dom ( L ∪ ( R ∖ { ( x , y ) } ) ) f ( 2 n − d + 1 ) 2 n − d + 1 ∣ β ⟩ , |a\rangle=\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\x\ne x_{0,c},\ x_{0,c}\notin\operatorname{Dom}(L\cup R)\\(x,y)\in R,\ x\notin\operatorname{Dom}(L\cup(R\setminus\{(x,y)\}))}}\frac{f(2^n-d+1)}{\sqrt{2^n-d+1}}|\beta\rangle, ∣ a ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x = x 0 , c , x 0 , c ∈ / Dom ( L ∪ R ) ( x , y ) ∈ R , x ∈ / Dom ( L ∪ ( R ∖ {( x , y )})) ∑ 2 n − d + 1 f ( 2 n − d + 1 ) ∣ β ⟩ ,
∣ c ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x = x 0 , c , ( x , y ) ∈ R x ∉ Dom ( L ∪ ( R ∖ { ( x , y ) } ) ) ∣ β ⟩ 2 n − d + 1 . |c\rangle=\frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\x=x_{0,c},\ (x,y)\in R\\x\notin\operatorname{Dom}(L\cup(R\setminus\{(x,y)\}))}}\frac{|\beta\rangle}{\sqrt{2^n-d+1}}. ∣ c ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x = x 0 , c , ( x , y ) ∈ R x ∈ / Dom ( L ∪ ( R ∖ {( x , y )})) ∑ 2 n − d + 1 ∣ β ⟩ .
The insertion weights in these sums are one.
The normalization term. We define
∣ η ⟩ = 1 2 n + 1 ∑ c , r , h , x , L , R x ≠ x 0 , c , x 0 , c ∉ Dom ( L ∪ R ) f ( 2 n − d + 1 ) ∣ x ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ . |\eta\rangle= \frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,L,R\\x\ne x_{0,c},\ x_{0,c}\notin\operatorname{Dom}(L\cup R)}} f(2^n-d+1)|x\rangle|\alpha_{c,r,x,L,R}\rangle|h\rangle|e_0\rangle|L\rangle|R\rangle. ∣ η ⟩ = 2 n + 1 1 c , r , h , x , L , R x = x 0 , c , x 0 , c ∈ / Dom ( L ∪ R ) ∑ f ( 2 n − d + 1 ) ∣ x ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ .
Since ∣ a ⟩ = J B † ∣ η ⟩ |a\rangle=JB^\dagger|\eta\rangle ∣ a ⟩ = J B † ∣ η ⟩ and B † B^\dagger B † leaves L L L unchanged, we use the bound q + 1 q+1 q + 1 on the squared norm of J J J , ∥ B † ∥ ≤ 1 \|B^\dagger\|\le1 ∥ B † ∥ ≤ 1 , and f ( 2 n − d + 1 ) ≤ 1 / [ 2 ( 2 n − q ) ] f(2^n-d+1)\le1/[2(2^n-q)] f ( 2 n − d + 1 ) ≤ 1/ [ 2 ( 2 n − q )] to get
∥ a ∥ 2 2 ≤ ( q + 1 ) ∥ B † η ∥ 2 2 ≤ ( q + 1 ) ∥ η ∥ 2 2 = q + 1 2 n + 1 ∑ c , r , h , x , L , R x ≠ x 0 , c , x 0 , c ∉ Dom ( L ∪ R ) f ( 2 n − d + 1 ) 2 ∥ α c , r , x , L , R ∥ 2 2 ≤ q + 1 4 ( 2 n − q ) 2 ∥ φ ∥ 2 2 . \begin{aligned}
\|a\|_2^2\le(q+1)\|B^\dagger\eta\|_2^2\le(q+1)\|\eta\|_2^2 \\
&=\frac{q+1}{2^{n+1}}\sum_{\substack{c,r,h,x,L,R\\x\ne x_{0,c},\ x_{0,c}\notin\operatorname{Dom}(L\cup R)}}f(2^n-d+1)^2\|\alpha_{c,r,x,L,R}\|_2^2 \\
&\le\frac{q+1}{4(2^n-q)^2}\|\varphi\|_2^2.
\end{aligned} ∥ a ∥ 2 2 ≤ ( q + 1 ) ∥ B † η ∥ 2 2 ≤ ( q + 1 ) ∥ η ∥ 2 2 = 2 n + 1 q + 1 c , r , h , x , L , R x = x 0 , c , x 0 , c ∈ / Dom ( L ∪ R ) ∑ f ( 2 n − d + 1 ) 2 ∥ α c , r , x , L , R ∥ 2 2 ≤ 4 ( 2 n − q ) 2 q + 1 ∥ φ ∥ 2 2 .
Blocked deletion. For ∣ c ⟩ |c\rangle ∣ c ⟩ , fix the final labels ( y , h , L ′ , R ′ ) (y,h,L',R') ( y , h , L ′ , R ′ ) . For each c ∈ { 0 , 1 } c\in\{0,1\} c ∈ { 0 , 1 } , e 0 e_0 e 0 must be the unique pair in L ′ L' L ′ with input x 0 , c x_{0,c} x 0 , c ; its output fixes r , h r,h r , h . The old records are
L = L ′ ∖ { e 0 } , R = R ′ ∪ { ( x 0 , c , y ) } . L=L'\setminus\{e_0\},\qquad R=R'\cup\{(x_{0,c},y)\}. L = L ′ ∖ { e 0 } , R = R ′ ∪ {( x 0 , c , y )} .
Thus there are at most two choices of old labels. Write
μ = ( c , r , h , y , L , R ) , λ μ = ( y , h , L ∪ { e 0 } , R ∖ { ( x 0 , c , y ) } ) , \mu=(c,r,h,y,L,R),\qquad\lambda_\mu=(y,h,L\cup\{e_0\},R\setminus\{(x_{0,c},y)\}), μ = ( c , r , h , y , L , R ) , λ μ = ( y , h , L ∪ { e 0 } , R ∖ {( x 0 , c , y )}) ,
Here μ \mu μ ranges over the terms in the sum defining ∣ c ⟩ |c\rangle ∣ c ⟩ . Let α μ = α c , r , x 0 , c , L , R \alpha_\mu=\alpha_{c,r,x_{0,c},L,R} α μ = α c , r , x 0 , c , L , R and d μ = ∣ Dom ( L ∪ R ) ∣ d_\mu=|\operatorname{Dom}(L\cup R)| d μ = ∣ Dom ( L ∪ R ) ∣ . For fixed R , x 0 , c R,x_{0,c} R , x 0 , c , at most one y y y satisfies the deletion condition, so enlarging the coefficient sum does not count any term twice. By Equation (26) ,
∥ c ∥ 2 2 = 1 2 n + 1 ∑ μ ∥ ∑ λ μ = λ α μ 2 n − d μ + 1 ∥ 2 2 ≤ 1 2 n + 1 ∑ μ ∥ α μ ∥ 2 2 2 n − d μ + 1 ∑ λ ~ μ = λ μ 1 ≤ 2 2 n + 1 ∑ c , r , h , y , L , R ( x 0 , c , y ) ∈ R x 0 , c ∉ Dom ( L ∪ ( R ∖ { ( x 0 , c , y ) } ) ) ∥ α c , r , x 0 , c , L , R ∥ 2 2 2 n − d + 1 ≤ 2 2 n − q + 1 ⋅ 1 2 n + 1 ∑ c , r , h , x , L , R ∥ α c , r , x , L , R ∥ 2 2 = 2 2 n − q + 1 ∥ φ ∥ 2 2 . \begin{aligned}
\|c\|_2^2=\frac{1}{2^{n+1}}\sum_\mu\left\|\sum_{\lambda_\mu=\lambda}\frac{\alpha_\mu}{\sqrt{2^n-d_\mu+1}}\right\|_2^2 \\
&\le\frac{1}{2^{n+1}}\sum_\mu\frac{\|\alpha_\mu\|_2^2}{2^n-d_\mu+1}\sum_{\substack{\tilde{\lambda}_\mu=\lambda_\mu}}\!1 \\
&\le\frac{2}{2^{n+1}}\sum_{\substack{c,r,h,y,L,R\\(x_{0,c},y)\in R\\x_{0,c}\notin\operatorname{Dom}(L\cup(R\setminus\{(x_{0,c},y)\}))}}\frac{\|\alpha_{c,r,x_{0,c},L,R}\|_2^2}{2^n-d+1} \\
&\le\frac{2}{2^n-q+1}\cdot\frac{1}{2^{n+1}}\sum_{c,r,h,x,L,R}\|\alpha_{c,r,x,L,R}\|_2^2 \\
&=\frac{2}{2^n-q+1}\|\varphi\|_2^2.
\end{aligned} ∥ c ∥ 2 2 = 2 n + 1 1 μ ∑ λ μ = λ ∑ 2 n − d μ + 1 α μ 2 2 ≤ 2 n + 1 1 μ ∑ 2 n − d μ + 1 ∥ α μ ∥ 2 2 λ ~ μ = λ μ ∑ 1 ≤ 2 n + 1 2 c , r , h , y , L , R ( x 0 , c , y ) ∈ R x 0 , c ∈ / Dom ( L ∪ ( R ∖ {( x 0 , c , y )})) ∑ 2 n − d + 1 ∥ α c , r , x 0 , c , L , R ∥ 2 2 ≤ 2 n − q + 1 2 ⋅ 2 n + 1 1 c , r , h , x , L , R ∑ ∥ α c , r , x , L , R ∥ 2 2 = 2 n − q + 1 2 ∥ φ ∥ 2 2 .
∥ [ B † , J ] φ ∥ 2 ≤ ∥ a ∥ 2 + ∥ c ∥ 2 ≤ ( q + 1 2 ( 2 n − q ) + 2 2 n − q + 1 ) ∥ φ ∥ 2 . \|[B^\dagger,J]\varphi\|_2\le\|a\|_2+\|c\|_2\le\left(\frac{\sqrt{q+1}}{2(2^n-q)}+\sqrt{\frac{2}{2^n-q+1}}\right)\|\varphi\|_2. ∥ [ B † , J ] φ ∥ 2 ≤ ∥ a ∥ 2 + ∥ c ∥ 2 ≤ ( 2 ( 2 n − q ) q + 1 + 2 n − q + 1 2 ) ∥ φ ∥ 2 .
□ \square □
Lemma A.5 (Conjugate creation). Let 0 ≤ q ≤ 2 n − 2 0 \le q \le2^n - 2 0 ≤ q ≤ 2 n − 2 and let ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ have the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q |L \cup R| \le q ∣ L ∪ R ∣ ≤ q . Then
∥ [ A ˉ , J ] ϕ ∥ 2 2 ≤ ( 1 2 n − q + q + 1 4 ( 2 n − q − 1 ) 2 ) ∥ ϕ ∥ 2 2 . \lVert[\bar{A},J]\phi\rVert_2^2 \le\left(\frac{1}{2^n-q}+\frac{q+1}{4(2^n-q-1)^2}\right)\lVert\phi\rVert_2^2. ∥[ A ˉ , J ] ϕ ∥ 2 2 ≤ ( 2 n − q 1 + 4 ( 2 n − q − 1 ) 2 q + 1 ) ∥ ϕ ∥ 2 2 . Proof. Let k = ∣ Im ( L ∪ R ) ∣ ≤ q k = |\operatorname{Im}(L \cup R)| \le q k = ∣ Im ( L ∪ R ) ∣ ≤ q and
∣ β ⟩ = ∣ y ⟩ Q ∣ α c , r , x , L , R ⟩ W ∣ h ⟩ H ∣ L ∪ { e 0 } ⟩ E L ∣ R ∪ { ( x , y ) } ⟩ E R . |\beta\rangle= |y\rangle_Q|\alpha_{c,r,x,L,R}\rangle_W|h\rangle_H|L \cup\{e_0\}\rangle_{E_L}|R \cup\{(x,y)\}\rangle_{E_R}. ∣ β ⟩ = ∣ y ⟩ Q ∣ α c , r , x , L , R ⟩ W ∣ h ⟩ H ∣ L ∪ { e 0 } ⟩ E L ∣ R ∪ {( x , y )} ⟩ E R . Inserting e 0 e_0 e 0 increases k k k by one exactly when y 0 ∉ Im ( L ∪ R ) y_0 \notin\operatorname{Im}(L \cup R) y 0 ∈ / Im ( L ∪ R ) .
The two orders. The definitions give
A ˉ J ∣ ϕ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) , y ≠ y 0 ∣ β ⟩ 2 n − k − 1 + 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∈ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) num ( L , e 0 ) + 1 2 n − k ∣ β ⟩ , \begin{aligned}
\bar{A}J|\phi\rangle
={}&\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R),\,y\ne y_0}}
\frac{|\beta\rangle}{\sqrt{2^n-k-1}}\\
&+\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\ y_0\in\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R)}}
\frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-k}}|\beta\rangle,
\end{aligned} A ˉ J ∣ ϕ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) , y = y 0 ∑ 2 n − k − 1 ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) ∑ 2 n − k num ( L , e 0 ) + 1 ∣ β ⟩ , J A ˉ ∣ ϕ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) , y ≠ y 0 ∣ β ⟩ 2 n − k + 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∈ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) num ( L , e 0 ) + 1 2 n − k ∣ β ⟩ + 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y = y 0 ∣ β ⟩ 2 n − k . \begin{aligned}
J\bar{A}|\phi\rangle
={}&\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R),\,y\ne y_0}}
\frac{|\beta\rangle}{\sqrt{2^n-k}}\\
&+\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\ y_0\in\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R)}}
\frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-k}}|\beta\rangle\\
&+\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y=y_0}}
\frac{|\beta\rangle}{\sqrt{2^n-k}}.
\end{aligned} J A ˉ ∣ ϕ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) , y = y 0 ∑ 2 n − k ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) ∑ 2 n − k num ( L , e 0 ) + 1 ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y = y 0 ∑ 2 n − k ∣ β ⟩ . The last insertion weight is one because the new pair is in R R R and e 0 ∉ L e_0 \notin L e 0 ∈ / L . The second sums cancel, and the first sums differ only in their denominators. Since
1 2 n − k − 1 − 1 2 n − k = f ( 2 n − k ) 2 n − k , \frac{1}{\sqrt{2^n-k-1}}-\frac{1}{\sqrt{2^n-k}}=\frac{f(2^n-k)}{\sqrt{2^n-k}}, 2 n − k − 1 1 − 2 n − k 1 = 2 n − k f ( 2 n − k ) , we obtain
[ A ˉ , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ , [\bar{A},J]|\phi\rangle=|a\rangle-|c\rangle, [ A ˉ , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ , ∣ a ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) , y ≠ y 0 f ( 2 n − k ) 2 n − k ∣ β ⟩ , |a\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R),\,y\ne y_0}}
\frac{f(2^n-k)}{\sqrt{2^n-k}}|\beta\rangle, ∣ a ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) , y = y 0 ∑ 2 n − k f ( 2 n − k ) ∣ β ⟩ , ∣ c ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y = y 0 ∣ β ⟩ 2 n − k . |c\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y=y_0}}
\frac{|\beta\rangle}{\sqrt{2^n-k}}. ∣ c ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y = y 0 ∑ 2 n − k ∣ β ⟩ .
The normalization term. Before applying J J J , let
∣ a ′ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y 0 ∉ Im ( L ∪ R ) y ∉ Im ( L ∪ R ) , y ≠ y 0 f ( 2 n − k ) 2 n − k ∣ y ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ∪ { ( x , y ) } ⟩ . |a'\rangle= \frac{1}{\sqrt{2^{n+1}}}\sum_{\substack{c,r,h,x,y,L,R\\ y_0\notin\operatorname{Im}(L\cup R)\\ y\notin\operatorname{Im}(L\cup R),\ y\ne y_0}} \frac{f(2^n-k)}{\sqrt{2^n-k}} |y\rangle|\alpha_{c,r,x,L,R}\rangle|h\rangle|e_0\rangle|L\rangle|R\cup\{(x,y)\}\rangle. ∣ a ′ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y 0 ∈ / Im ( L ∪ R ) y ∈ / Im ( L ∪ R ) , y = y 0 ∑ 2 n − k f ( 2 n − k ) ∣ y ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ∪ {( x , y )}⟩ .
The added pair is the unique pair in R R R with output y y y . Removing it and reading e 0 e_0 e 0 recovers all old labels, so distinct input labels give orthogonal terms in ∣ a ′ ⟩ |a'\rangle ∣ a ′ ⟩ . There are 2 n − k − 1 2^n-k-1 2 n − k − 1 allowed values of y y y , and ∣ a ⟩ = J ∣ a ′ ⟩ |a\rangle=J|a'\rangle ∣ a ⟩ = J ∣ a ′ ⟩ . Since A ˉ \bar{A} A ˉ leaves L L L unchanged, we use the bound q + 1 q+1 q + 1 on the squared norm of J J J , f ( 2 n − k ) ≤ 1 / [ 2 ( 2 n − q − 1 ) ] f(2^n-k)\leq1/[2(2^n-q-1)] f ( 2 n − k ) ≤ 1/ [ 2 ( 2 n − q − 1 )] , and Equation (9) to get
∥ a ′ ∥ 2 2 = 1 2 n + 1 ∑ c , r , h , x , L , R y 0 ∉ Im ( L ∪ R ) 2 n − k − 1 2 n − k f ( 2 n − k ) 2 ∥ α c , r , x , L , R ∥ 2 2 ≤ ∥ ϕ ∥ 2 2 4 ( 2 n − q − 1 ) 2 , \begin{aligned}
\|a'\|_2^2 = \frac{1}{2^{n+1}}\sum_{\substack{c,r,h,x,L,R\\ y_0\notin\operatorname{Im}(L\cup R)}} \frac{2^n-k-1}{2^n-k}f(2^n-k)^2\|\alpha_{c,r,x,L,R}\|_2^2 \\
&\leq\frac{\|\phi\|_2^2}{4(2^n-q-1)^2},
\end{aligned} ∥ a ′ ∥ 2 2 = 2 n + 1 1 c , r , h , x , L , R y 0 ∈ / Im ( L ∪ R ) ∑ 2 n − k 2 n − k − 1 f ( 2 n − k ) 2 ∥ α c , r , x , L , R ∥ 2 2 ≤ 4 ( 2 n − q − 1 ) 2 ∥ ϕ ∥ 2 2 ,
∥ a ∥ 2 2 ≤ ( q + 1 ) ∥ a ′ ∥ 2 2 ≤ q + 1 4 ( 2 n − q − 1 ) 2 ∥ ϕ ∥ 2 2 . \|a\|_2^2\leq(q+1)\|a'\|_2^2\leq\frac{q+1}{4(2^n-q-1)^2}\|\phi\|_2^2. ∥ a ∥ 2 2 ≤ ( q + 1 ) ∥ a ′ ∥ 2 2 ≤ 4 ( 2 n − q − 1 ) 2 q + 1 ∥ ϕ ∥ 2 2 .
The excluded output. In ∣ c ⟩ |c\rangle ∣ c ⟩ , the final query label y 0 = ( r , h ) y_0=(r,h) y 0 = ( r , h ) fixes r , h r,h r , h . The unique pair with output y 0 y_0 y 0 in the final relation L L L fixes e 0 e_0 e 0 and c c c ; the unique pair with this output in the final relation R R R fixes x x x . Removing both pairs recovers the input labels, so distinct input labels give distinct output labels. Therefore
∥ c ∥ 2 2 = 1 2 n + 1 ∑ c , r , h , x , L , R y 0 ∉ Im ( L ∪ R ) ∥ α c , r , x , L , R ∥ 2 2 2 n − k ≤ 1 2 n − q ∥ ϕ ∥ 2 2 . \begin{aligned}
\|c\|_2^2=\frac{1}{2^{n+1}}\sum_{\substack{c,r,h,x,L,R\\ y_0\notin\operatorname{Im}(L\cup R)}}\frac{\|\alpha_{c,r,x,L,R}\|_2^2}{2^n-k} \\
&\leq\frac{1}{2^n-q}\|\phi\|_2^2.
\end{aligned} ∥ c ∥ 2 2 = 2 n + 1 1 c , r , h , x , L , R y 0 ∈ / Im ( L ∪ R ) ∑ 2 n − k ∥ α c , r , x , L , R ∥ 2 2 ≤ 2 n − q 1 ∥ ϕ ∥ 2 2 .
In ∣ a ⟩ |a\rangle ∣ a ⟩ , the final relation L L L has no pair with output equal to the final query label; in ∣ c ⟩ |c\rangle ∣ c ⟩ , it has one. These are different relation labels, so
⟨ a ∣ c ⟩ = 0 , ∥ [ A ˉ , J ˉ ] ϕ ∥ 2 2 = ∥ a ∥ 2 2 + ∥ c ∥ 2 2 ≤ ( q + 1 4 ( 2 n − q − 1 ) 2 + 1 2 n − q ) ∥ ϕ ∥ 2 2 . \langle a|c\rangle=0,\qquad\|[\bar{A},\bar{J}]\phi\|_2^2=\|a\|_2^2+\|c\|_2^2\leq\left(\frac{q+1}{4(2^n-q-1)^2}+\frac{1}{2^n-q}\right)\|\phi\|_2^2. ⟨ a ∣ c ⟩ = 0 , ∥ [ A ˉ , J ˉ ] ϕ ∥ 2 2 = ∥ a ∥ 2 2 + ∥ c ∥ 2 2 ≤ ( 4 ( 2 n − q − 1 ) 2 q + 1 + 2 n − q 1 ) ∥ ϕ ∥ 2 2 .
Lemma A.6 (Transpose creation). Let 0 ≤ q ≤ 2 n − 2 0\leq q\leq2^n-2 0 ≤ q ≤ 2 n − 2 and let ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ have the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q |L\cup R|\leq q ∣ L ∪ R ∣ ≤ q . Then
∥ [ B ˉ , J ˉ ] ϕ ∥ 2 2 ≤ ( 2 2 n − q + q + 2 4 ( 2 n − q − 1 ) 2 ) ∥ ϕ ∥ 2 2 . \|[\bar{B},\bar{J}]\phi\|_2^2\leq\left(\frac{2}{2^n-q}+\frac{q+2}{4(2^n-q-1)^2}\right)\|\phi\|_2^2. ∥ [ B ˉ , J ˉ ] ϕ ∥ 2 2 ≤ ( 2 n − q 2 + 4 ( 2 n − q − 1 ) 2 q + 2 ) ∥ ϕ ∥ 2 2 .
Proof. We relabel the query as y y y and write d = ∣ Dom ( L ∪ R ) ∣ ≤ q d=|\operatorname{Dom}(L\cup R)|\leq q d = ∣ Dom ( L ∪ R ) ∣ ≤ q . Inserting e 0 e_0 e 0 increases d d d by one exactly when x 0 , c ∉ Dom ( L ∪ R ) x_{0,c}\notin\operatorname{Dom}(L\cup R) x 0 , c ∈ / Dom ( L ∪ R ) .
The two orders. We use w r , h , y w_{r,h,y} w r , h , y for the insertion weight on the branch x = x 0 , c ∉ Dom ( L ∪ R ) x=x_{0,c}\notin\operatorname{Dom}(L\cup R) x = x 0 , c ∈ / Dom ( L ∪ R ) and write the common output vector below:
w r , h , y : = { 2 , y = y 0 , 1 , y ≠ y 0 , ∣ β ⟩ = ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ L ∪ { e 0 , ( x , y ) } ⟩ ∣ R ⟩ . w_{r,h,y}:=\begin{cases}\sqrt{2},&y=y_0,\\1,&y\ne y_0,\end{cases}
\qquad
|\beta\rangle=|x\rangle|\alpha_{c,r,y,L,R}\rangle|h\rangle|L\cup\{e_0,(x,y)\}\rangle|R\rangle. w r , h , y := { 2 , 1 , y = y 0 , y = y 0 , ∣ β ⟩ = ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ L ∪ { e 0 , ( x , y )}⟩ ∣ R ⟩ .
Then
B ‾ J ∣ ϕ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) , x ≠ x 0 , c ∣ β ⟩ 2 n − d − 1 + 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∈ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) num ( L , e 0 ) + 1 2 n − d ∣ β ⟩ , \overline{B}J|\phi\rangle=
\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R),\ x\ne x_{0,c}}}
\frac{|\beta\rangle}{\sqrt{2^n-d-1}}
+
\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\in\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R)}}
\frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-d}}|\beta\rangle, B J ∣ ϕ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) , x = x 0 , c ∑ 2 n − d − 1 ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) ∑ 2 n − d num ( L , e 0 ) + 1 ∣ β ⟩ ,
J B ‾ ∣ ϕ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) , x ≠ x 0 , c ∣ β ⟩ 2 n − d − 1 + 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∈ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) num ( L , e 0 ) + 1 2 n − d ∣ β ⟩ + 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x = x 0 , c w r , h , y 2 n − d ∣ β ⟩ . J\overline{B}|\phi\rangle=
\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R),\ x\ne x_{0,c}}}
\frac{|\beta\rangle}{\sqrt{2^n-d-1}}
+
\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\in\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R)}}
\frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-d}}|\beta\rangle
+
\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x=x_{0,c}}}
\frac{w_{r,h,y}}{\sqrt{2^n-d}}|\beta\rangle. J B ∣ ϕ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) , x = x 0 , c ∑ 2 n − d − 1 ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) ∑ 2 n − d num ( L , e 0 ) + 1 ∣ β ⟩ + 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x = x 0 , c ∑ 2 n − d w r , h , y ∣ β ⟩ .
For the last sum, L L L has no pair with input x 0 , c x_{0,c} x 0 , c before either insertion. The two inserted pairs coincide exactly when y = y 0 y=y_0 y = y 0 , giving the weight 2 \sqrt{2} 2 . The second sums cancel, and the first sums differ only in their denominators. Using
1 2 n − d − 1 − 1 2 n − d = f ( 2 n − d ) 2 n − d , \frac{1}{\sqrt{2^n-d-1}}-\frac{1}{\sqrt{2^n-d}}=\frac{f(2^n-d)}{\sqrt{2^n-d}}, 2 n − d − 1 1 − 2 n − d 1 = 2 n − d f ( 2 n − d ) ,
we have
[ B ‾ , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ , [\overline{B},J]|\phi\rangle=|a\rangle-|c\rangle, [ B , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ ,
∣ a ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) , x ≠ x 0 , c f ( 2 n − d ) 2 n − d ∣ β ⟩ , |a\rangle=
\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R),\ x\ne x_{0,c}}}
\frac{f(2^n-d)}{\sqrt{2^n-d}}|\beta\rangle, ∣ a ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) , x = x 0 , c ∑ 2 n − d f ( 2 n − d ) ∣ β ⟩ ,
∣ c ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x = x 0 , c w r , h , y 2 n − d ∣ β ⟩ . |c\rangle=
\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x=x_{0,c}}}
\frac{w_{r,h,y}}{\sqrt{2^n-d}}|\beta\rangle. ∣ c ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x = x 0 , c ∑ 2 n − d w r , h , y ∣ β ⟩ .
The normalization term. Let
∣ a ′ ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x 0 , c ∉ Dom ( L ∪ R ) x ∉ Dom ( L ∪ R ) , x ≠ x 0 , c f ( 2 n − d ) 2 n − d ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ∪ { ( x , y ) } ⟩ ∣ R ⟩ . |a'\rangle=
\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)\\x\notin\operatorname{Dom}(L\cup R),\ x\ne x_{0,c}}}
\frac{f(2^n-d)}{\sqrt{2^n-d}}
|x\rangle|\alpha_{c,r,y,L,R}\rangle|h\rangle|e_0\rangle|L\cup\{(x,y)\}\rangle|R\rangle. ∣ a ′ ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) x ∈ / Dom ( L ∪ R ) , x = x 0 , c ∑ 2 n − d f ( 2 n − d ) ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ∪ {( x , y )}⟩ ∣ R ⟩ .
The added pair is identified by x x x . Removing it and reading e 0 e_0 e 0 recovers all old labels, so distinct input labels give orthogonal terms in ∣ a ′ ⟩ |a'\rangle ∣ a ′ ⟩ . There are 2 n − d − 1 2^n-d-1 2 n − d − 1 allowed values of x x x . Since ∣ a ⟩ = J ∣ a ′ ⟩ |a\rangle= J|a'\rangle ∣ a ⟩ = J ∣ a ′ ⟩ and the final relation L L L has size at most q + 1 q+1 q + 1 before J J J , we use the bound q + 2 q+2 q + 2 on the squared norm of J J J , f ( 2 n − d ) ≤ 1 / [ 2 ( 2 n − q − 1 ) ] f(2^n-d) \le1/[2(2^n-q-1)] f ( 2 n − d ) ≤ 1/ [ 2 ( 2 n − q − 1 )] , and Equation (9) to get
∥ a ′ ∥ 2 2 = 1 2 n + 1 ∑ c , r , h , y , L , R x 0 , c ∉ Dom ( L ∪ R ) 2 n − d − 1 2 n − d f ( 2 n − d ) 2 ∥ α c , r , y , L , R ∥ 2 2 ≤ ∥ ϕ ∥ 2 2 4 ( 2 n − q − 1 ) 2 , \begin{aligned}
\lVert a'\rVert_2^2
&= \frac{1}{2^{n+1}}
\sum_{\substack{c,r,h,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)}}
\frac{2^n-d-1}{2^n-d}f(2^n-d)^2\lVert\alpha_{c,r,y,L,R}\rVert_2^2 \\
&\le\frac{\lVert\phi\rVert_2^2}{4(2^n-q-1)^2},
\end{aligned} ∥ a ′ ∥ 2 2 = 2 n + 1 1 c , r , h , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) ∑ 2 n − d 2 n − d − 1 f ( 2 n − d ) 2 ∥ α c , r , y , L , R ∥ 2 2 ≤ 4 ( 2 n − q − 1 ) 2 ∥ ϕ ∥ 2 2 ,
∥ a ∥ 2 2 ≤ ( q + 2 ) ∥ a ′ ∥ 2 2 ≤ q + 2 4 ( 2 n − q − 1 ) 2 ∥ ϕ ∥ 2 2 . \lVert a\rVert_2^2 \le(q+2)\lVert a'\rVert_2^2 \le\frac{q+2}{4(2^n-q-1)^2}\lVert\phi\rVert_2^2. ∥ a ∥ 2 2 ≤ ( q + 2 ) ∥ a ′ ∥ 2 2 ≤ 4 ( 2 n − q − 1 ) 2 q + 2 ∥ ϕ ∥ 2 2 .
The excluded input. For ∣ c ⟩ |c\rangle ∣ c ⟩ , write
μ = ( c , r , h , y , L , R ) , λ μ = ( x 0 , c , h , L ∪ { e 0 , ( x 0 , c , y ) } , R ) , w μ = w r , h , y . \mu=(c,r,h,y,L,R),\qquad\lambda_\mu=(x_{0,c},h,L\cup\{e_0,(x_{0,c},y)\},R),\qquad w_\mu=w_{r,h,y}. μ = ( c , r , h , y , L , R ) , λ μ = ( x 0 , c , h , L ∪ { e 0 , ( x 0 , c , y )} , R ) , w μ = w r , h , y .
The indices satisfy the conditions in the sum defining ∣ c ⟩ |c\rangle ∣ c ⟩ . Let α μ = α c , r , y , L , R \alpha_\mu=\alpha_{c,r,y,L,R} α μ = α c , r , y , L , R and d μ = ∣ Dom ( L ∪ R ) ∣ d_\mu=|\operatorname{Dom}(L\cup R)| d μ = ∣ Dom ( L ∪ R ) ∣ . The final query label x 0 , c x_{0,c} x 0 , c fixes c c c . The two pairs with this input recover the old L L L after removal. Choosing which pair is e 0 e_0 e 0 fixes r r r , h h h and the old query y y y . If the pairs are distinct, there are at most two choices, each with weight one. If they coincide, there is one choice with weight 2 \sqrt{2} 2 . Thus
w μ 2 ∑ μ ~ λ μ ~ = λ μ 1 ≤ 2. w_\mu^2\sum_{\substack{\widetilde{\mu}\\\lambda_{\widetilde{\mu}}=\lambda_\mu}}1\le2. w μ 2 μ λ μ = λ μ ∑ 1 ≤ 2.
By Equation (26) ,
∥ c ∥ 2 2 = 1 2 n + 1 ∑ λ ∥ ∑ μ λ μ = λ w μ α μ 2 n − d μ ∥ 2 2 ≤ 1 2 n + 1 ∑ μ w μ 2 ∥ α μ ∥ 2 2 2 n − d μ ∑ μ ~ λ μ ~ = λ μ 1 ≤ 2 2 n + 1 ∑ c , r , h , y , L , R x 0 , c ∉ Dom ( L ∪ R ) ∥ α c , r , y , L , R ∥ 2 2 2 n − d ≤ 2 2 n − q ∥ ϕ ∥ 2 2 . \begin{aligned}
\lVert c\rVert_2^2
&=\frac{1}{2^{n+1}}\sum_\lambda
\left\lVert\sum_{\substack{\mu\\\lambda_\mu=\lambda}}
\frac{w_\mu\alpha_\mu}{\sqrt{2^n-d_\mu}}\right\rVert_2^2\\
&\le\frac{1}{2^{n+1}}\sum_\mu
\frac{w_\mu^2\lVert\alpha_\mu\rVert_2^2}{2^n-d_\mu}
\sum_{\substack{\widetilde{\mu}\\\lambda_{\widetilde{\mu}}=\lambda_\mu}}1\\
&\le\frac{2}{2^{n+1}}
\sum_{\substack{c,r,h,y,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)}}
\frac{\lVert\alpha_{c,r,y,L,R}\rVert_2^2}{2^n-d}\\
&\le\frac{2}{2^n-q}\lVert\phi\rVert_2^2.
\end{aligned} ∥ c ∥ 2 2 = 2 n + 1 1 λ ∑ μ λ μ = λ ∑ 2 n − d μ w μ α μ 2 2 ≤ 2 n + 1 1 μ ∑ 2 n − d μ w μ 2 ∥ α μ ∥ 2 2 μ λ μ = λ μ ∑ 1 ≤ 2 n + 1 2 c , r , h , y , L , R x 0 , c ∈ / Dom ( L ∪ R ) ∑ 2 n − d ∥ α c , r , y , L , R ∥ 2 2 ≤ 2 n − q 2 ∥ ϕ ∥ 2 2 .
In ∣ a ⟩ |a\rangle ∣ a ⟩ , the final relation L L L contains one pair with input equal to the final query label; in ∣ c ⟩ |c\rangle ∣ c ⟩ , it contains two. These are different relation labels, so
⟨ a ∣ c ⟩ = 0 , ∥ [ B ˉ , J ] ϕ ∥ 2 2 = ∥ a ∥ 2 2 + ∥ c ∥ 2 2 ≤ ( q + 2 4 ( 2 n − q − 1 ) 2 + 2 2 n − q ) ∥ ϕ ∥ 2 2 . \langle a|c\rangle=0,\qquad
\lVert[\bar{B},J]\phi\rVert_2^2=\lVert a\rVert_2^2+\lVert c\rVert_2^2
\le\left(\frac{q+2}{4(2^n-q-1)^2}+\frac{2}{2^n-q}\right)\lVert\phi\rVert_2^2. ⟨ a ∣ c ⟩ = 0 , ∥[ B ˉ , J ] ϕ ∥ 2 2 = ∥ a ∥ 2 2 + ∥ c ∥ 2 2 ≤ ( 4 ( 2 n − q − 1 ) 2 q + 2 + 2 n − q 2 ) ∥ ϕ ∥ 2 2 .
Lemma A.7 (Transpose deletion). Let 0 ≤ q ≤ 2 n − 2 0 \le q \le2^n - 2 0 ≤ q ≤ 2 n − 2 and let ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ have the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q |L \cup R| \le q ∣ L ∪ R ∣ ≤ q . Then
∥ [ A ˉ † , J ] ϕ ∥ 2 ≤ ( q 2 ( 2 n − q ) + q 2 ∣ H ∣ ( 2 n − q + 1 ) ) ∥ ϕ ∥ 2 . \left\|[\bar{A}^{\dagger},J]\phi\right\|_2 \le\left(\frac{\sqrt{q}}{2(2^n-q)}+\sqrt{\frac{q}{2|H|(2^n-q+1)}}\right)\|\phi\|_2. [ A ˉ † , J ] ϕ 2 ≤ ( 2 ( 2 n − q ) q + 2∣ H ∣ ( 2 n − q + 1 ) q ) ∥ ϕ ∥ 2 .
Proof. We relabel the query as y y y and write k = ∣ Im ( L ∪ R ) ∣ k=|\operatorname{Im}(L\cup R)| k = ∣ Im ( L ∪ R ) ∣ . For ( x , y ) ∈ R (x,y)\in R ( x , y ) ∈ R with y ∉ Im ( L ∪ ( R ∖ { ( x , y ) } ) ) y\notin\operatorname{Im}(L\cup(R\setminus\{(x,y)\})) y ∈ / Im ( L ∪ ( R ∖ {( x , y )})) ,
A ˉ † ∣ y ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ x ⟩ ∣ L ⟩ ∣ R ∖ { ( x , y ) } ⟩ 2 n − k + 1 ; (32) \bar{A}^{\dagger}|y\rangle|L\rangle|R\rangle=\frac{|x\rangle|L\rangle|R\setminus\{(x,y)\}\rangle}{\sqrt{2^n-k+1}}; \tag*{(32)} A ˉ † ∣ y ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − k + 1 ∣ x ⟩ ∣ L ⟩ ∣ R ∖ {( x , y )}⟩ ; (32)
otherwise the result is zero. Removing this pair reduces the image size to k − 1 k-1 k − 1 , so
A ˉ ∣ x ⟩ ∣ L ⟩ ∣ R ∖ { ( x , y ) } ⟩ = 1 2 n − k + 1 ∑ z ∉ Im ( L ∪ ( R ∖ { ( x , y ) } ) ) ∣ z ⟩ ∣ L ⟩ ∣ ( R ∖ { ( x , y ) } ) ∪ { ( x , z ) } ⟩ . \bar{A}|x\rangle|L\rangle|R\setminus\{(x,y)\}\rangle=\frac{1}{\sqrt{2^n-k+1}}\sum_{z\notin\operatorname{Im}(L\cup(R\setminus\{(x,y)\}))}|z\rangle|L\rangle|(R\setminus\{(x,y)\})\cup\{(x,z)\}\rangle. A ˉ ∣ x ⟩ ∣ L ⟩ ∣ R ∖ {( x , y )}⟩ = 2 n − k + 1 1 z ∈ / Im ( L ∪ ( R ∖ {( x , y )})) ∑ ∣ z ⟩ ∣ L ⟩ ∣ ( R ∖ {( x , y )}) ∪ {( x , z )}⟩ .
The term z = y z=y z = y gives Equation (32) . The query label y y y fixes the unique pair removed from R R R ; no input contributes if the conditions fail.
The two orders. Suppose ( x , y ) (x,y) ( x , y ) satisfies these conditions and y ≠ y 0 y\ne y_0 y = y 0 . If y 0 ∉ Im ( L ∪ R ) y_0\notin\operatorname{Im}(L\cup R) y 0 ∈ / Im ( L ∪ R ) , then
A ˉ † J ∣ y ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ x ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x , y ) } ⟩ 2 n − k , \bar{A}^{\dagger}J|y\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|x\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x,y)\}\rangle}{\sqrt{2^n-k}}, A ˉ † J ∣ y ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − k ∣ x ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x , y )}⟩ ,
J A ˉ † ∣ y ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ x ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x , y ) } ⟩ 2 n − k + 1 . J\bar{A}^{\dagger}|y\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|x\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x,y)\}\rangle}{\sqrt{2^n-k+1}}. J A ˉ † ∣ y ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − k + 1 ∣ x ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x , y )}⟩ .
If y 0 ∈ Im ( L ∪ R ) y_0\in\operatorname{Im}(L\cup R) y 0 ∈ Im ( L ∪ R ) , both orders give
num ( L , e 0 ) + 1 2 n − k + 1 ∣ x ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x , y ) } ⟩ . \frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-k+1}}|x\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x,y)\}\rangle. 2 n − k + 1 num ( L , e 0 ) + 1 ∣ x ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x , y )}⟩ .
Deletion leaves L L L unchanged, and insertion of output y 0 ≠ y y_0\ne y y 0 = y does not affect the deletion condition. If y y y cannot be removed, both orders give zero.
For y = y 0 y=y_0 y = y 0 satisfying the deletion condition, R R R has exactly one pair with output y 0 y_0 y 0 and L L L has none. Inserting e 0 e_0 e 0 into L L L prevents deletion from R R R , so
A ˉ † J ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0 , \bar{A}^{\dagger}J|y_0\rangle|e_0\rangle|L\rangle|R\rangle=0, A ˉ † J ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0 ,
J A ˉ † ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ x ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x , y 0 ) } ⟩ 2 n − k + 1 . J\bar{A}^{\dagger}|y_0\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|x\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x,y_0)\}\rangle}{\sqrt{2^n-k+1}}. J A ˉ † ∣ y 0 ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − k + 1 ∣ x ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x , y 0 )}⟩ .
The insertion weight is one because y 0 ∉ Im ( L ) y_0\notin\operatorname{Im}(L) y 0 ∈ / Im ( L ) . If y 0 y_0 y 0 cannot be removed, adding a pair to L L L cannot make it removable, so both orders give zero. For the common terms,
1 2 n − k − 1 2 n − k + 1 = f ( 2 n − k + 1 ) 2 n − k + 1 . \frac{1}{\sqrt{2^n-k}}-\frac{1}{\sqrt{2^n-k+1}}=\frac{f(2^n-k+1)}{\sqrt{2^n-k+1}}. 2 n − k 1 − 2 n − k + 1 1 = 2 n − k + 1 f ( 2 n − k + 1 ) .
We define
∣ β ⟩ = ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ L ∪ { e 0 } ⟩ ∣ R ∖ { ( x , y ) } ⟩ . |\beta\rangle=|x\rangle|\alpha_{c,r,y,L,R}\rangle|h\rangle|L\cup\{e_0\}\rangle|R\setminus\{(x,y)\}\rangle. ∣ β ⟩ = ∣ x ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ L ∪ { e 0 }⟩ ∣ R ∖ {( x , y )}⟩ .
Then
[ A ˉ † , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ , [\bar{A}^{\dagger},J]|\phi\rangle=|a\rangle-|c\rangle, [ A ˉ † , J ] ∣ ϕ ⟩ = ∣ a ⟩ − ∣ c ⟩ ,
∣ a ⟩ = 1 2 n + 1 ∑ c , r , h , y , x , L , R y ≠ y 0 , y 0 ∉ Im ( L ∪ R ) ( x , y ) ∈ R , y ∉ Im ( L ∪ ( R ∖ { ( x , y ) } ) ) f ( 2 n − k + 1 ) 2 n − k + 1 ∣ β ⟩ , |a\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,y,x,L,R\\ y\ne y_0,\ y_0\notin\operatorname{Im}(L\cup R)\\ (x,y)\in R,\ y\notin\operatorname{Im}(L\cup(R\setminus\{(x,y)\}))}}
\frac{f(2^n-k+1)}{\sqrt{2^n-k+1}}|\beta\rangle, ∣ a ⟩ = 2 n + 1 1 c , r , h , y , x , L , R y = y 0 , y 0 ∈ / Im ( L ∪ R ) ( x , y ) ∈ R , y ∈ / Im ( L ∪ ( R ∖ {( x , y )})) ∑ 2 n − k + 1 f ( 2 n − k + 1 ) ∣ β ⟩ ,
∣ c ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R y = y 0 , ( x , y ) ∈ R y ∉ Im ( L ∪ ( R ∖ { ( x , y ) } ) ) ∣ β ⟩ 2 n − k + 1 . |c\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\ y=y_0,\ (x,y)\in R\\ y\notin\operatorname{Im}(L\cup(R\setminus\{(x,y)\}))}}
\frac{|\beta\rangle}{\sqrt{2^n-k+1}}. ∣ c ⟩ = 2 n + 1 1 c , r , h , x , y , L , R y = y 0 , ( x , y ) ∈ R y ∈ / Im ( L ∪ ( R ∖ {( x , y )})) ∑ 2 n − k + 1 ∣ β ⟩ .
The normalization term. Let
∣ η ⟩ = 1 2 n + 1 ∑ c , r , h , y , L , R y ≠ y 0 , y 0 ∉ Im ( L ∪ R ) f ( 2 n − k + 1 ) ∣ y ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ . |\eta\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,y,L,R\\ y\ne y_0,\ y_0\notin\operatorname{Im}(L\cup R)}}
f(2^n-k+1)|y\rangle|\alpha_{c,r,y,L,R}\rangle|h\rangle|e_0\rangle|L\rangle|R\rangle. ∣ η ⟩ = 2 n + 1 1 c , r , h , y , L , R y = y 0 , y 0 ∈ / Im ( L ∪ R ) ∑ f ( 2 n − k + 1 ) ∣ y ⟩ ∣ α c , r , y , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ .
The vector satisfies ∣ a ⟩ = J A ˉ † ∣ η ⟩ |a\rangle=J\bar{A}^{\dagger}|\eta\rangle ∣ a ⟩ = J A ˉ † ∣ η ⟩ . By Equation (24) , f ( 2 n − k + 1 ) ≤ 1 / [ 2 ( 2 n − q ) ] f(2^n-k+1)\le1/[2(2^n-q)] f ( 2 n − k + 1 ) ≤ 1/ [ 2 ( 2 n − q )] . For every nonzero deletion, R R R contains at least one pair before deletion, so ∣ L ∣ ≤ q − 1 |L|\le q-1 ∣ L ∣ ≤ q − 1 . For q ≥ 1 q\ge1 q ≥ 1 , this gives
∥ a ∥ 2 2 ≤ q ∥ A ˉ † η ∥ 2 2 ≤ q ∥ η ∥ 2 2 = q 2 n + 1 ∑ c , r , h , y , L , R y ≠ y 0 , y 0 ∉ Im ( L ∪ R ) f ( 2 n − k + 1 ) 2 ∥ α c , r , y , L , R ∥ 2 2 ≤ q 4 ( 2 n − q ) 2 ∥ ϕ ∥ 2 2 . \begin{aligned}
\|a\|_2^2\le q\|\bar{A}^{\dagger}\eta\|_2^2\le q\|\eta\|_2^2 \\
&=\frac{q}{2^{n+1}}
\sum_{\substack{c,r,h,y,L,R\\ y\ne y_0,\ y_0\notin\operatorname{Im}(L\cup R)}}
f(2^n-k+1)^2\|\alpha_{c,r,y,L,R}\|_2^2 \\
&\le\frac{q}{4(2^n-q)^2}\|\phi\|_2^2.
\end{aligned} ∥ a ∥ 2 2 ≤ q ∥ A ˉ † η ∥ 2 2 ≤ q ∥ η ∥ 2 2 = 2 n + 1 q c , r , h , y , L , R y = y 0 , y 0 ∈ / Im ( L ∪ R ) ∑ f ( 2 n − k + 1 ) 2 ∥ α c , r , y , L , R ∥ 2 2 ≤ 4 ( 2 n − q ) 2 q ∥ ϕ ∥ 2 2 .
For q = 0 q=0 q = 0 , ∣ a ⟩ = 0 |a\rangle=0 ∣ a ⟩ = 0 .
Blocked deletion. For ∣ c ⟩ |c\rangle ∣ c ⟩ , fix the final labels ( x , h , L ′ , R ′ ) (x,h,L',R') ( x , h , L ′ , R ′ ) . Deletion followed by insertion preserves total record size, so ∣ L ′ ∣ ≤ q |L'|\le q ∣ L ′ ∣ ≤ q . Each possible e 0 e_0 e 0 is one of the pairs in L ′ L' L ′ , and
e 0 = ( x 0 , c , ( r , h ) ) , L = L ′ ∖ { e 0 } , R = R ′ ∪ { ( x , ( r , h ) ) } . e_0=(x_{0,c},(r,h)),\qquad L=L'\setminus\{e_0\},\qquad R=R'\cup\{(x,(r,h))\}. e 0 = ( x 0 , c , ( r , h )) , L = L ′ ∖ { e 0 } , R = R ′ ∪ {( x , ( r , h ))} .
Thus choosing e 0 e_0 e 0 recovers c , r c,r c , r , the old query y 0 y_0 y 0 , and the old records. Write
μ = ( c , r , h , x , L , R ) , λ μ = ( x , h , L ∪ { e 0 } , R ∖ { ( x , y 0 ) } ) , \mu=(c,r,h,x,L,R),\qquad\lambda_\mu=(x,h,L\cup\{e_0\},R\setminus\{(x,y_0)\}), μ = ( c , r , h , x , L , R ) , λ μ = ( x , h , L ∪ { e 0 } , R ∖ {( x , y 0 )}) ,
Here μ \mu μ ranges over the terms in the sum defining ∣ c ⟩ |c\rangle ∣ c ⟩ . Let α μ = α c , r , ( r , h ) , L , R \alpha_\mu=\alpha_{c,r,(r,h),L,R} α μ = α c , r , ( r , h ) , L , R and k μ = ∣ Im ( L ∪ R ) ∣ k_\mu=|\operatorname{Im}(L\cup R)| k μ = ∣ Im ( L ∪ R ) ∣ . There are at most q q q indices with the same final label. For fixed R , y 0 R,y_0 R , y 0 , at most one x x x satisfies the deletion condition, so enlarging the sum does not count any coefficient twice. By Equations (10) and (25),
∥ c ∥ 2 2 = 1 2 n + 1 ∑ λ ∥ ∑ μ λ μ = λ α μ 2 n − k μ + 1 ∥ 2 2 ≤ 1 2 n + 1 ∑ μ ∥ α μ ∥ 2 2 2 n − k μ + 1 ∑ λ λ μ = λ μ 1 ≤ q 2 n + 1 ∑ c , r , h , x , L , R ( x , y 0 ) ∈ R y 0 ∉ Im ( L ∪ ( R ∖ { ( x , y 0 ) } ) ) ∥ α c , r , ( r , h ) , L , R ∥ 2 2 2 n − k + 1 ≤ q 2 n + 1 ( 2 n − q + 1 ) ∑ c , r , h , L , R ∥ α c , r , ( r , h ) , L , R ∥ 2 2 ≤ q 2 ∣ H ∣ ( 2 n − q + 1 ) ∥ φ ∥ 2 2 . \begin{aligned}
\lVert c\rVert_2^2
&= \frac{1}{2^{n+1}}\sum_{\lambda}\left\lVert\sum_{\substack{\mu\\ \lambda_\mu=\lambda}}\frac{\alpha_\mu}{\sqrt{2^n-k_\mu+1}}\right\rVert_2^2\\
&\le\frac{1}{2^{n+1}}\sum_\mu\frac{\lVert\alpha_\mu\rVert_2^2}{2^n-k_\mu+1}\sum_{\substack{\lambda\\ \lambda_\mu=\lambda_\mu}}1\\
&\le\frac{q}{2^{n+1}}\sum_{\substack{c,r,h,x,L,R\\(x,y_0)\in R\\y_0\notin\operatorname{Im}(L\cup(R\setminus\{(x,y_0)\}))}}\frac{\lVert\alpha_{c,r,(r,h),L,R}\rVert_2^2}{2^n-k+1}\\
&\le\frac{q}{2^{n+1}(2^n-q+1)}\sum_{c,r,h,L,R}\lVert\alpha_{c,r,(r,h),L,R}\rVert_2^2\\
&\le\frac{q}{2|H|(2^n-q+1)}\lVert\varphi\rVert_2^2.
\end{aligned} ∥ c ∥ 2 2 = 2 n + 1 1 λ ∑ μ λ μ = λ ∑ 2 n − k μ + 1 α μ 2 2 ≤ 2 n + 1 1 μ ∑ 2 n − k μ + 1 ∥ α μ ∥ 2 2 λ λ μ = λ μ ∑ 1 ≤ 2 n + 1 q c , r , h , x , L , R ( x , y 0 ) ∈ R y 0 ∈ / Im ( L ∪ ( R ∖ {( x , y 0 )})) ∑ 2 n − k + 1 ∥ α c , r , ( r , h ) , L , R ∥ 2 2 ≤ 2 n + 1 ( 2 n − q + 1 ) q c , r , h , L , R ∑ ∥ α c , r , ( r , h ) , L , R ∥ 2 2 ≤ 2∣ H ∣ ( 2 n − q + 1 ) q ∥ φ ∥ 2 2 .
The triangle inequality gives
∥ [ A ˉ † , J ] φ ∥ 2 ≤ ∥ a ∥ 2 + ∥ c ∥ 2 ≤ ( q 2 ( 2 n − q ) + q 2 ∣ H ∣ ( 2 n − q + 1 ) ) ∥ φ ∥ 2 . \lVert[\bar{A}^{\dagger},J]\varphi\rVert_2\le\lVert a\rVert_2+\lVert c\rVert_2\le\left(\frac{\sqrt{q}}{2(2^n-q)}+\sqrt{\frac{q}{2|H|(2^n-q+1)}}\right)\lVert\varphi\rVert_2. ∥[ A ˉ † , J ] φ ∥ 2 ≤ ∥ a ∥ 2 + ∥ c ∥ 2 ≤ ( 2 ( 2 n − q ) q + 2∣ H ∣ ( 2 n − q + 1 ) q ) ∥ φ ∥ 2 .
Lemma A.8 (Conjugate deletion). Let 0 ≤ q ≤ 2 n − 2 0\le q\le2^n-2 0 ≤ q ≤ 2 n − 2 and let ∣ ϕ ⟩ |\phi\rangle ∣ ϕ ⟩ have the form in Equation (8) , with coefficient vectors independent of h h h and supported on ∣ L ∪ R ∣ ≤ q |L\cup R|\le q ∣ L ∪ R ∣ ≤ q . Then
∥ [ B ˉ † , J ] φ ∥ 2 ≤ ( q 2 ( 2 n − q ) + 2 2 n − q + 2 2 n − q + 1 ) ∥ φ ∥ 2 . \lVert[\bar{B}^{\dagger},J]\varphi\rVert_2\le\left(\frac{\sqrt{q}}{2(2^n-q)}+\sqrt{\frac{2}{2^n-q}}+\sqrt{\frac{2}{2^n-q+1}}\right)\lVert\varphi\rVert_2. ∥[ B ˉ † , J ] φ ∥ 2 ≤ ( 2 ( 2 n − q ) q + 2 n − q 2 + 2 n − q + 1 2 ) ∥ φ ∥ 2 .
Proof. Let d = ∣ Dom ( L ∪ R ) ∣ d=|\operatorname{Dom}(L\cup R)| d = ∣ Dom ( L ∪ R ) ∣ . For ( x , y ) ∈ L (x,y)\in L ( x , y ) ∈ L with x ∉ Dom ( ( L ∖ { ( x , y ) } ) ∪ R ) x\notin\operatorname{Dom}((L\setminus\{(x,y)\})\cup R) x ∈ / Dom (( L ∖ {( x , y )}) ∪ R ) ,
B ˉ † ∣ x ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ y ⟩ ∣ L ∖ { ( x , y ) } ⟩ ∣ R ⟩ 2 n − d + 1 . (33) \bar{B}^{\dagger}|x\rangle|L\rangle|R\rangle=\frac{|y\rangle|L\setminus\{(x,y)\}\rangle|R\rangle}{\sqrt{2^n-d+1}}. \tag*{(33)} B ˉ † ∣ x ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − d + 1 ∣ y ⟩ ∣ L ∖ {( x , y )}⟩ ∣ R ⟩ . (33)
otherwise the result is zero. Removing this pair reduces the domain size to d − 1 d-1 d − 1 , so
B ˉ ∣ y ⟩ ∣ L ∖ { ( x , y ) } ⟩ ∣ R ⟩ = 1 2 n − d + 1 ∑ z ∉ Dom ( ( L ∖ { ( x , y ) } ) ∪ R ) ∣ z ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { ( z , y ) } ⟩ ∣ R ⟩ . \bar{B}|y\rangle|L\setminus\{(x,y)\}\rangle|R\rangle=\frac{1}{\sqrt{2^n-d+1}}\sum_{z\notin\operatorname{Dom}((L\setminus\{(x,y)\})\cup R)}|z\rangle|(L\setminus\{(x,y)\})\cup\{(z,y)\}\rangle|R\rangle. B ˉ ∣ y ⟩ ∣ L ∖ {( x , y )}⟩ ∣ R ⟩ = 2 n − d + 1 1 z ∈ / Dom (( L ∖ {( x , y )}) ∪ R ) ∑ ∣ z ⟩ ∣ ( L ∖ {( x , y )}) ∪ {( z , y )}⟩ ∣ R ⟩ .
The term z = x z=x z = x gives Equation (33) . The query label x x x fixes the unique pair removed from L L L ; no input contributes if the conditions fail.
The two orders. Suppose ( x , y ) (x,y) ( x , y ) satisfies these conditions and x ≠ x 0 , c x\ne x_{0,c} x = x 0 , c . If x 0 , c ∉ Dom ( L ∪ R ) x_{0,c}\notin\operatorname{Dom}(L\cup R) x 0 , c ∈ / Dom ( L ∪ R ) , then
B ˉ † J ∣ x ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ y ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ 2 n − d , \bar{B}^{\dagger}J|x\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|y\rangle|(L\setminus\{(x,y)\})\cup\{e_0\}\rangle|R\rangle}{\sqrt{2^n-d}}, B ˉ † J ∣ x ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − d ∣ y ⟩ ∣ ( L ∖ {( x , y )}) ∪ { e 0 }⟩ ∣ R ⟩ ,
J B ˉ † ∣ x ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ y ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ 2 n − d + 1 . J\bar{B}^{\dagger}|x\rangle|e_0\rangle|L\rangle|R\rangle=\frac{|y\rangle|(L\setminus\{(x,y)\})\cup\{e_0\}\rangle|R\rangle}{\sqrt{2^n-d+1}}. J B ˉ † ∣ x ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − d + 1 ∣ y ⟩ ∣ ( L ∖ {( x , y )}) ∪ { e 0 }⟩ ∣ R ⟩ .
If x 0 , c ∈ Dom ( L ∪ R ) x_{0,c} \in\operatorname{Dom}(L \cup R) x 0 , c ∈ Dom ( L ∪ R ) , both orders give
num ( L , e 0 ) + 1 2 n − d + 1 ∣ y ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ . \frac{\sqrt{\operatorname{num}(L,e_0)+1}}{\sqrt{2^n-d+1}}|y\rangle|(L \setminus\{(x,y)\}) \cup\{e_0\}\rangle|R\rangle. 2 n − d + 1 num ( L , e 0 ) + 1 ∣ y ⟩ ∣ ( L ∖ {( x , y )}) ∪ { e 0 }⟩ ∣ R ⟩ .
Since x ≠ x 0 , c x \ne x_{0,c} x = x 0 , c , deleting ( x , y ) (x,y) ( x , y ) does not change the number of copies of e 0 e_0 e 0 . If x x x cannot be removed, adding a pair with different input does not change this, and both orders give zero.
For x = x 0 , c ∉ Dom ( L ∪ R ) x=x_{0,c} \notin\operatorname{Dom}(L \cup R) x = x 0 , c ∈ / Dom ( L ∪ R ) , deletion after insertion removes e 0 e_0 e 0 :
B ˉ † J ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ y 0 ⟩ ∣ L ⟩ ∣ R ⟩ 2 n − d , J B ˉ † ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0. \bar{B}^{\dagger}J|x_{0,c}\rangle|e_0\rangle|L\rangle|R\rangle=
\frac{|y_0\rangle|L\rangle|R\rangle}{\sqrt{2^n-d}},
\qquad
J\bar{B}^{\dagger}|x_{0,c}\rangle|e_0\rangle|L\rangle|R\rangle=0. B ˉ † J ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − d ∣ y 0 ⟩ ∣ L ⟩ ∣ R ⟩ , J B ˉ † ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0.
For x = x 0 , c x=x_{0,c} x = x 0 , c with exactly one pair ( x 0 , c , y ) (x_{0,c},y) ( x 0 , c , y ) in L L L and no input x 0 , c x_{0,c} x 0 , c in R R R , insertion gives two pairs with this input. Hence
B ˉ † J ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0 , \bar{B}^{\dagger}J|x_{0,c}\rangle|e_0\rangle|L\rangle|R\rangle=0, B ˉ † J ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 0 ,
J B ˉ † ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = ∣ y ⟩ ∣ ( L ∖ { ( x 0 , c , y ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ 2 n − d + 1 . J\bar{B}^{\dagger}|x_{0,c}\rangle|e_0\rangle|L\rangle|R\rangle=
\frac{|y\rangle|(L \setminus\{(x_{0,c},y)\}) \cup\{e_0\}\rangle|R\rangle}{\sqrt{2^n-d+1}}. J B ˉ † ∣ x 0 , c ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ = 2 n − d + 1 ∣ y ⟩ ∣ ( L ∖ {( x 0 , c , y )}) ∪ { e 0 }⟩ ∣ R ⟩ .
The insertion weight in the second line is one because deletion removes the only input x 0 , c x_{0,c} x 0 , c . If x 0 , c x_{0,c} x 0 , c occurs in R R R or at least twice in L L L , both orders give zero. For the common terms,
1 2 n − d − 1 2 n − d + 1 = f ( 2 n − d + 1 ) 2 n − d + 1 . \frac{1}{\sqrt{2^n-d}}-\frac{1}{\sqrt{2^n-d+1}}
=\frac{f(2^n-d+1)}{\sqrt{2^n-d+1}}. 2 n − d 1 − 2 n − d + 1 1 = 2 n − d + 1 f ( 2 n − d + 1 ) .
We define
∣ β ⟩ = ∣ y ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ ( L ∖ { ( x , y ) } ) ∪ { e 0 } ⟩ ∣ R ⟩ . |\beta\rangle=|y\rangle|\alpha_{c,r,x,L,R}\rangle|h\rangle|(L \setminus\{(x,y)\}) \cup\{e_0\}\rangle|R\rangle. ∣ β ⟩ = ∣ y ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ ( L ∖ {( x , y )}) ∪ { e 0 }⟩ ∣ R ⟩ .
Then
[ B ˉ † , J ] ∣ ϕ ⟩ = ∣ a ⟩ + ∣ b ⟩ − ∣ c ⟩ , [\bar{B}^{\dagger},J]|\phi\rangle=|a\rangle+|b\rangle-|c\rangle, [ B ˉ † , J ] ∣ ϕ ⟩ = ∣ a ⟩ + ∣ b ⟩ − ∣ c ⟩ ,
∣ a ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x ≠ x 0 , c , x 0 , c ∉ Dom ( L ∪ R ) ( x , y ) ∈ L , x ∉ Dom ( ( L ∖ { ( x , y ) } ) ∪ R ) f ( 2 n − d + 1 ) 2 n − d + 1 ∣ β ⟩ , |a\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x\ne x_{0,c},\ x_{0,c}\notin\operatorname{Dom}(L\cup R)\\(x,y)\in L,\ x\notin\operatorname{Dom}((L\setminus\{(x,y)\})\cup R)}}
\frac{f(2^n-d+1)}{\sqrt{2^n-d+1}}|\beta\rangle, ∣ a ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x = x 0 , c , x 0 , c ∈ / Dom ( L ∪ R ) ( x , y ) ∈ L , x ∈ / Dom (( L ∖ {( x , y )}) ∪ R ) ∑ 2 n − d + 1 f ( 2 n − d + 1 ) ∣ β ⟩ ,
∣ b ⟩ = 1 2 n + 1 ∑ c , r , h , L , R x 0 , c ∉ Dom ( L ∪ R ) ∣ ( r , h ) ⟩ ∣ α c , r , x 0 , c , L , R ⟩ ∣ h ⟩ ∣ L ⟩ ∣ R ⟩ 2 n − d , |b\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,L,R\\x_{0,c}\notin\operatorname{Dom}(L\cup R)}}
\frac{|(r,h)\rangle|\alpha_{c,r,x_{0,c},L,R}\rangle|h\rangle|L\rangle|R\rangle}{\sqrt{2^n-d}}, ∣ b ⟩ = 2 n + 1 1 c , r , h , L , R x 0 , c ∈ / Dom ( L ∪ R ) ∑ 2 n − d ∣ ( r , h )⟩ ∣ α c , r , x 0 , c , L , R ⟩ ∣ h ⟩ ∣ L ⟩ ∣ R ⟩ ,
∣ c ⟩ = 1 2 n + 1 ∑ c , r , h , x , y , L , R x = x 0 , c , ( x , y ) ∈ L x ∉ Dom ( ( L ∖ { ( x , y ) } ) ∪ R ) ∣ β ⟩ 2 n − d + 1 . |c\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,y,L,R\\x=x_{0,c},\ (x,y)\in L\\x\notin\operatorname{Dom}((L\setminus\{(x,y)\})\cup R)}}
\frac{|\beta\rangle}{\sqrt{2^n-d+1}}. ∣ c ⟩ = 2 n + 1 1 c , r , h , x , y , L , R x = x 0 , c , ( x , y ) ∈ L x ∈ / Dom (( L ∖ {( x , y )}) ∪ R ) ∑ 2 n − d + 1 ∣ β ⟩ .
The insertion weights in these sums are one.
The normalization term. Let
∣ η ⟩ = 1 2 n + 1 ∑ c , r , h , x , L , R x ≠ x 0 , c , x 0 , c ∉ Dom ( L ∪ R ) f ( 2 n − d + 1 ) ∣ x ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ . |\eta\rangle=\frac{1}{\sqrt{2^{n+1}}}
\sum_{\substack{c,r,h,x,L,R\\x\ne x_{0,c},\ x_{0,c}\notin\operatorname{Dom}(L\cup R)}}
f(2^n-d+1)|x\rangle|\alpha_{c,r,x,L,R}\rangle|h\rangle|e_0\rangle|L\rangle|R\rangle. ∣ η ⟩ = 2 n + 1 1 c , r , h , x , L , R x = x 0 , c , x 0 , c ∈ / Dom ( L ∪ R ) ∑ f ( 2 n − d + 1 ) ∣ x ⟩ ∣ α c , r , x , L , R ⟩ ∣ h ⟩ ∣ e 0 ⟩ ∣ L ⟩ ∣ R ⟩ .
The vector satisfies ∣ a ⟩ = J B ˉ † ∣ η ⟩ |a\rangle= J\bar{B}^{\dagger}|\eta\rangle ∣ a ⟩ = J B ˉ † ∣ η ⟩ . By Equation (24) , f ( 2 n − d + 1 ) ≤ 1 / [ 2 ( 2 n − q ) ] f(2^n-d+1) \le1/[2(2^n-q)] f ( 2 n − d + 1 ) ≤ 1/ [ 2 ( 2 n − q )] . After deletion, L L L has size at most q − 1 q-1 q − 1 , so, for q ≥ 1 q \ge1 q ≥ 1 ,
∥ a ∥ 2 2 ≤ q ∥ B ˉ † η ∥ 2 2 ≤ q ∥ η ∥ 2 2 = q 2 n + 1 ∑ c , r , h , x , L , R x ≠ x 0 , c , x 0 , c ∉ Dom ( L ∪ R ) f ( 2 n − d + 1 ) 2 ∥ α c , r , x , L , R ∥ 2 2 ≤ q 4 ( 2 n − q ) 2 ∥ ϕ ∥ 2 2 . \lVert a\rVert_2^2 \le q\lVert\bar{B}^{\dagger}\eta\rVert_2^2 \le q\lVert\eta\rVert_2^2
= \frac{q}{2^{n+1}}\sum_{\substack{c,r,h,x,L,R\\x\ne x_{0,c},\ x_{0,c}\notin\operatorname{Dom}(L\cup R)}} f(2^n-d+1)^2\lVert\alpha_{c,r,x,L,R}\rVert_2^2
\le\frac{q}{4(2^n-q)^2}\lVert\phi\rVert_2^2. ∥ a ∥ 2 2 ≤ q ∥ B ˉ † η ∥ 2 2 ≤ q ∥ η ∥ 2 2 = 2 n + 1 q c , r , h , x , L , R x = x 0 , c , x 0 , c ∈ / Dom ( L ∪ R ) ∑ f ( 2 n − d + 1 ) 2 ∥ α c , r , x , L , R ∥ 2 2 ≤ 4 ( 2 n − q ) 2 q ∥ ϕ ∥ 2 2 .
For q = 0 q=0 q = 0 , ∣ a ⟩ = 0 |a\rangle=0 ∣ a ⟩ = 0 .
Deletion of the inserted pair. In ∣ b ⟩ |b\rangle ∣ b ⟩ , the final query label ( r , h ) (r,h) ( r , h ) fixes r , h r,h r , h , while the two values of c c c can give the same output labels. By Equations (9) and (25) ,
∥ b ∥ 2 2 = 1 2 n + 1 ∑ r , h , L , R ∥ ∑ c ∈ { 0 , 1 } x 0 , c ∉ Dom ( L ∪ R ) α c , r , x 0 , c , L , R 2 n − d ∥ 2 2 ≤ 2 2 n + 1 ( 2 n − q ) ∑ c , r , h , L , R ∥ α c , r , x 0 , c , L , R ∥ 2 2 ≤ 2 2 n − q ⋅ 1 2 n + 1 ∑ c , r , h , x , L , R ∥ α c , r , x , L , R ∥ 2 2 = 2 2 n − q ∥ ϕ ∥ 2 2 . \lVert b\rVert_2^2 = \frac{1}{2^{n+1}}\sum_{r,h,L,R}\left\lVert\sum_{\substack{c\in\{0,1\}\\x_{0,c}\notin\operatorname{Dom}(L\cup R)}}\frac{\alpha_{c,r,x_{0,c},L,R}}{\sqrt{2^n-d}}\right\rVert_2^2
\le\frac{2}{2^{n+1}(2^n-q)}\sum_{c,r,h,L,R}\lVert\alpha_{c,r,x_{0,c},L,R}\rVert_2^2
\le\frac{2}{2^n-q}\cdot\frac{1}{2^{n+1}}\sum_{c,r,h,x,L,R}\lVert\alpha_{c,r,x,L,R}\rVert_2^2
= \frac{2}{2^n-q}\lVert\phi\rVert_2^2. ∥ b ∥ 2 2 = 2 n + 1 1 r , h , L , R ∑ c ∈ { 0 , 1 } x 0 , c ∈ / Dom ( L ∪ R ) ∑ 2 n − d α c , r , x 0 , c , L , R 2 2 ≤ 2 n + 1 ( 2 n − q ) 2 c , r , h , L , R ∑ ∥ α c , r , x 0 , c , L , R ∥ 2 2 ≤ 2 n − q 2 ⋅ 2 n + 1 1 c , r , h , x , L , R ∑ ∥ α c , r , x , L , R ∥ 2 2 = 2 n − q 2 ∥ ϕ ∥ 2 2 .
Blocked deletion. For ∣ c ⟩ |c\rangle ∣ c ⟩ , fix the final labels ( y , h , L ′ , R ) (y,h,L',R) ( y , h , L ′ , R ) . For each c ∈ { 0 , 1 } c\in\{0,1\} c ∈ { 0 , 1 } , e 0 e_0 e 0 is the unique pair in L ′ L' L ′ with input x 0 , c x_{0,c} x 0 , c . Its output fixes r , h r,h r , h , and
L = ( L ′ ∖ { e 0 } ) ∪ { ( x 0 , c , y ) } , input query label = x 0 , c . L=(L'\setminus\{e_0\})\cup\{(x_{0,c},y)\},\qquad\text{input query label}=x_{0,c}. L = ( L ′ ∖ { e 0 }) ∪ {( x 0 , c , y )} , input query label = x 0 , c .
Thus there are at most two choices of old labels. Write
μ = ( c , r , h , y , L , R ) , λ μ = ( y , h , ( L ∖ { ( x 0 , c , y ) } ) ∪ { e 0 } , R ) . \mu=(c,r,h,y,L,R),\qquad\lambda_\mu=(y,h,(L\setminus\{(x_{0,c},y)\})\cup\{e_0\},R). μ = ( c , r , h , y , L , R ) , λ μ = ( y , h , ( L ∖ {( x 0 , c , y )}) ∪ { e 0 } , R ) .
Here μ \mu μ ranges over the terms in the sum defining ∣ c ⟩ |c\rangle ∣ c ⟩ . Let α μ = α c , r , x 0 , c , L , R \alpha_\mu=\alpha_{c,r,x_{0,c},L,R} α μ = α c , r , x 0 , c , L , R and d μ = ∣ Dom ( L ∪ R ) ∣ d_\mu=|\operatorname{Dom}(L\cup R)| d μ = ∣ Dom ( L ∪ R ) ∣ . For fixed L , x 0 , c L,x_{0,c} L , x 0 , c , at most one y y y satisfies the deletion condition, so enlarging the sum does not count any coefficient twice. By Equation (26) ,
∥ c ∥ 2 2 = 1 2 n + 1 ∑ λ ∥ ∑ μ : λ μ = λ α μ 2 n − d μ + 1 ∥ 2 2 ≤ 1 2 n + 1 ∑ μ ∥ α μ ∥ 2 2 2 n − d μ + 1 ∑ λ : λ μ = λ 1 ≤ 2 2 n + 1 ∑ c , r , h , y , L , R ( x 0 , c , y ) ∈ L x 0 , c ∉ Dom ( ( L ∖ { ( x 0 , c , y ) } ) ∪ R ) ∥ α c , r , x 0 , c , L , R ∥ 2 2 2 n − d + 1 ≤ 2 2 n − q + 1 ⋅ 1 2 n + 1 ∑ c , r , h , x , L , R ∥ α c , r , x , L , R ∥ 2 2 = 2 2 n − q + 1 ∥ ϕ ∥ 2 2 . \begin{aligned}
\lVert c\rVert_2^2=\frac{1}{2^{n+1}}\sum_{\lambda}\left\lVert\sum_{\mu:\lambda_\mu=\lambda}\frac{\alpha_\mu}{\sqrt{2^n-d_\mu+1}}\right\rVert_2^2
\le\frac{1}{2^{n+1}}\sum_{\mu}\frac{\lVert\alpha_\mu\rVert_2^2}{2^n-d_\mu+1}\sum_{\lambda:\lambda_\mu=\lambda}1
\le\frac{2}{2^{n+1}}\sum_{\substack{c,r,h,y,L,R\\(x_{0,c},y)\in L\\x_{0,c}\notin\operatorname{Dom}((L\setminus\{(x_{0,c},y)\})\cup R)}}\frac{\lVert\alpha_{c,r,x_{0,c},L,R}\rVert_2^2}{2^n-d+1} \\
&\le\frac{2}{2^n-q+1}\cdot\frac{1}{2^{n+1}}\sum_{c,r,h,x,L,R}\lVert\alpha_{c,r,x,L,R}\rVert_2^2 \\
&= \frac{2}{2^n-q+1}\lVert\phi\rVert_2^2.
\end{aligned} ∥ c ∥ 2 2 = 2 n + 1 1 λ ∑ μ : λ μ = λ ∑ 2 n − d μ + 1 α μ 2 2 ≤ 2 n + 1 1 μ ∑ 2 n − d μ + 1 ∥ α μ ∥ 2 2 λ : λ μ = λ ∑ 1 ≤ 2 n + 1 2 c , r , h , y , L , R ( x 0 , c , y ) ∈ L x 0 , c ∈ / Dom (( L ∖ {( x 0 , c , y )}) ∪ R ) ∑ 2 n − d + 1 ∥ α c , r , x 0 , c , L , R ∥ 2 2 ≤ 2 n − q + 1 2 ⋅ 2 n + 1 1 c , r , h , x , L , R ∑ ∥ α c , r , x , L , R ∥ 2 2 = 2 n − q + 1 2 ∥ ϕ ∥ 2 2 .
The triangle inequality gives
∥ [ B ˉ † , J ] ϕ ∥ 2 ≤ ∥ a ∥ 2 + ∥ b ∥ 2 + ∥ c ∥ 2 ≤ ( q 2 ( 2 n − q ) + 2 2 n − q + 2 2 n − q + 1 ) ∥ ϕ ∥ 2 . \begin{aligned}
\lVert[\bar{B}^{\dagger},J]\phi\rVert_2\le\lVert a\rVert_2+\lVert b\rVert_2+\lVert c\rVert_2 \\
&\le\left(\frac{\sqrt{q}}{2(2^n-q)}+\sqrt{\frac{2}{2^n-q}}+\sqrt{\frac{2}{2^n-q+1}}\right)\lVert\phi\rVert_2.
\end{aligned} ∥[ B ˉ † , J ] ϕ ∥ 2 ≤ ∥ a ∥ 2 + ∥ b ∥ 2 + ∥ c ∥ 2 ≤ ( 2 ( 2 n − q ) q + 2 n − q 2 + 2 n − q + 1 2 ) ∥ ϕ ∥ 2 .
Constants in the recording comparison
Lemmas A.1 to A.8 give ∥ [ X , J ] ϕ ∥ 2 ≤ ϵ X ∥ ϕ ∥ 2 \lVert[X,J]\phi\rVert_2\le\epsilon_X\lVert\phi\rVert_2 ∥[ X , J ] ϕ ∥ 2 ≤ ϵ X ∥ ϕ ∥ 2 . Taking nonnegative square roots where needed, the coefficients are
ϵ A 2 = 2 2 n − q + q + 2 4 ( 2 n − q − 1 ) 2 , \epsilon_A^2=\frac{2}{2^n-q}+\frac{q+2}{4(2^n-q-1)^2}, ϵ A 2 = 2 n − q 2 + 4 ( 2 n − q − 1 ) 2 q + 2 ,
ϵ B 2 = 1 2 n − q + q + 1 4 ( 2 n − q − 1 ) 2 , \epsilon_B^2=\frac{1}{2^n-q}+\frac{q+1}{4(2^n-q-1)^2}, ϵ B 2 = 2 n − q 1 + 4 ( 2 n − q − 1 ) 2 q + 1 ,
ϵ A † = q 2 ( 2 n − q ) + 1 2 ∣ H ∣ 2 n 2 n − q + q 2 ∣ H ∣ ( 2 n − q + 1 ) , \epsilon_{A^{\dagger}}=\frac{\sqrt{q}}{2(2^n-q)}+\frac{1}{2|H|}\sqrt{\frac{2^n}{2^n-q}}+\sqrt{\frac{q}{2|H|(2^n-q+1)}}, ϵ A † = 2 ( 2 n − q ) q + 2∣ H ∣ 1 2 n − q 2 n + 2∣ H ∣ ( 2 n − q + 1 ) q ,
ϵ B † = q + 1 2 ( 2 n − q ) + 2 2 n − q + 1 , \epsilon_{B^{\dagger}}=\frac{\sqrt{q+1}}{2(2^n-q)}+\sqrt{\frac{2}{2^n-q+1}}, ϵ B † = 2 ( 2 n − q ) q + 1 + 2 n − q + 1 2 ,
ϵ A ˉ = ϵ B , ϵ B ˉ = ϵ A , \epsilon_{\bar{A}}=\epsilon_B,\qquad\epsilon_{\bar{B}}=\epsilon_A, ϵ A ˉ = ϵ B , ϵ B ˉ = ϵ A ,
ϵ A ˉ † = q 2 ( 2 n − q ) + q 2 ∣ H ∣ ( 2 n − q + 1 ) , \epsilon_{\bar{A}^{\dagger}}=\frac{\sqrt{q}}{2(2^n-q)}+\sqrt{\frac{q}{2|H|(2^n-q+1)}}, ϵ A ˉ † = 2 ( 2 n − q ) q + 2∣ H ∣ ( 2 n − q + 1 ) q ,
ϵ B ˉ † = q 2 ( 2 n − q ) + 2 2 n − q + 2 2 n − q + 1 . (34) \epsilon_{\bar{B}^{\dagger}}=\frac{\sqrt{q}}{2(2^n-q)}+\sqrt{\frac{2}{2^n-q}}+\sqrt{\frac{2}{2^n-q+1}}. \tag*{(34)} ϵ B ˉ † = 2 ( 2 n − q ) q + 2 n − q 2 + 2 n − q + 1 2 . (34)
The following expansions give the four commutator coefficients used in Equations (14) and (15) . Expanding the definitions and taking their adjoints gives
V = A − A B B † + B † − A A † B † , V=A-ABB^{\dagger}+B^{\dagger}-AA^{\dagger}B^{\dagger}, V = A − A B B † + B † − A A † B † ,
V † = A † − B B † A † + B − B A A † , V^{\dagger}=A^{\dagger}-BB^{\dagger}A^{\dagger}+B-BAA^{\dagger}, V † = A † − B B † A † + B − B A A † ,
V ˉ = A ˉ − A ˉ B ˉ B ˉ † + B ˉ † − A ˉ A ˉ † B ˉ † , \bar{V}=\bar{A}-\bar{A}\bar{B}\bar{B}^{\dagger}+\bar{B}^{\dagger}-\bar{A}\bar{A}^{\dagger}\bar{B}^{\dagger}, V ˉ = A ˉ − A ˉ B ˉ B ˉ † + B ˉ † − A ˉ A ˉ † B ˉ † ,
V ˉ † = A ˉ † − B ˉ B ˉ † A ˉ † + B ˉ − B ˉ A ˉ A ˉ † . \bar{V}^{\dagger}=\bar{A}^{\dagger}-\bar{B}\bar{B}^{\dagger}\bar{A}^{\dagger}+\bar{B}-\bar{B}\bar{A}\bar{A}^{\dagger}. V ˉ † = A ˉ † − B ˉ B ˉ † A ˉ † + B ˉ − B ˉ A ˉ A ˉ † .
Since
[ X Y , J ] = X Y J − J X Y = X ( Y J − J Y ) + ( X J − J X ) Y = X [ Y , J ] + [ X , J ] Y , [XY,J]=XYJ-JXY=X(YJ-JY)+(XJ-JX)Y=X[Y,J]+[X,J]Y, [ X Y , J ] = X Y J − J X Y = X ( Y J − J Y ) + ( X J − J X ) Y = X [ Y , J ] + [ X , J ] Y ,
we obtain
[ V , J ] = [ A , J ] − A B [ B † , J ] − A [ B , J ] B † − [ A , J ] B B † + [ B † , J ] − A A † [ B † , J ] − A [ A † , J ] B † − [ A , J ] A † B † , [ V † , J ] = [ A † , J ] − B B † [ A † , J ] − B [ B † , J ] A † − [ B , J ] B † A † + [ B , J ] − B A [ A † , J ] − B [ A , J ] A † − [ B , J ] A A † , [ V ‾ , J ] = [ A ‾ , J ] − A ‾ B ‾ [ B ‾ † , J ] − A ‾ [ B ‾ , J ] B ‾ † − [ A ‾ , J ] B ‾ B ‾ † + [ B ‾ † , J ] − A ‾ A ‾ † [ B ‾ † , J ] − A ‾ [ A ‾ † , J ] B ‾ † − [ A ‾ , J ] A ‾ † B ‾ † , [ V ‾ † , J ] = [ A ‾ † , J ] − B ‾ B ‾ † [ A ‾ † , J ] − B ‾ [ B ‾ † , J ] A ‾ † − [ B ‾ , J ] B ‾ † A ‾ † + [ B ‾ , J ] − B ‾ A ‾ [ A ‾ † , J ] − B ‾ [ A ‾ , J ] A ‾ † − [ B ‾ , J ] A ‾ A ‾ † . \begin{aligned}
[V,J] &= [A,J]-AB[B^\dagger,J]-A[B,J]B^\dagger-[A,J]BB^\dagger\\
&\quad+[B^\dagger,J]-AA^\dagger[B^\dagger,J]-A[A^\dagger,J]B^\dagger-[A,J]A^\dagger B^\dagger,\\
[V^\dagger,J] &= [A^\dagger,J]-BB^\dagger[A^\dagger,J]-B[B^\dagger,J]A^\dagger-[B,J]B^\dagger A^\dagger\\
&\quad+[B,J]-BA[A^\dagger,J]-B[A,J]A^\dagger-[B,J]AA^\dagger,\\
[\overline{V},J] &= [\overline{A},J]-\overline{A}\overline{B}[\overline{B}^\dagger,J]-\overline{A}[\overline{B},J]\overline{B}^\dagger-[\overline{A},J]\overline{B}\overline{B}^\dagger\\
&\quad+[\overline{B}^\dagger,J]-\overline{A}\overline{A}^\dagger[\overline{B}^\dagger,J]-\overline{A}[\overline{A}^\dagger,J]\overline{B}^\dagger-[\overline{A},J]\overline{A}^\dagger\overline{B}^\dagger,\\
[\overline{V}^\dagger,J] &= [\overline{A}^\dagger,J]-\overline{B}\overline{B}^\dagger[\overline{A}^\dagger,J]-\overline{B}[\overline{B}^\dagger,J]\overline{A}^\dagger-[\overline{B},J]\overline{B}^\dagger\overline{A}^\dagger\\
&\quad+[\overline{B},J]-\overline{B}\overline{A}[\overline{A}^\dagger,J]-\overline{B}[\overline{A},J]\overline{A}^\dagger-[\overline{B},J]\overline{A}\overline{A}^\dagger.
\end{aligned} [ V , J ] [ V † , J ] [ V , J ] [ V † , J ] = [ A , J ] − A B [ B † , J ] − A [ B , J ] B † − [ A , J ] B B † + [ B † , J ] − A A † [ B † , J ] − A [ A † , J ] B † − [ A , J ] A † B † , = [ A † , J ] − B B † [ A † , J ] − B [ B † , J ] A † − [ B , J ] B † A † + [ B , J ] − B A [ A † , J ] − B [ A , J ] A † − [ B , J ] A A † , = [ A , J ] − A B [ B † , J ] − A [ B , J ] B † − [ A , J ] B B † + [ B † , J ] − A A † [ B † , J ] − A [ A † , J ] B † − [ A , J ] A † B † , = [ A † , J ] − B B † [ A † , J ] − B [ B † , J ] A † − [ B , J ] B † A † + [ B , J ] − B A [ A † , J ] − B [ A , J ] A † − [ B , J ] A A † .
The operators to the right of these commutators belong to
{ 1 , B † , B B † , A † B † , A † , B † A † , A A † } , \{1,B^\dagger,BB^\dagger,A^\dagger B^\dagger,A^\dagger,B^\dagger A^\dagger,AA^\dagger\}, { 1 , B † , B B † , A † B † , A † , B † A † , A A † } ,
{ 1 , B ‾ † , B ‾ B ‾ † , A ‾ † B ‾ † , A ‾ † , B ‾ † A ‾ † , A ‾ A ‾ † } . \{1,\overline{B}^\dagger,\overline{B}\overline{B}^\dagger,\overline{A}^\dagger\overline{B}^\dagger,\overline{A}^\dagger,\overline{B}^\dagger\overline{A}^\dagger,\overline{A}\overline{A}^\dagger\}. { 1 , B † , B B † , A † B † , A † , B † A † , A A † } .
Their norms are at most one, they act trivially on H E 0 \mathrm{HE}_0 HE 0 , and they do not increase ∣ L ∪ R ∣ |L\cup R| ∣ L ∪ R ∣ . Indeed, a deletion reduces the total size by one, and a deletion followed by a creation preserves it. Thus each resulting state still has the form in Equation (8) . The operators to the left have norm at most one as well. The triangle inequality and the eight commutator bounds give
∥ [ V , J ] ϕ ∥ 2 ≤ ( 3 ϵ A + ϵ B + ϵ A † + 3 ϵ B † ) ∥ ϕ ∥ 2 , ∥ [ V † , J ] ϕ ∥ 2 ≤ ( ϵ A + 3 ϵ B + 3 ϵ A † + ϵ B † ) ∥ ϕ ∥ 2 , ∥ [ V ‾ , J ] ϕ ∥ 2 ≤ ( 3 ϵ A ‾ + ϵ B ‾ + ϵ A ‾ † + 3 ϵ B ‾ † ) ∥ ϕ ∥ 2 , ∥ [ V ‾ † , J ] ϕ ∥ 2 ≤ ( ϵ A ‾ + 3 ϵ B ‾ + 3 ϵ A ‾ † + ϵ B ‾ † ) ∥ ϕ ∥ 2 . \begin{aligned}
\|[V,J]\phi\|_2 &\le(3\epsilon_A+\epsilon_B+\epsilon_{A^\dagger}+3\epsilon_{B^\dagger})\|\phi\|_2,\\
\|[V^\dagger,J]\phi\|_2 &\le(\epsilon_A+3\epsilon_B+3\epsilon_{A^\dagger}+\epsilon_{B^\dagger})\|\phi\|_2,\\
\|[\overline{V},J]\phi\|_2 &\le(3\epsilon_{\overline{A}}+\epsilon_{\overline{B}}+\epsilon_{\overline{A}^\dagger}+3\epsilon_{\overline{B}^\dagger})\|\phi\|_2,\\
\|[\overline{V}^\dagger,J]\phi\|_2 &\le(\epsilon_{\overline{A}}+3\epsilon_{\overline{B}}+3\epsilon_{\overline{A}^\dagger}+\epsilon_{\overline{B}^\dagger})\|\phi\|_2.
\end{aligned} ∥ [ V , J ] ϕ ∥ 2 ∥ [ V † , J ] ϕ ∥ 2 ∥ [ V , J ] ϕ ∥ 2 ∥ [ V † , J ] ϕ ∥ 2 ≤ ( 3 ϵ A + ϵ B + ϵ A † + 3 ϵ B † ) ∥ ϕ ∥ 2 , ≤ ( ϵ A + 3 ϵ B + 3 ϵ A † + ϵ B † ) ∥ ϕ ∥ 2 , ≤ ( 3 ϵ A + ϵ B + ϵ A † + 3 ϵ B † ) ∥ ϕ ∥ 2 , ≤ ( ϵ A + 3 ϵ B + 3 ϵ A † + ϵ B † ) ∥ ϕ ∥ 2 .
For example, the expansion of [ V , J ] [V,J] [ V , J ] has three terms containing [ A , J ] [A,J] [ A , J ] , one containing [ B , J ] [B,J] [ B , J ] , one containing [ A † , J ] [A^\dagger,J] [ A † , J ] , and three containing [ B † , J ] [B^\dagger,J] [ B † , J ] . Since ∥ ϕ t ′ ∥ 2 ≤ 1 \|\phi'_t\|_2\le1 ∥ ϕ t ′ ∥ 2 ≤ 1 , these coefficients bound each query error in the telescoping identity.
Bounds on the commutator constants
Proof of Lemma 4.2. For 1 ≤ q < 2 ∣ H ∣ 1\le q<2^{|H|} 1 ≤ q < 2 ∣ H ∣ and ∣ R ∣ ≥ ∣ H ∣ |R|\ge|H| ∣ R ∣ ≥ ∣ H ∣ , we have ∣ H ∣ ≥ 1 |H|\ge1 ∣ H ∣ ≥ 1 , n ≥ 2 n\ge2 n ≥ 2 , and
2 n ≥ 2 2 ∣ H ∣ , q ≤ 2 ∣ H ∣ − 1 ≤ 2 2 ∣ H ∣ 4 ≤ 2 n − 2 . 2^n\ge2^{2|H|},\qquad q\le2^{|H|}-1\le\frac{2^{2|H|}}{4}\le2^{n-2}. 2 n ≥ 2 2∣ H ∣ , q ≤ 2 ∣ H ∣ − 1 ≤ 4 2 2∣ H ∣ ≤ 2 n − 2 .
The middle inequality follows from ( 2 ∣ H ∣ − 2 ) 2 ≥ 0 (2^{|H|}-2)^2\ge0 ( 2 ∣ H ∣ − 2 ) 2 ≥ 0 . Consequently,
2 n − q ≥ 3 4 2 n ≥ 2 n − 1 , 2^n-q\ge\frac{3}{4}2^n\ge2^{n-1}, 2 n − q ≥ 4 3 2 n ≥ 2 n − 1 ,
2 n − q − 1 ≥ 3 4 2 n − 1 ≥ 2 n − 1 , 2^n-q-1\ge\frac{3}{4}2^n-1\ge2^{n-1}, 2 n − q − 1 ≥ 4 3 2 n − 1 ≥ 2 n − 1 ,
2 n − q + 1 ≥ 3 4 2 n , 2^n-q+1\ge\frac{3}{4}2^n, 2 n − q + 1 ≥ 4 3 2 n ,
q + 1 ≤ 2 ∣ H ∣ ≤ 2 n − 1 , q + 2 ≤ 2 ∣ H ∣ + 1 ≤ 2 n . q+1\le2^{|H|}\le2^{n-1},\qquad q+2\le2^{|H|}+1\le2^n. q + 1 ≤ 2 ∣ H ∣ ≤ 2 n − 1 , q + 2 ≤ 2 ∣ H ∣ + 1 ≤ 2 n .
Here n ≥ 2 n \ge2 n ≥ 2 , so 2 n / 4 ≥ 1 2^{n}/4 \ge1 2 n /4 ≥ 1 . Using the weaker denominator bounds 2 n − q , 2 n − q − 1 ≥ 2 n − 1 2^{n}-q, 2^{n}-q-1 \ge2^{n-1} 2 n − q , 2 n − q − 1 ≥ 2 n − 1 first,
ε A 2 ≤ 2 2 n + 4 2 2 n + q + 2 2 2 n ≤ 5 2 n , ε B 2 ≤ 2 2 n + 2 2 2 n + q + 1 2 2 n ≤ 3 2 n , ε A ≤ 5 2 n / 2 ≤ 3 2 ∣ H ∣ , ε B ≤ 3 2 n / 2 ≤ 2 2 ∣ H ∣ . \begin{aligned}
\varepsilon_A^2 &\le\frac{2}{2^n}+\frac{4}{2^{2n}}+\frac{q+2}{2^{2n}}\le\frac{5}{2^n},\\
\varepsilon_B^2 &\le\frac{2}{2^n}+\frac{2}{2^{2n}}+\frac{q+1}{2^{2n}}\le\frac{3}{2^n},\\
\varepsilon_A &\le\frac{\sqrt{5}}{2^{n/2}}\le\frac{3}{2|\mathrm{H}|},\qquad
\varepsilon_B\le\frac{\sqrt{3}}{2^{n/2}}\le\frac{2}{2|\mathrm{H}|}.
\end{aligned} ε A 2 ε B 2 ε A ≤ 2 n 2 + 2 2 n 4 + 2 2 n q + 2 ≤ 2 n 5 , ≤ 2 n 2 + 2 2 n 2 + 2 2 n q + 1 ≤ 2 n 3 , ≤ 2 n /2 5 ≤ 2∣ H ∣ 3 , ε B ≤ 2 n /2 3 ≤ 2∣ H ∣ 2 .
Also,
q 2 ( 2 n − q ) ≤ 2 n − 1 2 n = 1 2 ⋅ 2 n , \frac{\sqrt{q}}{2(2^n-q)}\le\frac{\sqrt{2^{n-1}}}{2^n}=\frac{1}{\sqrt{2\cdot2^n}}, 2 ( 2 n − q ) q ≤ 2 n 2 n − 1 = 2 ⋅ 2 n 1 ,
q + 1 2 ( 2 n − q ) ≤ 1 2 ⋅ 2 n , \frac{\sqrt{q+1}}{2(2^n-q)}\le\frac{1}{\sqrt{2\cdot2^n}}, 2 ( 2 n − q ) q + 1 ≤ 2 ⋅ 2 n 1 ,
q 2 ∣ H ∣ ( 2 n − q + 1 ) ≤ 2 ∣ H ∣ 2 ∣ H ∣ 2 n − 1 = 2 2 n , \sqrt{\frac{q}{2^{|\mathrm{H}|}(2^n-q+1)}}\le\sqrt{\frac{2|\mathrm{H}|}{2^{|\mathrm{H}|}2^{n-1}}}=\sqrt{\frac{2}{2^n}}, 2 ∣ H ∣ ( 2 n − q + 1 ) q ≤ 2 ∣ H ∣ 2 n − 1 2∣ H ∣ = 2 n 2 ,
2 n 2 n − q ≤ 2 , 2 2 n − q + 1 ≤ 2 2 n / 2 . \sqrt{\frac{2^n}{2^n-q}}\le\sqrt{2},\qquad
\sqrt{\frac{2}{2^n-q+1}}\le\frac{2}{2^{n/2}}. 2 n − q 2 n ≤ 2 , 2 n − q + 1 2 ≤ 2 n /2 2 .
Therefore
ε A † ≤ 1 2 ⋅ 2 n + 2 2 ∣ H ∣ + 2 2 n ≤ 5 2 2 ∣ H ∣ ≤ 4 2 ∣ H ∣ , \varepsilon_{A^\dagger}\le\frac{1}{\sqrt{2\cdot2^n}}+\frac{\sqrt{2}}{2|\mathrm{H}|}+\sqrt{\frac{2}{2^n}}\le\frac{5}{\sqrt{2}\,2|\mathrm{H}|}\le\frac{4}{2|\mathrm{H}|}, ε A † ≤ 2 ⋅ 2 n 1 + 2∣ H ∣ 2 + 2 n 2 ≤ 2 2∣ H ∣ 5 ≤ 2∣ H ∣ 4 ,
ε B † ≤ 1 2 ⋅ 2 n + 2 2 n / 2 ≤ 3 2 ∣ H ∣ . \varepsilon_{B^\dagger}\le\frac{1}{\sqrt{2\cdot2^n}}+\frac{2}{2^{n/2}}\le\frac{3}{2|\mathrm{H}|}. ε B † ≤ 2 ⋅ 2 n 1 + 2 n /2 2 ≤ 2∣ H ∣ 3 .
For the conjugate terms, use 2 n − q , 2 n − q + 1 ≥ 3 ⋅ 2 n / 4 2^n-q, 2^n-q+1\ge3\cdot2^n/4 2 n − q , 2 n − q + 1 ≥ 3 ⋅ 2 n /4 :
q 2 ( 2 n − q ) ≤ 2 2 ∣ H ∣ 3 ⋅ 2 n ≤ 2 3 2 ∣ H ∣ 2 ∣ H ∣ ≤ 2 3 ⋅ 2 ∣ H ∣ , \frac{\sqrt{q}}{2(2^n-q)}\le\frac{2\sqrt{2|\mathrm{H}|}}{3\cdot2^n}\le\frac{2}{3\sqrt{2|\mathrm{H}|}\,2^{|\mathrm{H}|}}\le\frac{\sqrt{2}}{3\cdot2|\mathrm{H}|}, 2 ( 2 n − q ) q ≤ 3 ⋅ 2 n 2 2∣ H ∣ ≤ 3 2∣ H ∣ 2 ∣ H ∣ 2 ≤ 3 ⋅ 2∣ H ∣ 2 ,
q 2 ∣ H ∣ ( 2 n − q + 1 ) ≤ 2 3 2 n / 2 ≤ 2 3 2 ∣ H ∣ , \sqrt{\frac{q}{2|\mathrm{H}|(2^n-q+1)}}\le\frac{2}{\sqrt{3}\,2^{n/2}}\le\frac{2}{\sqrt{3}\,2|\mathrm{H}|}, 2∣ H ∣ ( 2 n − q + 1 ) q ≤ 3 2 n /2 2 ≤ 3 2∣ H ∣ 2 ,
2 2 n − q ≤ 8 / 3 2 n / 2 ≤ 8 / 3 2 ∣ H ∣ , \sqrt{\frac{2}{2^n-q}}\le\frac{\sqrt{8/3}}{2^{n/2}}\le\frac{\sqrt{8/3}}{2|\mathrm{H}|}, 2 n − q 2 ≤ 2 n /2 8/3 ≤ 2∣ H ∣ 8/3 ,
2 2 n − q + 1 ≤ 8 / 3 2 n / 2 ≤ 8 / 3 2 ∣ H ∣ . \sqrt{\frac{2}{2^n-q+1}}\le\frac{\sqrt{8/3}}{2^{n/2}}\le\frac{\sqrt{8/3}}{2|\mathrm{H}|}. 2 n − q + 1 2 ≤ 2 n /2 8/3 ≤ 2∣ H ∣ 8/3 .
Since 2 ≤ 2 \sqrt{2}\le2 2 ≤ 2 , 2 / 3 ≤ 4 / 3 2/\sqrt{3}\le4/3 2/ 3 ≤ 4/3 , and 8 / 3 ≤ 5 / 3 \sqrt{8/3}\le5/3 8/3 ≤ 5/3 , we obtain
ε A ˉ = ε B ≤ 2 2 ∣ H ∣ , ε B ˉ = ε A ≤ 3 2 ∣ H ∣ , \varepsilon_{\bar A}=\varepsilon_B\le\frac{2}{2|\mathrm{H}|},\qquad
\varepsilon_{\bar B}=\varepsilon_A\le\frac{3}{2|\mathrm{H}|}, ε A ˉ = ε B ≤ 2∣ H ∣ 2 , ε B ˉ = ε A ≤ 2∣ H ∣ 3 ,
ε A ˉ † ≤ 2 / 3 + 2 / 3 2 ∣ H ∣ ≤ 2 / 3 + 4 / 3 2 ∣ H ∣ = 2 2 ∣ H ∣ , \varepsilon_{\bar A^\dagger}\le\frac{\sqrt{2}/3+2/\sqrt{3}}{2|\mathrm{H}|}\le\frac{2/3+4/3}{2|\mathrm{H}|}=\frac{2}{2|\mathrm{H}|}, ε A ˉ † ≤ 2∣ H ∣ 2 /3 + 2/ 3 ≤ 2∣ H ∣ 2/3 + 4/3 = 2∣ H ∣ 2 ,
ε B ˉ † ≤ 2 / 3 + 2 8 / 3 2 ∣ H ∣ ≤ 2 / 3 + 10 / 3 2 ∣ H ∣ = 4 2 ∣ H ∣ . \varepsilon_{\bar B^\dagger}\le\frac{\sqrt{2}/3+2\sqrt{8/3}}{2|\mathrm{H}|}\le\frac{2/3+10/3}{2|\mathrm{H}|}=\frac{4}{2|\mathrm{H}|}. ε B ˉ † ≤ 2∣ H ∣ 2 /3 + 2 8/3 ≤ 2∣ H ∣ 2/3 + 10/3 = 2∣ H ∣ 4 .
Squaring the three positive inequalities gives 2 ≤ 4 2 \le4 2 ≤ 4 , 12 ≤ 16 12 \le16 12 ≤ 16 , and 24 ≤ 25 24 \le25 24 ≤ 25 , respectively. Substituting these bounds in the four query estimates gives
3 ϵ A + ϵ B + ϵ A † + 3 ϵ B † ≤ 3 ⋅ 3 + 2 + 4 + 3 ⋅ 3 2 ∣ H ∣ = 24 2 ∣ H ∣ , ϵ A + 3 ϵ B + 3 ϵ A † + ϵ B † ≤ 3 + 3 ⋅ 2 + 3 ⋅ 4 + 3 2 ∣ H ∣ = 24 2 ∣ H ∣ , 3 ϵ A ‾ + ϵ B ‾ + ϵ A † ‾ + 3 ϵ B † ‾ ≤ 3 ⋅ 2 + 3 + 2 + 3 ⋅ 4 2 ∣ H ∣ = 23 2 ∣ H ∣ , ϵ A ‾ + 3 ϵ B ‾ + 3 ϵ A † ‾ + ϵ B † ‾ ≤ 2 + 3 ⋅ 3 + 3 ⋅ 2 + 4 2 ∣ H ∣ = 21 2 ∣ H ∣ . \begin{aligned}
3\epsilon_A+\epsilon_B+\epsilon_{A^\dagger}+3\epsilon_{B^\dagger} &\le\frac{3\cdot3+2+4+3\cdot3}{2^{|H|}}=\frac{24}{2^{|H|}},\\
\epsilon_A+3\epsilon_B+3\epsilon_{A^\dagger}+\epsilon_{B^\dagger} &\le\frac{3+3\cdot2+3\cdot4+3}{2^{|H|}}=\frac{24}{2^{|H|}},\\
3\epsilon_{\overline{A}}+\epsilon_{\overline{B}}+\epsilon_{\overline{A^\dagger}}+3\epsilon_{\overline{B^\dagger}} &\le\frac{3\cdot2+3+2+3\cdot4}{2^{|H|}}=\frac{23}{2^{|H|}},\\
\epsilon_{\overline{A}}+3\epsilon_{\overline{B}}+3\epsilon_{\overline{A^\dagger}}+\epsilon_{\overline{B^\dagger}} &\le\frac{2+3\cdot3+3\cdot2+4}{2^{|H|}}=\frac{21}{2^{|H|}}.
\end{aligned} 3 ϵ A + ϵ B + ϵ A † + 3 ϵ B † ϵ A + 3 ϵ B + 3 ϵ A † + ϵ B † 3 ϵ A + ϵ B + ϵ A † + 3 ϵ B † ϵ A + 3 ϵ B + 3 ϵ A † + ϵ B † ≤ 2 ∣ H ∣ 3 ⋅ 3 + 2 + 4 + 3 ⋅ 3 = 2 ∣ H ∣ 24 , ≤ 2 ∣ H ∣ 3 + 3 ⋅ 2 + 3 ⋅ 4 + 3 = 2 ∣ H ∣ 24 , ≤ 2 ∣ H ∣ 3 ⋅ 2 + 3 + 2 + 3 ⋅ 4 = 2 ∣ H ∣ 23 , ≤ 2 ∣ H ∣ 2 + 3 ⋅ 3 + 3 ⋅ 2 + 4 = 2 ∣ H ∣ 21 .
Thus all four query errors have coefficient at most 24 / 2 ∣ H ∣ 24/2^{|H|} 24/ 2 ∣ H ∣ , as claimed in Equation (14) .
Query-bound reductions
The controlled-query replacement preserves both Haar-averaged experiment states with the same query count. We prove this equality here and verify the constants in Corollary 3.5.
Controlled queries
Proof of Corollary 3.3. At q = 0 q=0 q = 0 there are no queries to replace. For q ≥ 1 q\ge1 q ≥ 1 , fix the query types U 1 , … , U q U_1,\ldots,U_q U 1 , … , U q and put
σ i = { 1 , U i ∈ { U , U T } , − 1 , U i ∈ { U T , U ∗ } . \sigma_i=
\begin{cases}
1, & U_i\in\{U,U^{\mathsf T}\},\\
-1, & U_i\in\{U^{\mathsf T},U^*\}.
\end{cases} σ i = { 1 , − 1 , U i ∈ { U , U T } , U i ∈ { U T , U ∗ } .
Fix either experiment and purify its input, including all reference registers.
Grouping the control branches. Expand each controlled query as the sum of its two control branches. A choice b = ( b 1 , … , b q ) ∈ { 0 , 1 } q b=(b_1,\ldots,b_q)\in\{0,1\}^q b = ( b 1 , … , b q ) ∈ { 0 , 1 } q has signed query count ∑ i σ i b i \sum_i\sigma_i b_i ∑ i σ i b i . Grouping these terms by signed count gives the original output vector
∑ k = − q q ∣ v k ( U ) ⟩ . \sum_{k=-q}^{q}|v_k(U)\rangle. k = − q ∑ q ∣ v k ( U )⟩ .
Each term is linear in the initial input vector.
The uncontrolled circuit. We use the construction of Tang–Wright [33 Theorem 1.1 and Claim 2.6] , with a counter taken modulo 2 q + 1 2q+1 2 q + 1 and a fixed maximally entangled auxiliary pair. On an active branch, the query acts on Q Q Q and the counter changes by σ i \sigma_i σ i . On an inactive branch, controlled swaps route the same single query to the auxiliary pair. Forward and inverse queries use its first half; conjugate and transpose queries use its second half. Their Claim 2.6 gives the replacement output
∑ k = − q q ∣ v k ( U ) ⟩ ∣ k ⟩ ∣ w k ( U ) ⟩ , ∥ w k ( U ) ∥ 2 = 1. \sum_{k=-q}^{q}|v_k(U)\rangle|k\rangle|w_k(U)\rangle,\qquad\lVert w_k(U)\rVert_2=1. k = − q ∑ q ∣ v k ( U )⟩ ∣ k ⟩ ∣ w k ( U )⟩ , ∥ w k ( U ) ∥ 2 = 1.
For a fixed query schedule, the auxiliary vector depends only on U , k U,k U , k , not on the individual control choices with that count. Indeed,
∣ w k ( U ) ⟩ = ( U ∑ i = 1 q σ i − k ⊗ 1 ) 1 2 n ∑ x ∈ [ 2 n ] ∣ x , x ⟩ . |w_k(U)\rangle=\left(U^{\sum_{i=1}^{q}\sigma_i-k}\otimes1\right)\frac{1}{\sqrt{2^n}}\sum_{x\in[2^n]}|x,x\rangle. ∣ w k ( U )⟩ = ( U ∑ i = 1 q σ i − k ⊗ 1 ) 2 n 1 x ∈ [ 2 n ] ∑ ∣ x , x ⟩ .
Forward and inverse queries contribute their signed powers directly; conjugate and transpose queries contribute the same powers by ( 1 ⊗ U T ) ∑ x ∣ x , x ⟩ = ( U ⊗ 1 ) ∑ x ∣ x , x ⟩ (\mathbb{1} \otimes U^{\mathsf{T}})\sum_x |x,x\rangle= (U \otimes\mathbb{1})\sum_x |x,x\rangle ( 1 ⊗ U T ) ∑ x ∣ x , x ⟩ = ( U ⊗ 1 ) ∑ x ∣ x , x ⟩ and U ∗ = ( U † ) T U^* = (U^\dagger)^{\mathsf{T}} U ∗ = ( U † ) T . Thus the auxiliary vector has unit norm. The construction uses one uncontrolled query of the same type per original call. Its added gates and initial registers are independent of U U U and the input. The induction in Claim 2.6 is linear in the initial vector, so the same construction applies pointwise to the oracle-dependent real input and preserves arbitrary reference entanglement. Their Remark 2.7 also permits the real experiment’s uncontrolled preparation query to remain unchanged.
The counter labels in [ − q , q ] [-q,q] [ − q , q ] are distinct modulo 2 q + 1 2q+1 2 q + 1 . Tracing out the counter and auxiliary pair therefore leaves
∑ k = − q q ∣ v k ( U ) ⟩ ⟨ v k ( U ) ∣ . \sum_{k=-q}^{q} |v_k(U)\rangle\langle v_k(U)|. k = − q ∑ q ∣ v k ( U )⟩ ⟨ v k ( U ) ∣.
Equality after Haar averaging. It remains to compare this with the original Haar-averaged output. Replacing U U U by e i θ U e^{i\theta}U e i θ U multiplies query type i i i by e i σ i θ e^{i\sigma_i\theta} e i σ i θ . The mixed preparation is independent of U U U , and the real preparation acquires one common global phase. In either experiment, these preparation phases cancel in the outer product, so
∣ v k ( e i θ U ) ⟩ ⟨ v k ′ ( e i θ U ) ∣ = e i ( k − k ′ ) θ ∣ v k ( U ) ⟩ ⟨ v k ′ ( U ) ∣ . |v_k(e^{i\theta}U)\rangle\langle v_{k'}(e^{i\theta}U)| = e^{i(k-k')\theta}|v_k(U)\rangle\langle v_{k'}(U)|. ∣ v k ( e i θ U )⟩ ⟨ v k ′ ( e i θ U ) ∣ = e i ( k − k ′ ) θ ∣ v k ( U )⟩ ⟨ v k ′ ( U ) ∣.
Haar invariance now gives, for every θ \theta θ ,
E U ∣ v k ( U ) ⟩ ⟨ v k ′ ( U ) ∣ = e i ( k − k ′ ) θ E U ∣ v k ( U ) ⟩ ⟨ v k ′ ( U ) ∣ . \mathbb{E}_U |v_k(U)\rangle\langle v_{k'}(U)| = e^{i(k-k')\theta}\mathbb{E}_U |v_k(U)\rangle\langle v_{k'}(U)|. E U ∣ v k ( U )⟩ ⟨ v k ′ ( U ) ∣ = e i ( k − k ′ ) θ E U ∣ v k ( U )⟩ ⟨ v k ′ ( U ) ∣.
For k ≠ k ′ k \ne k' k = k ′ , choose θ \theta θ with e i ( k − k ′ ) θ ≠ 1 e^{i(k-k')\theta} \ne1 e i ( k − k ′ ) θ = 1 ; the expectation is then zero. Consequently,
E U ∑ k , k ′ ∣ v k ( U ) ⟩ ⟨ v k ′ ( U ) ∣ = E U ∑ k ∣ v k ( U ) ⟩ ⟨ v k ( U ) ∣ . \mathbb{E}_U \sum_{k,k'} |v_k(U)\rangle\langle v_{k'}(U)| = \mathbb{E}_U \sum_k |v_k(U)\rangle\langle v_k(U)|. E U k , k ′ ∑ ∣ v k ( U )⟩ ⟨ v k ′ ( U ) ∣ = E U k ∑ ∣ v k ( U )⟩ ⟨ v k ( U ) ∣.
Tracing out the experiment’s hidden registers preserves this equality. Thus the same replacement circuit preserves both averaged algorithm states with exactly q q q queries. Forward-only circuits remain forward-only. The bounds now follow from Theorem 3.1 and Corollary 3.2.
Constants in the query lower bounds
We give explicit constants for Corollary 3.5. For forward-only access, Equation (3) implies
Pr [ a = b ] − 1 2 ≤ 12 + 3 2 4 q 2 ∣ H ∣ . \Pr[a=b]-\frac{1}{2}\le\frac{12+3\sqrt{2}}{4}\frac{q}{2^{|H|}}. Pr [ a = b ] − 2 1 ≤ 4 12 + 3 2 2 ∣ H ∣ q .
Thus advantage at least η > 0 \eta>0 η > 0 requires q ≥ 4 η 2 ∣ H ∣ / ( 12 + 3 2 ) q \ge4\eta2^{|H|}/(12+3\sqrt{2}) q ≥ 4 η 2 ∣ H ∣ / ( 12 + 3 2 ) for every query count.
For all four query types, Equation (2) gives
Pr [ a = b ] − 1 2 ≤ 25 + 24 2 4 q 2 ∣ H ∣ + 9 ( q + 1 ) 2 2 n / 8 . \Pr[a=b]-\frac{1}{2}\le\frac{25+24\sqrt{2}}{4}\frac{q}{2^{|H|}}+\frac{9(q+1)^2}{2^{n/8}}. Pr [ a = b ] − 2 1 ≤ 4 25 + 24 2 2 ∣ H ∣ q + 2 n /8 9 ( q + 1 ) 2 .
Fix 0 < η ≤ 1 / 2 0<\eta\le1/2 0 < η ≤ 1/2 and let
κ = min { η 25 + 24 2 , η 144 } . \kappa=\min\left\{\frac{\eta}{25+24\sqrt{2}},\sqrt{\frac{\eta}{144}}\right\}. κ = min { 25 + 24 2 η , 144 η } .
For 1 ≤ q ≤ κ min { 2 ∣ H ∣ , 2 n / 16 } 1 \le q \le\kappa\min\{2^{|H|},2^{n/16}\} 1 ≤ q ≤ κ min { 2 ∣ H ∣ , 2 n /16 } , we have q + 1 ≤ 2 q q+1 \le2q q + 1 ≤ 2 q , so
Pr [ a = b ] − 1 2 ≤ ( 25 + 24 2 ) κ 4 + 36 q 2 2 n / 8 ≤ ( 25 + 24 2 ) κ 4 + 36 κ 2 ≤ η 4 + η 4 = η 2 < η . \begin{aligned}
\Pr[a=b]-\frac{1}{2} &\le\frac{(25+24\sqrt{2})\kappa}{4}+\frac{36q^2}{2^{n/8}} \\
&\le\frac{(25+24\sqrt{2})\kappa}{4}+36\kappa^2 \le\frac{\eta}{4}+\frac{\eta}{4}=\frac{\eta}{2}<\eta.
\end{aligned} Pr [ a = b ] − 2 1 ≤ 4 ( 25 + 24 2 ) κ + 2 n /8 36 q 2 ≤ 4 ( 25 + 24 2 ) κ + 36 κ 2 ≤ 4 η + 4 η = 2 η < η .
At q = 0 q=0 q = 0 , the experiments agree by Equation (3) , since a circuit with no queries is the same in every access model. This proves the stated asymptotic lower bound. Every bidirectional algorithm is also an algorithm with access to all four types, so it obeys the same bound. Controlled queries obey the same inequalities by Corollary 3.3. For selected queries, Corollary 3.4 replaces q q q by 4 q 4q 4 q ; use κ / 4 \kappa/4 κ /4 in the preceding argument, which changes only the lower-bound constant.
Decoding on a constant fraction of oracles
Proof of Corollary 3.6. To calibrate the fixed decoder D \mathcal{D} D , we use N = ⌈ 4 / ( p δ ) 2 ⌉ N=\left\lceil4/(p\delta)^2\right\rceil N = ⌈ 4/ ( p δ ) 2 ⌉ trials.
The trials and sign estimate. The auxiliary distinguisher holds its supplied challenge aside while preparing N N N fresh real challenges, each with its own reference qubit. It runs D \mathcal{D} D on each radiation register and measures the corresponding reference and output with the Bell projector. At initialization, it is supplied with N + 1 N+1 N + 1 tensor-product copies of the decoder’s oracle-independent auxiliary state; no unknown state is cloned. The trials use disjoint registers, so conditioned on U U U they are independent Bernoulli variables with mean f D ( U ) f_{\mathcal{D}}(U) f D ( U ) . Their empirical mean f ^ \hat{f} f ^ has conditional variance at most 1 / ( 4 N ) 1/(4N) 1/ ( 4 N ) , and therefore
E [ ∣ f ^ − f D ( U ) ∣ ∣ U ] ≤ 1 2 N . \mathbb{E}[|\hat{f}-f_{\mathcal{D}}(U)|\mid U]\le\frac{1}{2\sqrt{N}}. E [ ∣ f ^ − f D ( U ) ∣ ∣ U ] ≤ 2 N 1 .
Let s = 1 s=1 s = 1 when f ^ ≥ 1 / 4 \hat{f}\ge1/4 f ^ ≥ 1/4 and s = − 1 s=-1 s = − 1 otherwise. A wrong sign requires ∣ f ^ − f D ( U ) ∣ ≥ ∣ f D ( U ) − 1 / 4 ∣ |\hat{f}-f_{\mathcal{D}}(U)|\ge|f_{\mathcal{D}}(U)-1/4| ∣ f ^ − f D ( U ) ∣ ≥ ∣ f D ( U ) − 1/4∣ . For either sign,
s ( f D ( U ) − 1 / 4 ) ≥ ∣ f D ( U ) − 1 / 4 ∣ − 2 ∣ f ^ − f D ( U ) ∣ . s(f_{\mathcal{D}}(U)-1/4)\ge|f_{\mathcal{D}}(U)-1/4|-2|\hat{f}-f_{\mathcal{D}}(U)|. s ( f D ( U ) − 1/4 ) ≥ ∣ f D ( U ) − 1/4∣ − 2∣ f ^ − f D ( U ) ∣.
Testing the original challenge. The distinguisher now runs D \mathcal{D} D on the original challenge and performs the Bell test, reversing its outcome when s = − 1 s=-1 s = − 1 . Conditioned on U U U , this run is independent of the trials. In the mixed experiment, its Bell-test probability is 1 / 4 1/4 1/4 for every U U U , even conditioned on the trial outcomes. Its Haar-averaged acceptance gap is consequently at least
E U ∣ f D ( U ) − 1 / 4 ∣ − 1 N ≥ p δ − 1 N ≥ p δ 2 . \mathbb{E}_{U}|f_{\mathcal{D}}(U)-1/4|-\frac{1}{\sqrt{N}}\ge p\delta-\frac{1}{\sqrt{N}}\ge\frac{p\delta}{2}. E U ∣ f D ( U ) − 1/4∣ − N 1 ≥ p δ − N 1 ≥ 2 p δ .
The query count. Each trial uses one forward preparation query and at most q q q decoding queries, while the final run uses at most q q q queries. The total is at most q + N ( q + 1 ) ≤ ( N + 1 ) ( q + 1 ) q+N(q+1)\le(N+1)(q+1) q + N ( q + 1 ) ≤ ( N + 1 ) ( q + 1 ) . The auxiliary circuit and its initial state are independent of U U U , and its distinguishing advantage is at least p δ / 4 p\delta/4 p δ /4 . It uses the same access model as the decoder, with an additional forward query per trial. Corollary 3.5 therefore gives the asserted lower bounds on q q q as the corresponding lower-bound scale grows. □
Decoding and Uhlmann transformation
This appendix gives the full proofs of the decoding and Uhlmann results in § 5.1 and § 5.2 . The last subsection gives the fidelity-estimation comparison from § 1.2 .
The decoupling estimate
We prove Equation (19) by computing the expected purity of ρ B H U \rho^{U}_{BH} ρ B H U . The calculation uses only the two Haar columns
∣ v ⟩ = U ∣ x 0 , 0 ⟩ , ∣ w ⟩ = U ∣ x 0 , 1 ⟩ . \lvert v\rangle= U\lvert x_0,0\rangle,\qquad\lvert w\rangle= U\lvert x_0,1\rangle. ∣ v ⟩ = U ∣ x 0 , 0 ⟩ , ∣ w ⟩ = U ∣ x 0 , 1 ⟩ .
Then ∣ Ψ 0 r e a l , U ⟩ = ( ∣ 0 ⟩ B ∣ v ⟩ + ∣ 1 ⟩ B ∣ w ⟩ ) / 2 \lvert\Psi^{\mathrm{real},U}_0\rangle= (\lvert0\rangle_B\lvert v\rangle+ \lvert1\rangle_B\lvert w\rangle)/\sqrt{2} ∣ Ψ 0 real , U ⟩ = (∣ 0 ⟩ B ∣ v ⟩ + ∣ 1 ⟩ B ∣ w ⟩) / 2 .
One Haar column. The vector v v v is uniform on the unit sphere in C 2 n \mathbb{C}^{2^n} C 2 n . For i , j , k , ℓ ∈ [ 2 n ] i,j,k,\ell\in[2^n] i , j , k , ℓ ∈ [ 2 n ] , its fourth moments are
E [ v i v j ‾ v k v ℓ ‾ ] = δ i , j δ k , ℓ + δ i , ℓ δ k , j 2 n ( 2 n + 1 ) . \mathbb{E}[v_i\overline{v_j}v_k\overline{v_\ell}] = \frac{\delta_{i,j}\delta_{k,\ell}+\delta_{i,\ell}\delta_{k,j}}{2^n(2^n+1)}. E [ v i v j v k v ℓ ] = 2 n ( 2 n + 1 ) δ i , j δ k , ℓ + δ i , ℓ δ k , j .
To verify the formula, invariance under separate coordinate phases forces the ket indices { i , k } \{i,k\} { i , k } to equal the bra indices { j , ℓ } \{j,\ell\} { j , ℓ } as multisets. For distinct i , j i,j i , j , the coordinate ( v i + v j ) / 2 (v_i+v_j)/\sqrt{2} ( v i + v j ) / 2 has the same distribution as v i v_i v i . Expanding E ∣ ( v i + v j ) / 2 ∣ 4 \mathbb{E}\lvert(v_i+v_j)/\sqrt{2}\rvert^4 E ∣( v i + v j ) / 2 ∣ 4 and using phase invariance gives
E ∣ v i ∣ 4 = 1 2 E ∣ v i ∣ 4 + E [ ∣ v i ∣ 2 ∣ v j ∣ 2 ] , \mathbb{E}\lvert v_i\rvert^4 = \frac{1}{2}\mathbb{E}\lvert v_i\rvert^4+\mathbb{E}[\lvert v_i\rvert^2\lvert v_j\rvert^2], E ∣ v i ∣ 4 = 2 1 E ∣ v i ∣ 4 + E [∣ v i ∣ 2 ∣ v j ∣ 2 ] ,
so E ∣ v i ∣ 4 = 2 E [ ∣ v i ∣ 2 ∣ v j ∣ 2 ] \mathbb{E}\lvert v_i\rvert^4 = 2\mathbb{E}[\lvert v_i\rvert^2\lvert v_j\rvert^2] E ∣ v i ∣ 4 = 2 E [∣ v i ∣ 2 ∣ v j ∣ 2 ] . Coordinate permutations make these expectations independent of the distinct indices i , j i,j i , j . Expanding 1 = E ( ∑ i ∣ v i ∣ 2 ) 2 1=\mathbb{E}(\sum_i\lvert v_i\rvert^2)^2 1 = E ( ∑ i ∣ v i ∣ 2 ) 2 now gives E [ ∣ v i ∣ 2 ∣ v j ∣ 2 ] = 1 / [ 2 n ( 2 n + 1 ) ] \mathbb{E}[\lvert v_i\rvert^2\lvert v_j\rvert^2]=1/[2^n(2^n+1)] E [∣ v i ∣ 2 ∣ v j ∣ 2 ] = 1/ [ 2 n ( 2 n + 1 )] for i ≠ j i\ne j i = j , proving the formula.
Applying it to the coefficients indexed by ( r , h ) (r,h) ( r , h ) gives
E Tr [ ( Tr R ∣ v ⟩ ⟨ v ∣ ) 2 ] = ∑ r , s , h , k E [ v r , h v r , k ‾ v s , k v s , h ‾ ] = 2 2 ∣ R ∣ + ∣ H ∣ + 2 ∣ R ∣ + 2 ∣ H ∣ 2 n ( 2 n + 1 ) = 2 ∣ R ∣ + 2 ∣ H ∣ 2 n + 1 . \begin{aligned}
\mathbb{E}\operatorname{Tr}\left[(\operatorname{Tr}_R\lvert v\rangle\langle v\rvert)^2\right]
= \sum_{r,s,h,k}\mathbb{E}[v_{r,h}\overline{v_{r,k}}v_{s,k}\overline{v_{s,h}}] \\
&= \frac{2^{2\lvert R\rvert+\lvert H\rvert}+2^{\lvert R\rvert+2\lvert H\rvert}}{2^n(2^n+1)}
= \frac{2^{\lvert R\rvert}+2^{\lvert H\rvert}}{2^n+1}.
\end{aligned} E Tr [ ( Tr R ∣ v ⟩ ⟨ v ∣ ) 2 ] = r , s , h , k ∑ E [ v r , h v r , k v s , k v s , h ] = 2 n ( 2 n + 1 ) 2 2 ∣ R ∣ + ∣ H ∣ + 2 ∣ R ∣ + 2 ∣ H ∣ = 2 n + 1 2 ∣ R ∣ + 2 ∣ H ∣ .
The two moment terms require h = k h=k h = k and r = s r=s r = s , respectively, giving the two counts in the numerator.
The second column. Conditioned on v v v , the vector w w w is uniform on the unit sphere in its orthogonal complement. Its expected projector is therefore
E [ ∣ w ⟩ ⟨ w ∣ ∣ v ] = 1 − ∣ v ⟩ ⟨ v ∣ 2 n − 1 . \mathbb{E}[\lvert w\rangle\langle w\rvert\mid v]=\frac{1-\lvert v\rangle\langle v\rvert}{2^n-1}. E [∣ w ⟩ ⟨ w ∣ ∣ v ] = 2 n − 1 1 − ∣ v ⟩ ⟨ v ∣ .
Indeed, invariance under unitaries on this complement makes the expectation a scalar multiple of its projection, and trace one fixes the scalar. Expanding the cross term and using this conditional expectation gives
E [ Tr [ ( Tr R ∣ v ⟩ ⟨ w ∣ ) ( Tr R ∣ w ⟩ ⟨ v ∣ ) ] | v ] = 1 2 n − 1 ∑ r , s , h , k v r , h v s , h ‾ ( δ r , s − v s , k v r , k ‾ ) = 2 ∣ H ∣ − Tr [ ( Tr R ∣ v ⟩ ⟨ v ∣ ) 2 ] 2 n − 1 . \begin{aligned}
\mathbb{E}\left[\operatorname{Tr}\left[(\operatorname{Tr}_R\lvert v\rangle\langle w\rvert)(\operatorname{Tr}_R\lvert w\rangle\langle v\rvert)\right]\middle|v\right]
= \frac{1}{2^n-1}\sum_{r,s,h,k}v_{r,h}\overline{v_{s,h}}(\delta_{r,s}-v_{s,k}\overline{v_{r,k}}) \\
&= \frac{2^{\lvert H\rvert}-\operatorname{Tr}[(\operatorname{Tr}_R\lvert v\rangle\langle v\rvert)^2]}{2^n-1}.
\end{aligned} E [ Tr [ ( Tr R ∣ v ⟩ ⟨ w ∣) ( Tr R ∣ w ⟩ ⟨ v ∣) ] ∣ v ] = 2 n − 1 1 r , s , h , k ∑ v r , h v s , h ( δ r , s − v s , k v r , k ) = 2 n − 1 2 ∣ H ∣ − Tr [( Tr R ∣ v ⟩ ⟨ v ∣ ) 2 ] .
In the first term, r = s r=s r = s and the sum over k k k gives 2 ∣ H ∣ 2^{\lvert H\rvert} 2 ∣ H ∣ ; the remaining squared coefficients sum to one. The second term is the purity computed above. Averaging over v v v yields
E Tr [ ( Tr R ∣ v ⟩ ⟨ w ∣ ) ( Tr R ∣ w ⟩ ⟨ v ∣ ) ] = 2 ∣ R ∣ ( 2 2 ∣ H ∣ − 1 ) 2 2 n − 1 . \mathbb{E}\operatorname{Tr}\left[(\operatorname{Tr}_R\lvert v\rangle\langle w\rvert)(\operatorname{Tr}_R\lvert w\rangle\langle v\rvert)\right]
= \frac{2^{\lvert R\rvert}(2^{2\lvert H\rvert}-1)}{2^{2n}-1}. E Tr [ ( Tr R ∣ v ⟩ ⟨ w ∣) ( Tr R ∣ w ⟩ ⟨ v ∣) ] = 2 2 n − 1 2 ∣ R ∣ ( 2 2 ∣ H ∣ − 1 ) .
The marginal purity. In the basis ∣ 0 ⟩ , ∣ 1 ⟩ \lvert0\rangle,\lvert1\rangle ∣ 0 ⟩ , ∣ 1 ⟩ of B, the marginal is
ρ B H U = 1 2 ( Tr R ∣ v ⟩ ⟨ v ∣ Tr R ∣ v ⟩ ⟨ w ∣ Tr R ∣ w ⟩ ⟨ v ∣ Tr R ∣ w ⟩ ⟨ w ∣ ) . \rho_{\mathrm{BH}}^U=\frac{1}{2}\begin{pmatrix}\operatorname{Tr}_{R}\lvert v\rangle\langle v\rvert& \operatorname{Tr}_{R}\lvert v\rangle\langle w\rvert\\ \operatorname{Tr}_{R}\lvert w\rangle\langle v\rvert& \operatorname{Tr}_{R}\lvert w\rangle\langle w\rvert\end{pmatrix}. ρ BH U = 2 1 ( Tr R ∣ v ⟩ ⟨ v ∣ Tr R ∣ w ⟩ ⟨ v ∣ Tr R ∣ v ⟩ ⟨ w ∣ Tr R ∣ w ⟩ ⟨ w ∣ ) .
The two columns have the same marginal distribution. Squaring this block matrix therefore gives
E Tr [ ( ρ B H U ) 2 ] = 1 2 E Tr [ ( Tr R ∣ v ⟩ ⟨ v ∣ ) 2 ] + 1 2 E Tr [ ( Tr R ∣ v ⟩ ⟨ w ∣ ) ( Tr R ∣ w ⟩ ⟨ v ∣ ) ] = 2 ∣ H ∣ ( 2 2 ∣ R ∣ − 1 ) + 2 ∣ R ∣ + 1 ( 2 2 ∣ H ∣ − 1 ) 2 ( 2 2 n − 1 ) . \begin{aligned}
\mathbb{E}\operatorname{Tr}\left[(\rho_{\mathrm{BH}}^U)^2\right]=\frac{1}{2}\mathbb{E}\operatorname{Tr}\left[(\operatorname{Tr}_{R}\lvert v\rangle\langle v\rvert)^2\right]+\frac{1}{2}\mathbb{E}\operatorname{Tr}\left[(\operatorname{Tr}_{R}\lvert v\rangle\langle w\rvert)(\operatorname{Tr}_{R}\lvert w\rangle\langle v\rvert)\right] \\
&=\frac{2^{\lvert H\rvert}(2^{2\lvert R\rvert}-1)+2^{\lvert R\rvert+1}(2^{2\lvert H\rvert}-1)}{2(2^{2n}-1)}.
\end{aligned} E Tr [ ( ρ BH U ) 2 ] = 2 1 E Tr [ ( Tr R ∣ v ⟩ ⟨ v ∣ ) 2 ] + 2 1 E Tr [ ( Tr R ∣ v ⟩ ⟨ w ∣) ( Tr R ∣ w ⟩ ⟨ v ∣) ] = 2 ( 2 2 n − 1 ) 2 ∣ H ∣ ( 2 2 ∣ R ∣ − 1 ) + 2 ∣ R ∣ + 1 ( 2 2 ∣ H ∣ − 1 ) .
Since τ B H = 1 B H / 2 1 + ∣ H ∣ \tau_{\mathrm{BH}}=\mathbb{1}_{\mathrm{BH}}/2^{1+\lvert H\rvert} τ BH = 1 BH / 2 1 + ∣ H ∣ and Tr ρ B H U = 1 \operatorname{Tr}\rho_{\mathrm{BH}}^U=1 Tr ρ BH U = 1 , expanding the square gives
E Tr [ ( ρ B H U − τ B H ) 2 ] = E Tr [ ( ρ B H U ) 2 ] − 2 − ( 1 + ∣ H ∣ ) = ( 2 2 ∣ H ∣ − 1 ) ( 2 n + 1 − 1 ) 2 1 + ∣ H ∣ ( 2 2 n − 1 ) . \begin{aligned}
\mathbb{E}\operatorname{Tr}\left[(\rho_{\mathrm{BH}}^U-\tau_{\mathrm{BH}})^2\right]=\mathbb{E}\operatorname{Tr}\left[(\rho_{\mathrm{BH}}^U)^2\right]-2^{-(1+\lvert H\rvert)} \\
&=\frac{(2^{2\lvert H\rvert}-1)(2^{n+1}-1)}{2^{1+\lvert H\rvert}(2^{2n}-1)}.
\end{aligned} E Tr [ ( ρ BH U − τ BH ) 2 ] = E Tr [ ( ρ BH U ) 2 ] − 2 − ( 1 + ∣ H ∣) = 2 1 + ∣ H ∣ ( 2 2 n − 1 ) ( 2 2 ∣ H ∣ − 1 ) ( 2 n + 1 − 1 ) .
From purity to trace norm. Cauchy–Schwarz on the 2 1 + ∣ H ∣ 2^{1+\lvert H\rvert} 2 1 + ∣ H ∣ eigenvalues of a Hermitian operator gives ∥ X ∥ 1 2 ≤ 2 1 + ∣ H ∣ Tr ( X 2 ) \lVert X\rVert_1^2\leq2^{1+\lvert H\rvert}\operatorname{Tr}(X^2) ∥ X ∥ 1 2 ≤ 2 1 + ∣ H ∣ Tr ( X 2 ) . Cauchy–Schwarz for the Haar expectation then gives
( E U ∥ ρ B H U − τ B H ∥ 1 ) 2 ≤ E U ∥ ρ B H U − τ B H ∥ 1 2 \left(\mathbb{E}_{U}\lVert\rho_{\mathrm{BH}}^U-\tau_{\mathrm{BH}}\rVert_1\right)^2\leq\mathbb{E}_{U}\lVert\rho_{\mathrm{BH}}^U-\tau_{\mathrm{BH}}\rVert_1^2 ( E U ∥ ρ BH U − τ BH ∥ 1 ) 2 ≤ E U ∥ ρ BH U − τ BH ∥ 1 2
≤ 2 1 + ∣ H ∣ E U Tr [ ( ρ B H U − τ B H ) 2 ] = ( 2 2 ∣ H ∣ − 1 ) ( 2 n + 1 − 1 ) 2 2 n − 1 ≤ 2 ⋅ 2 ∣ H ∣ − ∣ R ∣ . \begin{aligned}
\leq2^{1+\lvert H\rvert}\mathbb{E}_{U}\operatorname{Tr}\left[(\rho_{\mathrm{BH}}^U-\tau_{\mathrm{BH}})^2\right] \\
&=\frac{(2^{2\lvert H\rvert}-1)(2^{n+1}-1)}{2^{2n}-1}\leq2\cdot2^{\lvert H\rvert-\lvert R\rvert}.
\end{aligned} ≤ 2 1 + ∣ H ∣ E U Tr [ ( ρ BH U − τ BH ) 2 ] = 2 2 n − 1 ( 2 2 ∣ H ∣ − 1 ) ( 2 n + 1 − 1 ) ≤ 2 ⋅ 2 ∣ H ∣ − ∣ R ∣ .
For the last inequality, use 2 2 ∣ H ∣ − 1 ≤ 2 2 ∣ H ∣ 2^{2\lvert H\rvert}-1\leq2^{2\lvert H\rvert} 2 2 ∣ H ∣ − 1 ≤ 2 2 ∣ H ∣ and ( 2 n + 1 − 1 ) / ( 2 2 n − 1 ) ≤ 2 1 − n (2^{n+1}-1)/(2^{2n}-1)\leq2^{1-n} ( 2 n + 1 − 1 ) / ( 2 2 n − 1 ) ≤ 2 1 − n . The latter follows by multiplying through by the positive denominator and using 2 n ≥ 2 2^n\geq2 2 n ≥ 2 . Taking square roots and weakening 2 \sqrt{2} 2 to 2 2 2 proves Equation (19) .
The decoding upper bound
The cutoff below depends only on the dimensions and ϵ \epsilon ϵ , so the same decoding circuit works for every U U U .
Proof of Corollary 5.2. We use the preparation unitary P U P_U P U and fixed target ∣ Θ ⟩ \lvert\Theta\rangle ∣ Θ ⟩ from § 5.1 . We apply the construction in Utsumi et al. [35 Theorem 13 and Proposition 10] with a uniform singular-value cutoff. Their fidelity F F F is squared fidelity, while F F F here denotes root fidelity.
The overlap operator. The construction aligns the left and right singular vectors of the overlap operator on the accessible register R:
M U = Tr B H ∣ Θ ⟩ ⟨ Ψ 0 r e a l , U ∣ . M_U=\operatorname{Tr}_{\mathrm{BH}}\lvert\Theta\rangle\langle\Psi_0^{\mathrm{real},U}\rvert. M U = Tr BH ∣ Θ ⟩ ⟨ Ψ 0 real , U ∣ .
The Schmidt vectors of ∣ Θ ⟩ \lvert\Theta\rangle ∣ Θ ⟩ on R are orthonormal, and each has coefficient 2 − ( 1 + ∣ H ∣ ) / 2 2^{-(1+\lvert H\rvert)/2} 2 − ( 1 + ∣ H ∣) /2 . Multiplying the partial-trace expansion by its adjoint therefore gives
M U † M U = Tr B H ∣ Ψ 0 r e a l , U ⟩ ⟨ Ψ 0 r e a l , U ∣ 2 1 + ∣ H ∣ . M_U^\dagger M_U=\frac{\operatorname{Tr}_{\mathrm{BH}}\lvert\Psi_0^{\mathrm{real},U}\rangle\langle\Psi_0^{\mathrm{real},U}\rvert}{2^{1+\lvert H\rvert}}. M U † M U = 2 1 + ∣ H ∣ Tr BH ∣ Ψ 0 real , U ⟩ ⟨ Ψ 0 real , U ∣ .
The two marginals of the pure source state have the same nonzero eigenvalues. Also, τ B H = 1 B H / 2 1 + ∣ H ∣ \tau_{\mathrm{BH}} = \mathbb{1}_{\mathrm{BH}}/2^{1+|\mathrm{H}|} τ BH = 1 BH / 2 1 + ∣ H ∣ . Thus the nonzero singular values s j s_j s j of M U M_U M U are those of τ B H ρ B H U \sqrt{\tau_{\mathrm{BH}}}\sqrt{\rho_{\mathrm{BH}}^U} τ BH ρ BH U , and
r = rank ( τ B H ρ B H U ) ≤ 2 1 + ∣ H ∣ , ∑ j = 1 r s j = F ( ρ B H U , τ B H ) ≤ 1. r = \operatorname{rank}\left(\sqrt{\tau_{\mathrm{BH}}}\sqrt{\rho_{\mathrm{BH}}^U}\right) \le2^{1+|\mathrm{H}|}, \qquad\sum_{j=1}^{r} s_j = F(\rho_{\mathrm{BH}}^U,\tau_{\mathrm{BH}}) \le1. r = rank ( τ BH ρ BH U ) ≤ 2 1 + ∣ H ∣ , j = 1 ∑ r s j = F ( ρ BH U , τ BH ) ≤ 1.
A uniform cutoff. Utsumi et al.’s Eqs. (38) –(42) implement a block encoding of M U M_U M U using preparation calls on auxiliary copies of the register spaces and a swap involving the actual R. The actual BH is untouched. Their Proposition 10 gives a real odd sign polynomial p p p satisfying
∣ p ( s ) − 1 ∣ ≤ ϵ 4 for ϵ 8 ⋅ 2 1 + ∣ H ∣ ≤ s ≤ 1 , ∣ p ( s ) ∣ ≤ 1 for 0 ≤ s ≤ 1. |p(s)-1| \le\frac{\epsilon}{4} \quad\text{for} \quad\frac{\epsilon}{8\cdot2^{1+|\mathrm{H}|}} \le s \le1, \qquad|p(s)| \le1 \quad\text{for } 0 \le s \le1. ∣ p ( s ) − 1∣ ≤ 4 ϵ for 8 ⋅ 2 1 + ∣ H ∣ ϵ ≤ s ≤ 1 , ∣ p ( s ) ∣ ≤ 1 for 0 ≤ s ≤ 1.
The degree is O ( ( 2 ∣ H ∣ / ϵ ) log ( 1 / ϵ ) ) O((2^{|\mathrm{H}|}/\epsilon)\log(1/\epsilon)) O (( 2 ∣ H ∣ / ϵ ) log ( 1/ ϵ )) , and the polynomial and its gates depend only on the dimensions and ϵ \epsilon ϵ . The construction applies p p p to the singular-value diagonal of M U M_U M U . Their Eqs. (50)–(52) express the overlap, and Eqs. (55)–(57) give its singular-value expansion. Thus its absolute overlap with the target and zero auxiliary registers is
a U = ∣ ∑ j = 1 r p ( s j ) s j ∣ . a_U = \left|\sum_{j=1}^{r} p(s_j)s_j\right|. a U = j = 1 ∑ r p ( s j ) s j .
The overlap error. Above the cutoff, the approximation error is at most ϵ / 4 \epsilon/4 ϵ /4 and the singular values sum to at most one. Below it, ∣ 1 − p ( s j ) ∣ ≤ 2 |1-p(s_j)| \le2 ∣1 − p ( s j ) ∣ ≤ 2 , and at most r r r singular values contribute. As in their Eqs. (59)–(62), we bound the two ranges separately:
∑ s j ≥ ϵ / ( 8 ⋅ 2 1 + ∣ H ∣ ) ∣ 1 − p ( s j ) ∣ s j ≤ ϵ 4 ∑ j s j ≤ ϵ 4 , \sum_{s_j\ge\epsilon/(8\cdot2^{1+|\mathrm{H}|})} |1-p(s_j)|s_j \le\frac{\epsilon}{4}\sum_j s_j \le\frac{\epsilon}{4}, s j ≥ ϵ / ( 8 ⋅ 2 1 + ∣ H ∣ ) ∑ ∣1 − p ( s j ) ∣ s j ≤ 4 ϵ j ∑ s j ≤ 4 ϵ ,
∑ s j < ϵ / ( 8 ⋅ 2 1 + ∣ H ∣ ) ∣ 1 − p ( s j ) ∣ s j ≤ 2 ϵ r 8 ⋅ 2 1 + ∣ H ∣ ≤ ϵ 4 . \sum_{s_j<\epsilon/(8\cdot2^{1+|\mathrm{H}|})} |1-p(s_j)|s_j \le\frac{2\epsilon r}{8\cdot2^{1+|\mathrm{H}|}} \le\frac{\epsilon}{4}. s j < ϵ / ( 8 ⋅ 2 1 + ∣ H ∣ ) ∑ ∣1 − p ( s j ) ∣ s j ≤ 8 ⋅ 2 1 + ∣ H ∣ 2 ϵr ≤ 4 ϵ .
The reverse triangle inequality now gives
∣ F ( ρ B H U , τ B H ) − a U ∣ ≤ ∑ j ∣ 1 − p ( s j ) ∣ s j ≤ ϵ 2 . \left|F(\rho_{\mathrm{BH}}^U,\tau_{\mathrm{BH}})-a_U\right| \le\sum_j |1-p(s_j)|s_j \le\frac{\epsilon}{2}. F ( ρ BH U , τ BH ) − a U ≤ j ∑ ∣1 − p ( s j ) ∣ s j ≤ 2 ϵ .
Both quantities lie in [ 0 , 1 ] [0,1] [ 0 , 1 ] , so the difference of their squares is at most twice their difference:
∣ F ( ρ B H U , τ B H ) 2 − a U 2 ∣ ≤ 2 ∣ F ( ρ B H U , τ B H ) − a U ∣ ≤ ϵ . \left|F(\rho_{\mathrm{BH}}^U,\tau_{\mathrm{BH}})^2-a_U^2\right| \le2\left|F(\rho_{\mathrm{BH}}^U,\tau_{\mathrm{BH}})-a_U\right| \le\epsilon. F ( ρ BH U , τ BH ) 2 − a U 2 ≤ 2 F ( ρ BH U , τ BH ) − a U ≤ ϵ .
The squared overlap with zero auxiliary registers is one nonnegative summand of the target overlap after tracing out those registers. Thus discarding them gives Equation (21) for every U U U .
Query cost and decoding fidelity. The singular-value transformation uses a number of block-encoding calls proportional to the degree of p p p . Each call to P U P_U P U or P U † = C † ( 1 B ⊗ U † ) P_U^\dagger= C^\dagger(\mathbb{1}_{B}\otimes U^\dagger) P U † = C † ( 1 B ⊗ U † ) costs one query to U U U or U † U^\dagger U † ; target-preparation calls use only fixed gates. The decoder therefore uses O ( ( 2 ∣ H ∣ / ϵ ) log ( 1 / ϵ ) ) O((2^{|\mathrm{H}|}/\epsilon)\log(1/\epsilon)) O (( 2 ∣ H ∣ / ϵ ) log ( 1/ ϵ )) queries, which is O ( 2 ∣ H ∣ ) O(2^{|\mathrm{H}|}) O ( 2 ∣ H ∣ ) at fixed ϵ \epsilon ϵ . By Lemma 5.1 , its fidelity for each U U U is at least 1 − ∥ ρ B H U − τ B H ∥ 1 − ϵ 1-\|\rho_{\mathrm{BH}}^U-\tau_{\mathrm{BH}}\|_1-\epsilon 1 − ∥ ρ BH U − τ BH ∥ 1 − ϵ . Averaging and applying Equation (19) give
E U f D ( U ) ≥ 1 − 2 ⋅ 2 ( ∣ H ∣ − ∣ R ∣ ) / 2 − ϵ , \mathbb{E}_U f_D(U) \ge1-2\cdot2^{(|\mathrm{H}|-|\mathrm{R}|)/2}-\epsilon, E U f D ( U ) ≥ 1 − 2 ⋅ 2 ( ∣ H ∣ − ∣ R ∣ ) /2 − ϵ ,
as required.
Proof of Lemma 5.3. Since τ B H \tau_{\mathrm{BH}} τ BH is invertible and square roots preserve rank, it suffices to show that ρ B H U \rho_{\mathrm{BH}}^{U} ρ BH U has full rank. Let X U X_U X U be the coefficient matrix of ∣ Ψ 0 r e a l , U ⟩ \lvert\Psi_{0}^{\mathrm{real},U}\rangle ∣ Ψ 0 real , U ⟩ across B H : R \mathrm{BH}:\mathrm{R} BH : R :
( X U ) ( c , h ) , r = 1 2 ⟨ r , h ∣ U ∣ x 0 , c ⟩ , ρ B H U = X U X U † . (X_U)_{(c,h),r}=\frac{1}{\sqrt{2}}\langle r,h\lvert U\lvert x_{0,c}\rangle,\qquad\rho_{\mathrm{BH}}^{U}=X_U X_U^\dagger. ( X U ) ( c , h ) , r = 2 1 ⟨ r , h ∣ U ∣ x 0 , c ⟩ , ρ BH U = X U X U † .
It suffices to show that X U X_U X U has full row rank.
Generating the two columns. We generate the two Haar columns by orthogonalizing two independent standard complex Gaussian vectors g 0 , g 1 g_0,g_1 g 0 , g 1 on R H \mathrm{R}\mathrm{H} RH . Their joint distribution is invariant under every unitary on R H \mathrm{R}\mathrm{H} RH , and orthogonalization preserves this invariance. The unitary group acts transitively on orthonormal pairs, so the resulting invariant distribution is the Haar distribution on such pairs. Before orthogonalizing, arrange their coefficients in matrices ( G c ) h , r = ( g c ) r , h (G_c)_{h,r}=(g_c)_{r,h} ( G c ) h , r = ( g c ) r , h . The stacked matrix is
G = ( G 0 G 1 ) . G=\begin{pmatrix}G_0\\G_1\end{pmatrix}. G = ( G 0 G 1 ) .
It has 2 1 + ∣ H ∣ 2^{1+\lvert\mathrm{H}\rvert} 2 1 + ∣ H ∣ rows and 2 ∣ R ∣ 2^{\lvert\mathrm{R}\rvert} 2 ∣ R ∣ columns, with independent Gaussian entries. The hypothesis ∣ R ∣ ≥ ∣ H ∣ + 1 \lvert\mathrm{R}\rvert\geq\lvert\mathrm{H}\rvert+1 ∣ R ∣ ≥ ∣ H ∣ + 1 makes the number of columns at least the number of rows.
Full rank before and after orthogonalization. Conditioned on the preceding rows, each next row has a density on the ambient space of row vectors. The preceding rows span a proper linear subspace, since there are fewer of them than columns. A proper linear subspace has Lebesgue measure zero, so the rows are linearly independent with probability one. For orthogonalization, let
s = ⟨ g 0 ∣ g 1 ⟩ ∥ g 0 ∥ 2 2 , t 0 = ∥ g 0 ∥ 2 , t 1 = ∥ g 1 − s g 0 ∥ 2 . s=\frac{\langle g_0\mid g_1\rangle}{\lVert g_0\rVert_2^2},\qquad t_0=\lVert g_0\rVert_2,\qquad t_1=\lVert g_1-sg_0\rVert_2. s = ∥ g 0 ∥ 2 2 ⟨ g 0 ∣ g 1 ⟩ , t 0 = ∥ g 0 ∥ 2 , t 1 = ∥ g 1 − s g 0 ∥ 2 .
Also, t 0 , t 1 > 0 t_0,t_1>0 t 0 , t 1 > 0 with probability one. The two normalized columns are g 0 / t 0 g_0/t_0 g 0 / t 0 and ( g 1 − s g 0 ) / t 1 (g_1-sg_0)/t_1 ( g 1 − s g 0 ) / t 1 . Consequently,
X U = 1 2 ( t 0 − 1 1 0 − s t 1 − 1 1 t 1 − 1 1 ) G . X_U=\frac{1}{\sqrt{2}}
\begin{pmatrix}
t_0^{-1}\mathbf{1} & 0\\
-st_1^{-1}\mathbf{1} & t_1^{-1}\mathbf{1}
\end{pmatrix}G. X U = 2 1 ( t 0 − 1 1 − s t 1 − 1 1 0 t 1 − 1 1 ) G .
in distribution, where each identity block has size 2 ∣ H ∣ 2^{\lvert\mathrm{H}\rvert} 2 ∣ H ∣ . The block matrix is invertible, so it preserves row rank. Thus X U X U † X_U X_U^\dagger X U X U † has full rank 2 1 + ∣ H ∣ 2^{1+\lvert\mathrm{H}\rvert} 2 1 + ∣ H ∣ with probability one.
Proof of Theorem 5.4. We reduce the transformation algorithm to a decoder with the same query count.
Converting preparation queries. Taking adjoints, conjugates, and transposes of P U = ( 1 B ⊗ U ) C P_U=(\mathbf{1}_{\mathrm{B}}\otimes U)C P U = ( 1 B ⊗ U ) C gives
P U = ( 1 B ⊗ U ) C , P U † = C † ( 1 B ⊗ U † ) , P_U=(\mathbf{1}_{\mathrm{B}}\otimes U)C,\qquad P_U^\dagger=C^\dagger(\mathbf{1}_{\mathrm{B}}\otimes U^\dagger), P U = ( 1 B ⊗ U ) C , P U † = C † ( 1 B ⊗ U † ) ,
P U ∗ = ( 1 B ⊗ U ∗ ) C ∗ , P U T = C T ( 1 B ⊗ U T ) . P_U^*= (\mathbf{1}_{\mathrm{B}}\otimes U^*)C^*,\qquad P_U^{\mathsf{T}}=C^{\mathsf{T}}(\mathbf{1}_{\mathrm{B}}\otimes U^{\mathsf{T}}). P U ∗ = ( 1 B ⊗ U ∗ ) C ∗ , P U T = C T ( 1 B ⊗ U T ) .
The factors involving C C C are fixed. For a coherent choice, apply C , C ∗ C,C^* C , C ∗ on the forward and conjugate branches before the selected query, and C † , C T C^\dagger,C^{\mathsf{T}} C † , C T on the inverse and transpose branches afterwards. The identity branch applies neither factor. Thus each source-preparation query costs one selected query to U ∗ U^* U ∗ , and queries to the target preparation circuit are fixed gates.
From transformation to decoding. Let D U = Tr H ′ R ′ ∘ T U D^{U}=\operatorname{Tr}_{H'R'}\circ T^{U} D U = Tr H ′ R ′ ∘ T U . The target ∣ Θ ⟩ |\Theta\rangle ∣Θ ⟩ lies in the Bell-test acceptance space, so
∣ Φ + ⟩ ⟨ Φ + ∣ B A ⊗ 1 H H ′ R ′ ≥ ∣ Θ ⟩ ⟨ Θ ∣ . |\Phi^{+}\rangle\langle\Phi^{+}|_{BA}\otimes1_{HH'R'}\ge|\Theta\rangle\langle\Theta|. ∣ Φ + ⟩ ⟨ Φ + ∣ B A ⊗ 1 H H ′ R ′ ≥ ∣Θ ⟩ ⟨ Θ∣.
Taking expectations in the transformed state proves, for every U U U ,
f D ( U ) ≥ ⟨ Θ ∣ ( id B H ⊗ T U ) ( ∣ Ψ 0 r e a l , U ⟩ ⟨ Ψ 0 r e a l , U ∣ ) ∣ Θ ⟩ . f_D(U)\ge\langle\Theta|(\operatorname{id}_{BH}\otimes T^{U})(|\Psi^{\mathrm{real},U}_0\rangle\langle\Psi^{\mathrm{real},U}_0|)|\Theta\rangle. f D ( U ) ≥ ⟨ Θ∣ ( id B H ⊗ T U ) ( ∣ Ψ 0 real , U ⟩ ⟨ Ψ 0 real , U ∣ ) ∣Θ ⟩ .
The theorem’s averaged transformation condition therefore gives
E U f D ( U ) ≥ E U F ( ρ B H U , τ B H ) 2 − ϵ . \mathbb{E}_{U}f_D(U)\ge\mathbb{E}_{U}F(\rho_{BH}^{U},\tau_{BH})^2-\epsilon. E U f D ( U ) ≥ E U F ( ρ B H U , τ B H ) 2 − ϵ .
By Equations (19) and (20) , the right-hand side is at least 1 − 2 ⋅ 2 ( ∣ H ∣ − ∣ R ∣ ) / 2 − ϵ 1-2\cdot2^{(|H|-|R|)/2}-\epsilon 1 − 2 ⋅ 2 ( ∣ H ∣ − ∣ R ∣ ) /2 − ϵ . Substituting ∣ R ∣ = 15 ∣ H ∣ |R|=15|H| ∣ R ∣ = 15∣ H ∣ and ϵ ≤ 1 / 8 \epsilon\le1/8 ϵ ≤ 1/8 gives
E U f D ( U ) ≥ 1 − 2 1 − 7 ∣ H ∣ − 1 8 ≥ 3 4 . \mathbb{E}_{U}f_D(U)\ge1-2^{1-7|H|}-\frac{1}{8}\ge\frac{3}{4}. E U f D ( U ) ≥ 1 − 2 1 − 7∣ H ∣ − 8 1 ≥ 4 3 .
The last inequality uses ∣ H ∣ ≥ 1 |H|\ge1 ∣ H ∣ ≥ 1 .
Applying the query lower bound. Since n = 16 ∣ H ∣ n=16|H| n = 16∣ H ∣ , the lower-bound scale is
min { 2 ∣ H ∣ , 2 n / 16 } = 2 ∣ H ∣ . \min\{2^{|H|},2^{n/16}\}=2^{|H|}. min { 2 ∣ H ∣ , 2 n /16 } = 2 ∣ H ∣ .
Corollary 3.5 gives q = Ω ( 2 ∣ H ∣ ) q=\Omega(2^{|H|}) q = Ω ( 2 ∣ H ∣ ) , including selected queries. By Lemma 5.3, r = 2 1 + ∣ H ∣ r=2^{1+|H|} r = 2 1 + ∣ H ∣ almost surely, giving q = Ω ( r ) q=\Omega(r) q = Ω ( r ) .
Comparison with fidelity-estimation lower bounds
Wang [36 Theorem 1.7] already states the nearly linear query lower bound for fidelity estimation. We derive its Uhlmann-transformation consequence from the reduction in Utsumi et al. [35 Proof of Corollary 5] , and record the hypotheses needed for the query-to-sample comparison.
The transformation hypothesis. Fix a d d d -dimensional marginal register, the known target marginal σ = 1 / d \sigma=1/d σ = 1/ d , and a purifying register of dimension at least 2 d 2d 2 d . Consider one transformation algorithm whose circuit and initial auxiliary state are independent of the unknown marginal ρ \rho ρ and its preparation unitary. Suppose that for every ρ \rho ρ and every valid source-preparation unitary, it uses at most q q q forward and inverse preparation queries and produces a channel acting only on the purifying register, with squared target overlap at least F ( ρ , σ ) 2 − ϵ F(\rho,\sigma)^2-\epsilon F ( ρ , σ ) 2 − ϵ .
Estimating fidelity from the transformation. We prepare a fresh source, apply the output channel, and measure the projector onto the known pure target. For this estimation task, the final measurement can act on both the marginal register and its purifying register. The approximation guarantee gives the lower bound below, and fidelity monotonicity under partial trace [Wat18, Theorem 3.27] gives the upper bound:
F ( ρ , σ ) 2 − ϵ ≤ Pr [ the target test accepts ] ≤ F ( ρ , σ ) 2 . F(\rho,\sigma)^2-\epsilon\le\Pr[\text{the target test accepts}]\le F(\rho,\sigma)^2. F ( ρ , σ ) 2 − ϵ ≤ Pr [ the target test accepts ] ≤ F ( ρ , σ ) 2 .
Repeating the complete test with fresh registers O ( ϵ − 2 ) O(\epsilon^{-2}) O ( ϵ − 2 ) times estimates its acceptance probability to error ϵ \epsilon ϵ with probability at least 2 / 3 2/3 2/3 . Clipping the estimate to [ 0 , 1 ] [0,1] [ 0 , 1 ] cannot increase its error. The estimate therefore differs from F ( ρ , σ ) 2 F(\rho,\sigma)^2 F ( ρ , σ ) 2 by at most 2 ϵ 2\epsilon 2 ϵ .
Taking its square root gives an estimate of root fidelity with error at most 2 ϵ \sqrt{2\epsilon} 2 ϵ , since ∣ a − b ∣ ≤ ∣ a − b ∣ \lvert\sqrt{a}-\sqrt{b}\rvert\le\sqrt{\lvert a-b\rvert} ∣ a − b ∣ ≤ ∣ a − b ∣ for a , b ≥ 0 a,b \ge0 a , b ≥ 0 . At fixed 0 < ϵ ≤ 2 − 23 0 < \epsilon\le2^{-23} 0 < ϵ ≤ 2 − 23 , this error is at most 2 − 11 2^{-11} 2 − 11 . The proof of Wang’s Theorem 5.18 sets its error threshold to 2 − 10 2^{-10} 2 − 10 , so this choice meets the hypothesis. Constant repetition and taking the median increase the estimator’s success probability to at least 0.9.
Each test uses at most q + 1 q+1 q + 1 source-preparation queries; the target is known. Thus a q q q -query transformation would give an O ( q + 1 ) O(q+1) O ( q + 1 ) -query fidelity estimator.
Comparing query and sample complexity. Tang–Wright–Zhandry [34 Theorem 1.5] simulate this estimator using O ( ( q + 1 ) 2 ) O((q+1)^2) O (( q + 1 ) 2 ) copies at trace-distance error 1 / 20 1/20 1/20 . The estimator works for every valid source preparation, and the purifying dimension is at least 2 d 2d 2 d , as their theorem requires. The simulation preserves success above 2 / 3 2/3 2/3 , since 0.9 − 1 / 20 > 2 / 3 0.9-1/20 > 2/3 0.9 − 1/20 > 2/3 . For root-fidelity error η \eta η and success probability at least 2 / 3 2/3 2/3 , Wang [36 Theorem 5.18] gives the sample lower bound
Ω ( d 2 η 2 log 2 d max { 1 , η 2 log 2 d } ) . \Omega\left(\frac{d^2}{\eta^2\log^2 d\max\{1,\eta^2\log^2 d\}}\right). Ω ( η 2 log 2 d max { 1 , η 2 log 2 d } d 2 ) .
At fixed sufficiently small η \eta η , this is Ω ( d 2 / log 4 d ) \Omega(d^2/\log^4 d) Ω ( d 2 / log 4 d ) . The hard states in that proof have a positive maximally mixed block of dimension at least d / 2 d/2 d /2 , so their rank is Θ ( d ) \Theta(d) Θ ( d ) . This follows from Wang’s Definition 3.3 and the direct-sum construction in the proof of Theorem 5.18. Since σ = 1 / d \sigma=1/d σ = 1/ d is invertible, rank ( σ ρ ) = rank ( ρ ) = Θ ( d ) \operatorname{rank}(\sqrt{\sigma}\sqrt{\rho})=\operatorname{rank}(\rho)=\Theta(d) rank ( σ ρ ) = rank ( ρ ) = Θ ( d ) . Comparing the sample counts gives
q + 1 = Ω ( d / log 2 d ) = Ω ( r / log 2 r ) , q+1=\Omega(d/\log^2 d)=\Omega(r/\log^2 r), q + 1 = Ω ( d / log 2 d ) = Ω ( r / log 2 r ) ,
and hence q = Ω ( r / log 2 r ) q=\Omega(r/\log^2 r) q = Ω ( r / log 2 r ) as r → ∞ r\to\infty r → ∞ . This argument uses forward and inverse preparation queries; it does not invoke a simulation for conjugate or transpose access.
Security of the cryptographic constructions
We prove the EFI estimate, the bit-commitment and quantum-state-commitment bounds, and security for a fixed oracle sequence.
The oracle-relative EFI bound
Proof of Corollary 5.5. The rank bound gives statistical separation, and a sign estimate gives the expected absolute gap.
Statistical distance. The real state has rank at most 2 λ 2^\lambda 2 λ , since it is obtained by tracing H out of a pure state. Its support projector Π U \Pi_U Π U accepts it with probability one, whereas Tr [ Π U σ B R λ ] ≤ 2 λ / 2 1 + 2 λ = 2 − λ − 1 \operatorname{Tr}[\Pi_U\sigma^{\lambda}_{BR}] \le2^\lambda/2^{1+2\lambda}=2^{-\lambda-1} Tr [ Π U σ B R λ ] ≤ 2 λ / 2 1 + 2 λ = 2 − λ − 1 . The variational formula for trace distance therefore gives
1 2 ∥ ρ B R U − σ B R λ ∥ 1 ≥ Tr [ Π U ( ρ B R U − σ B R λ ) ] ≥ 1 − 2 − λ − 1 . \frac{1}{2}\lVert\rho^{U}_{BR}-\sigma^{\lambda}_{BR}\rVert_1 \ge\operatorname{Tr}[\Pi_U(\rho^{U}_{BR}-\sigma^{\lambda}_{BR})] \ge1-2^{-\lambda-1}. 2 1 ∥ ρ B R U − σ B R λ ∥ 1 ≥ Tr [ Π U ( ρ B R U − σ B R λ )] ≥ 1 − 2 − λ − 1 .
This projector witnesses statistical distance; the query-limited distinguisher is not given its implementation.
Estimating the sign. The query bound controls ∣ E U Δ A ( U ) ∣ |\mathbb{E}_U\Delta_A(U)| ∣ E U Δ A ( U ) ∣ , but positive and negative gaps could cancel across oracles. To bound E U ∣ Δ A ( U ) ∣ \mathbb{E}_U|\Delta_A(U)| E U ∣ Δ A ( U ) ∣ , we estimate the sign using N N N real and N N N mixed trials while holding the challenge aside. This auxiliary algorithm may use more than polynomially many queries: the state bound covers its query count and allows arbitrary computation. The auxiliary algorithm receives 2 N + 1 2N+1 2 N + 1 tensor-product copies of the oracle-independent auxiliary state at initialization and uses separate registers for each run. Conditioned on U U U , the trials are independent of each other, the challenge bit, and the final run of A \mathcal{A} A .
Let Δ ^ \widehat{\Delta} Δ be the empirical real mean minus the empirical mixed mean. The conditional mean is Δ A ( U ) \Delta_A(U) Δ A ( U ) . Each binary trial has variance at most 1 / 4 1/4 1/4 , so independence gives
Var ( Δ ^ ∣ U ) ≤ N 4 N 2 + N 4 N 2 = 1 2 N . \operatorname{Var}(\widehat{\Delta}\mid U)\leq\frac{N}{4N^2}+\frac{N}{4N^2}=\frac{1}{2N}. Var ( Δ ∣ U ) ≤ 4 N 2 N + 4 N 2 N = 2 N 1 .
Let s = 1 s=1 s = 1 if Δ ^ ≥ 0 \widehat{\Delta}\geq0 Δ ≥ 0 and s = − 1 s=-1 s = − 1 otherwise. If the estimated sign is correct, s Δ A ( U ) = ∣ Δ A ( U ) ∣ s\Delta_A(U)=|\Delta_A(U)| s Δ A ( U ) = ∣ Δ A ( U ) ∣ . If it is wrong, the left-hand side is − ∣ Δ A ( U ) ∣ -|\Delta_A(U)| − ∣ Δ A ( U ) ∣ , and ∣ Δ ^ − Δ A ( U ) ∣ ≥ ∣ Δ A ( U ) ∣ |\widehat{\Delta}-\Delta_A(U)|\geq|\Delta_A(U)| ∣ Δ − Δ A ( U ) ∣ ≥ ∣ Δ A ( U ) ∣ . In both cases,
s Δ A ( U ) ≥ ∣ Δ A ( U ) ∣ − 2 ∣ Δ ^ − Δ A ( U ) ∣ . s\Delta_A(U)\geq|\Delta_A(U)|-2|\widehat{\Delta}-\Delta_A(U)|. s Δ A ( U ) ≥ ∣ Δ A ( U ) ∣ − 2∣ Δ − Δ A ( U ) ∣.
By Cauchy–Schwarz,
E [ ∣ Δ ^ − Δ A ( U ) ∣ ∣ U ] ≤ Var ( Δ ^ ∣ U ) ≤ 1 2 N . \mathbb{E}[|\widehat{\Delta}-\Delta_A(U)|\mid U]\leq\sqrt{\operatorname{Var}(\widehat{\Delta}\mid U)}\leq\frac{1}{\sqrt{2N}}. E [ ∣ Δ − Δ A ( U ) ∣ ∣ U ] ≤ Var ( Δ ∣ U ) ≤ 2 N 1 .
Taking the conditional expectation in the sign inequality gives
E [ s Δ A ( U ) ∣ U ] ≥ ∣ Δ A ( U ) ∣ − 2 N . \mathbb{E}[s\Delta_A(U)\mid U]\geq|\Delta_A(U)|-\sqrt{\frac{2}{N}}. E [ s Δ A ( U ) ∣ U ] ≥ ∣ Δ A ( U ) ∣ − N 2 .
Applying the query bound. The auxiliary algorithm then runs A \mathcal{A} A on the actual challenge and reverses its output when s = − 1 s=-1 s = − 1 . The calibration is independent of the challenge bit conditioned on U U U , so its Haar-averaged acceptance gap is at least E U ∣ Δ A ( U ) ∣ − 2 / N \mathbb{E}_U|\Delta_A(U)|-\sqrt{2/N} E U ∣ Δ A ( U ) ∣ − 2/ N . Each real trial costs q + 1 q+1 q + 1 queries, including one for preparation; each mixed trial costs q q q . The final challenge run costs q q q , giving
q t o t = q + N ( q + 1 ) + N q = q + N ( 2 q + 1 ) . q_{\mathrm{tot}}=q+N(q+1)+Nq=q+N(2q+1). q tot = q + N ( q + 1 ) + N q = q + N ( 2 q + 1 ) .
An acceptance gap is at most half the trace-norm difference, so Theorem 3.1 and Corollary 3.4 give
E U ∣ Δ A ( U ) ∣ ≤ 2 ( 25 + 24 2 ) q t o t 2 λ + 18 ( 4 q t o t + 1 ) 2 2 3 λ / 8 + 2 N . (35) \mathbb{E}_U|\Delta_A(U)|\leq2(25+24\sqrt{2})\frac{q_{\mathrm{tot}}}{2^{\lambda}}+\frac{18(4q_{\mathrm{tot}}+1)^2}{2^{3\lambda/8}}+\sqrt{\frac{2}{N}}. \tag*{(35)} E U ∣ Δ A ( U ) ∣ ≤ 2 ( 25 + 24 2 ) 2 λ q tot + 2 3 λ /8 18 ( 4 q tot + 1 ) 2 + N 2 . (35)
For N = ⌈ 2 λ / 8 ⌉ N=\lceil2^{\lambda/8}\rceil N = ⌈ 2 λ /8 ⌉ , the query count is q t o t = O ( ( q + 1 ) 2 λ / 8 ) q_{\mathrm{tot}}=O((q+1)2^{\lambda/8}) q tot = O (( q + 1 ) 2 λ /8 ) . The first two terms in Equation (35) are therefore O ( ( q + 1 ) 2 − 7 λ / 8 ) O((q+1)2^{-7\lambda/8}) O (( q + 1 ) 2 − 7 λ /8 ) and O ( ( q + 1 ) 2 2 − λ / 8 ) O((q+1)^2 2^{-\lambda/8}) O (( q + 1 ) 2 2 − λ /8 ) . The sign-estimation error is O ( 2 − λ / 16 ) O(2^{-\lambda/16}) O ( 2 − λ /16 ) . Each term is at most O ( ( q + 1 ) 2 2 − λ / 16 ) O((q+1)^2 2^{-\lambda/16}) O (( q + 1 ) 2 2 − λ /16 ) , proving the stated bound. □
Polynomially many copies. Consider a receiver given m m m independent copies of either EFI state, with the same sampled U U U , and making q q q selected queries. A hybrid replaces the copies one at a time. Each adjacent pair is distinguished by an algorithm using one supplied challenge and preparing the other m − 1 m-1 m − 1 copies itself. Preparing each real copy uses one forward query, and preparing a mixed copy uses none, so this algorithm uses at most q + m − 1 q+m-1 q + m − 1 queries. For every fixed U U U , these fresh preparations are in tensor product with the supplied challenge. The triangle inequality and Corollary 5.5 therefore bound the expected absolute gap by
m O ( ( q + m ) 2 − λ / 16 ) . m\,O((q+m)2^{-\lambda/16}). m O (( q + m ) 2 − λ /16 ) .
This is negligible for polynomial m m m , q q q .
Quantum bit commitment
Proof of Corollary 5.6 . The purified generators define the protocol, and the support of the real marginal bounds the two opening probabilities.
The protocol and hiding. Let S be an opening register of 1 + 2 λ 1+2\lambda 1 + 2 λ qubits. The two honest commitment states are
∣ ϕ 0 U ⟩ B R , S = ∣ Ψ 0 r e a l , U ⟩ B R H ∣ 0 λ + 1 ⟩ , \lvert\phi^{U}_{0}\rangle_{\mathrm{BR,S}}=\lvert\Psi^{\mathrm{real},U}_{0}\rangle_{\mathrm{BRH}}\lvert0^{\lambda+1}\rangle, ∣ ϕ 0 U ⟩ BR , S = ∣ Ψ 0 real , U ⟩ BRH ∣ 0 λ + 1 ⟩ ,
∣ ϕ 1 ⟩ B R , S = 1 2 1 + 2 λ ∑ z ∣ z ⟩ B R ∣ z ⟩ S . \lvert\phi_{1}\rangle_{\mathrm{BR,S}}=\frac{1}{\sqrt{2^{1+2\lambda}}}\sum_{z}\lvert z\rangle_{\mathrm{BR}}\lvert z\rangle_{\mathrm{S}}. ∣ ϕ 1 ⟩ BR , S = 2 1 + 2 λ 1 z ∑ ∣ z ⟩ BR ∣ z ⟩ S .
In the first state, S consists of H and its padding. Let C b U C^{U}_{b} C b U prepare ∣ ϕ b U ⟩ \lvert\phi^{U}_{b}\rangle ∣ ϕ b U ⟩ from zero, where C 1 U C^{U}_{1} C 1 U is independent of U. The sender sends BR and later reveals b b b , S. The receiver applies ( C b U ) † (C^{U}_{b})^{\dagger} ( C b U ) † and checks for the all-zero state, equivalently measuring ∣ ϕ b U ⟩ ⟨ ϕ b U ∣ \lvert\phi^{U}_{b}\rangle\langle\phi^{U}_{b}\rvert ∣ ϕ b U ⟩ ⟨ ϕ b U ∣ on BR, S. This gives perfect correctness and the stated honest query counts. It is the canonical construction of [7 Lemma 4.7] .
The two commitment marginals are ρ B R U \rho^{U}_{\mathrm{BR}} ρ BR U and σ B R U \sigma^{U}_{\mathrm{BR}} σ BR U . Hiding follows from Corollary 5.5 , including oracle-independent auxiliary states. Receiver preprocessing is also covered: for each fixed U, it acts on registers disjoint from the honest preparation and can be placed after that preparation without changing the state. All its queries remain counted.
The two acceptance spaces. Fix any U U U , any common post-commit state on BR, Z, and any two opening channels acting on the sender’s workspace Z. Dilate both channels to unitaries W 0 , W 1 W_{0},W_{1} W 0 , W 1 on one sufficiently large workspace with zero ancillas. The two acceptance projectors pulled back to this common space are
P b = ( 1 B R ⊗ W b † ) ( ∣ ϕ b U ⟩ ⟨ ϕ b U ∣ B R , S ⊗ 1 Z ′ ) ( 1 B R ⊗ W b ) , b ∈ { 0 , 1 } . P_{b}=(\mathbb{1}_{\mathrm{BR}}\otimes W_{b}^{\dagger})(\lvert\phi^{U}_{b}\rangle\langle\phi^{U}_{b}\rvert_{\mathrm{BR,S}}\otimes\mathbb{1}_{Z'})(\mathbb{1}_{\mathrm{BR}}\otimes W_{b}),\qquad b\in\{0,1\}. P b = ( 1 BR ⊗ W b † ) (∣ ϕ b U ⟩ ⟨ ϕ b U ∣ BR , S ⊗ 1 Z ′ ) ( 1 BR ⊗ W b ) , b ∈ { 0 , 1 } .
where Z ′ Z' Z ′ contains the sender’s remaining output registers. Every unit vector in the range of P b P_{b} P b has BR marginal ρ B R U \rho^{U}_{\mathrm{BR}} ρ BR U for b = 0 b=0 b = 0 and σ B R U \sigma^{U}_{\mathrm{BR}} σ BR U for $b=1. Indeed, after W b W_{b} W b the vector factors as ∣ ϕ b U ⟩ ∣ η ⟩ \lvert\phi^{U}_{b}\rangle\lvert\eta\rangle ∣ ϕ b U ⟩ ∣ η ⟩ , and W b W_{b} W b acts only on the sender’s registers. Let Π U \Pi_{U} Π U be the support projector of ρ B R U \rho^{U}_{\mathrm{BR}} ρ BR U . For unit vectors u ∈ ran ( P 0 ) u\in\operatorname{ran}(P_{0}) u ∈ ran ( P 0 ) and v ∈ ran ( P 1 ) v\in\operatorname{ran}(P_{1}) v ∈ ran ( P 1 ) , the marginal identities imply ( Π U ⊗ 1 ) u = u (\Pi_{U}\otimes\mathbb{1})u=u ( Π U ⊗ 1 ) u = u and
∥ ( Π U ⊗ 1 ) v ∥ 2 = Tr [ Π U σ B R U ] = rank ( ρ B R U ) 2 1 + 2 λ ≤ 2 − λ − 1 . \lVert(\Pi_{U}\otimes\mathbb{1})v\rVert^{2}=\operatorname{Tr}[\Pi_{U}\sigma^{U}_{\mathrm{BR}}]=\frac{\operatorname{rank}(\rho^{U}_{\mathrm{BR}})}{2^{1+2\lambda}}\leq2^{-\lambda-1}. ∥( Π U ⊗ 1 ) v ∥ 2 = Tr [ Π U σ BR U ] = 2 1 + 2 λ rank ( ρ BR U ) ≤ 2 − λ − 1 .
Cauchy–Schwarz therefore gives
∣ ⟨ u ∣ v ⟩ ∣ = ∣ ⟨ u ∣ ( Π U ⊗ 1 ) ∣ v ⟩ ∣ ≤ ∥ u ∥ 2 ∥ ( Π U ⊗ 1 ) v ∥ 2 ≤ 2 − ( λ + 1 ) / 2 . \lvert\langle u\mid v\rangle\rvert=\lvert\langle u\mid(\Pi_{U}\otimes\mathbb{1})\mid v\rangle\rvert\leq\lVert u\rVert_{2}\lVert(\Pi_{U}\otimes\mathbb{1})v\rVert_{2}\leq2^{-(\lambda+1)/2}. ∣⟨ u ∣ v ⟩∣ = ∣⟨ u ∣ ( Π U ⊗ 1 ) ∣ v ⟩∣ ≤ ∥ u ∥ 2 ∥( Π U ⊗ 1 ) v ∥ 2 ≤ 2 − ( λ + 1 ) /2 .
The norm ∥ P 0 P 1 ∥ \lVert P_{0}P_{1}\rVert ∥ P 0 P 1 ∥ is the supremum of these inner products, so it obeys the same bound.
Sum binding. Let p b p_{b} p b be the probability that opening b b b is accepted from the common post-commit state. Their sum is the expectation of P 0 + P 1 P_{0}+P_{1} P 0 + P 1 , so it is at most ∥ P 0 + P 1 ∥ \lVert P_{0}+P_{1}\rVert ∥ P 0 + P 1 ∥ . For completeness, define T : v ↦ ( P 0 v , P 1 v ) T:v\mapsto(P_{0}v,P_{1}v) T : v ↦ ( P 0 v , P 1 v ) with codomain ran ( P 0 ) ⊕ ran ( P 1 ) \operatorname{ran}(P_{0})\oplus\operatorname{ran}(P_{1}) ran ( P 0 ) ⊕ ran ( P 1 ) . Then T † T = P 0 + P 1 T^{\dagger}T=P_{0}+P_{1} T † T = P 0 + P 1 , while T T † TT^{\dagger} T T † has identity diagonal blocks and off-diagonal blocks P 0 P 1 P_{0}P_{1} P 0 P 1 and P 1 P 0 P_{1}P_{0} P 1 P 0 . For u ∈ ran ( P 0 ) u\in\operatorname{ran}(P_{0}) u ∈ ran ( P 0 ) and v ∈ ran ( P 1 ) v\in\operatorname{ran}(P_{1}) v ∈ ran ( P 1 ) , its quadratic form satisfies
⟨ ( u , v ) , T T † ( u , v ) ⟩ = ∥ u ∥ 2 + ∥ v ∥ 2 + 2 Re ⟨ u , P 0 P 1 v ⟩ ≤ ∥ u ∥ 2 + ∥ v ∥ 2 + 2 ∥ P 0 P 1 ∥ ∥ u ∥ ∥ v ∥ ≤ ( 1 + ∥ P 0 P 1 ∥ ) ( ∥ u ∥ 2 + ∥ v ∥ 2 ) . \begin{aligned}
\langle(u,v),TT^{\dagger}(u,v)\rangle=\lVert u\rVert^{2}+\lVert v\rVert^{2}+2\operatorname{Re}\langle u,P_{0}P_{1}v\rangle\\
&\leq\lVert u\rVert^{2}+\lVert v\rVert^{2}+2\lVert P_{0}P_{1}\rVert\lVert u\rVert\lVert v\rVert\\
&\leq(1+\lVert P_{0}P_{1}\rVert)(\lVert u\rVert^{2}+\lVert v\rVert^{2}).
\end{aligned} ⟨( u , v ) , T T † ( u , v )⟩ = ∥ u ∥ 2 + ∥ v ∥ 2 + 2 Re ⟨ u , P 0 P 1 v ⟩ ≤ ∥ u ∥ 2 + ∥ v ∥ 2 + 2 ∥ P 0 P 1 ∥ ∥ u ∥ ∥ v ∥ ≤ ( 1 + ∥ P 0 P 1 ∥) (∥ u ∥ 2 + ∥ v ∥ 2 ) .
The first inequality is Cauchy–Schwarz; the second uses 2 ∥ u ∥ ∥ v ∥ ≤ ∥ u ∥ 2 + ∥ v ∥ 2 2\lVert u\rVert\lVert v\rVert\le\lVert u\rVert^2+\lVert v\rVert^2 2 ∥ u ∥ ∥ v ∥ ≤ ∥ u ∥ 2 + ∥ v ∥ 2 . Thus
∥ P 0 + P 1 ∥ = ∥ T † T ∥ = ∥ T T † ∥ ≤ 1 + ∥ P 0 P 1 ∥ . \lVert P_0+P_1\rVert=\lVert T^\dagger T\rVert=\lVert TT^\dagger\rVert\le1+\lVert P_0P_1\rVert. ∥ P 0 + P 1 ∥ = ∥ T † T ∥ = ∥ T T † ∥ ≤ 1 + ∥ P 0 P 1 ∥ .
Combining this norm bound with the support bound proves
p 0 + p 1 ≤ 1 + ∥ P 0 P 1 ∥ ≤ 1 + 2 − ( λ + 1 ) / 2 . p_0+p_1\le1+\lVert P_0P_1\rVert\le1+2^{-(\lambda+1)/2}. p 0 + p 1 ≤ 1 + ∥ P 0 P 1 ∥ ≤ 1 + 2 − ( λ + 1 ) /2 .
This holds for all opening procedures and for every U U U , even when the sender’s state and procedures depend on U U U .
Quantum state commitment
Proof of Corollary 5.7 . The channel to H will give swap binding, and the query bound will give hiding.
Correctness. Fix ∣ H ∣ = λ \lvert H\rvert=\lambda ∣ H ∣ = λ , ∣ R ∣ = 2 λ \lvert R\rvert=2\lambda ∣ R ∣ = 2 λ , and a Haar-random U U U on 3 λ 3\lambda 3 λ qubits. The encoding maps M, W to R, H, where M is one qubit and W starts in ∣ 0 3 λ − 1 ⟩ \lvert0^{3\lambda-1}\rangle ∣ 0 3 λ − 1 ⟩ . The receiver’s verification applies U † U^\dagger U † and measures ∣ 0 ⟩ ⟨ 0 ∣ W \lvert0\rangle\langle0\rvert_W ∣ 0 ⟩ ⟨ 0 ∣ W . Honest verification accepts with probability one and leaves the original message and its reference unchanged. This proves correctness and the honest query counts.
A channel bound for the opening register. We bound the channel from the message to H uniformly over inputs entangled with a reference. Define the channel to H and the replacement channel by
E U ( X ) = Tr R [ U ( X M ⊗ ∣ 0 ⟩ ⟨ 0 ∣ W ) U † ] , \mathcal{E}^{U}(X)=\operatorname{Tr}_{R}\left[U\left(X_M\otimes\lvert0\rangle\langle0\rvert_W\right)U^\dagger\right], E U ( X ) = Tr R [ U ( X M ⊗ ∣ 0 ⟩ ⟨ 0 ∣ W ) U † ] ,
T ( X ) = Tr ( X ) 1 H 2 λ . \mathcal{T}(X)=\operatorname{Tr}(X)\frac{\mathbb{1}_H}{2^\lambda}. T ( X ) = Tr ( X ) 2 λ 1 H .
With normalized Bell input, their Choi-state difference is
ϵ U = ∥ ( id B ⊗ E U ) ( ∣ Φ + ⟩ ⟨ Φ + ∣ B M ) − 1 B 2 ⊗ 1 H 2 λ ∥ 1 . \epsilon_U=\left\lVert(\operatorname{id}_B\otimes\mathcal{E}^{U})(\lvert\Phi^+\rangle\langle\Phi^+\rvert_{BM})-\frac{\mathbb{1}_B}{2}\otimes\frac{\mathbb{1}_H}{2^\lambda}\right\rVert_1. ϵ U = ( id B ⊗ E U ) (∣ Φ + ⟩ ⟨ Φ + ∣ B M ) − 2 1 B ⊗ 2 λ 1 H 1 .
The first state is exactly ρ B H U \rho^U_{BH} ρ B H U , so Equation (19) gives
E U ϵ U ≤ 2 ⋅ 2 − λ / 2 . (36) \mathbb{E}_U\epsilon_U\le2\cdot2^{-\lambda/2}. \tag*{(36)} E U ϵ U ≤ 2 ⋅ 2 − λ /2 . (36)
Since M is one qubit, we claim that for every state ω M Z \omega_{MZ} ω M Z and every reference register Z,
∥ ( ( E U − T ) ⊗ id Z ) ( ω M Z ) ∥ 1 ≤ 2 ϵ U . (37) \left\lVert\left((\mathcal{E}^{U}-\mathcal{T})\otimes\operatorname{id}_Z\right)(\omega_{MZ})\right\rVert_1\le2\epsilon_U. \tag*{(37)} ( ( E U − T ) ⊗ id Z ) ( ω M Z ) 1 ≤ 2 ϵ U . (37)
For any pure input ∣ ω ⟩ M Z \lvert\omega\rangle_{MZ} ∣ ω ⟩ M Z , there is a linear map A : B → Z A:B\to Z A : B → Z such that ∣ ω ⟩ = ( 1 M ⊗ A ) ∣ Φ + ⟩ M B \lvert\omega\rangle=(\mathbb{1}_M\otimes A)\lvert\Phi^+\rangle_{MB} ∣ ω ⟩ = ( 1 M ⊗ A ) ∣ Φ + ⟩ M B . Normalization gives Tr ( A † A ) = 2 \operatorname{Tr}(A^\dagger A)=2 Tr ( A † A ) = 2 and hence ∥ A ∥ 2 ≤ 2 \lVert A\rVert^2\le2 ∥ A ∥ 2 ≤ 2 . The output difference is the Choi-state difference multiplied on its reference register by A A A and A † A^\dagger A † . The inequality ∥ A X B ∥ 1 ≤ ∥ A ∥ ∥ X ∥ 1 ∥ B ∥ \lVert AXB\rVert_1\le\lVert A\rVert\lVert X\rVert_1\lVert B\rVert ∥ A X B ∥ 1 ≤ ∥ A ∥ ∥ X ∥ 1 ∥ B ∥ therefore gives
∥ ( ( E U − T ) ⊗ id Z ) ( ∣ ω ⟩ ⟨ ω ∣ ) ∥ 1 ≤ ∥ A ∥ 2 ϵ U ≤ 2 ϵ U . \left\lVert\left((\mathcal{E}^{U}-\mathcal{T})\otimes\operatorname{id}_Z\right)(\lvert\omega\rangle\langle\omega\rvert)\right\rVert_1\le\lVert A\rVert^2\epsilon_U\le2\epsilon_U. ( ( E U − T ) ⊗ id Z ) (∣ ω ⟩ ⟨ ω ∣) 1 ≤ ∥ A ∥ 2 ϵ U ≤ 2 ϵ U .
Convexity extends this to mixed inputs, with any reference dimension. This proves Equation (37) , which is the uniform input bound needed for swap binding.
Statistical swap binding. In the swap-binding game of [19 Definition 4.2] , a malicious sender supplies arbitrary RHZ. The challenger verifies the commitment. Rejection has the same probability in both worlds and gives a random guess. If acceptance has positive probability, the conditional decoded state is ω M Z ⊗ ∣ 0 ⟩ ⟨ 0 ∣ W \omega_{\mathrm{MZ}} \otimes\lvert0\rangle\langle0\rvert_{\mathrm{W}} ω MZ ⊗ ∣ 0 ⟩ ⟨ 0 ∣ W , with arbitrary ω \omega ω that may depend on U U U . The challenger either keeps M or replaces it by zero, re-encodes using U U U , and returns only H. The two states available to the sender are respectively
( E U ⊗ id Z ) ( ω M Z ) , (\mathcal{E}^{U} \otimes\operatorname{id}_{\mathrm{Z}})(\omega_{\mathrm{MZ}}), ( E U ⊗ id Z ) ( ω MZ ) ,
E U ( ∣ 0 ⟩ ⟨ 0 ∣ M ) ⊗ ω Z . \mathcal{E}^{U}(\lvert0\rangle\langle0\rvert_{\mathrm{M}}) \otimes\omega_{\mathrm{Z}}. E U (∣ 0 ⟩ ⟨ 0 ∣ M ) ⊗ ω Z .
Each is within 2 ϵ U 2\epsilon_U 2 ϵ U in trace norm of 1 H / 2 λ ⊗ ω Z \mathbb{1}_{\mathrm{H}}/2^\lambda\otimes\omega_{\mathrm{Z}} 1 H / 2 λ ⊗ ω Z , by Equation (37) . The triangle inequality therefore gives
∥ ( E U ⊗ id Z ) ( ω M Z ) − E U ( ∣ 0 ⟩ ⟨ 0 ∣ M ) ⊗ ω Z ∥ 1 ≤ 4 ϵ U . \left\lVert(\mathcal{E}^{U} \otimes\operatorname{id}_{\mathrm{Z}})(\omega_{\mathrm{MZ}})-\mathcal{E}^{U}(\lvert0\rangle\langle0\rvert_{\mathrm{M}})\otimes\omega_{\mathrm{Z}}\right\rVert_1 \le4\epsilon_U. ( E U ⊗ id Z ) ( ω MZ ) − E U (∣ 0 ⟩ ⟨ 0 ∣ M ) ⊗ ω Z 1 ≤ 4 ϵ U .
For a uniform challenge bit, distinguishing advantage is at most one quarter of this difference. Multiplying by the acceptance probability can only decrease the advantage. Every subsequent sender operation, including further oracle queries, contracts this trace distance for each fixed U U U . Thus, writing s A ( U ) s_A(U) s A ( U ) for a sender’s probability of guessing the swap bit correctly, we have the pointwise bound
sup A ( s A ( U ) − 1 / 2 ) ≤ ϵ U . \sup_A(s_A(U)-1/2)\le\epsilon_U. A sup ( s A ( U ) − 1/2 ) ≤ ϵ U .
It applies to every sender and every accepted state, including those chosen with knowledge of U U U . Averaging this pointwise bound over the Haar oracle and using Equation (36) give
E U sup A ( s A ( U ) − 1 / 2 ) ≤ E U ϵ U ≤ 2 ⋅ 2 − λ / 2 . (38) \mathbb{E}_U\sup_A(s_A(U)-1/2)\le\mathbb{E}_U\epsilon_U\le2\cdot2^{-\lambda/2}. \tag*{(38)} E U A sup ( s A ( U ) − 1/2 ) ≤ E U ϵ U ≤ 2 ⋅ 2 − λ /2 . (38)
The supremum is inside the expectation and includes unbounded senders with oracle-dependent states and strategies.
Hiding for an EPR challenge. We first bound the effect of removing the correlation between B and R, and then reduce chosen-message hiding to this bound. Fix a receiver with an oracle-independent circuit and initial auxiliary state, making at most polynomially many selected queries q q q in total. Choose a universal constant C C C for which the bound in Corollary 5.5 is at most
h = C ( q + 1 ) 2 2 − λ / 16 h=C(q+1)^2 2^{-\lambda/16} h = C ( q + 1 ) 2 2 − λ /16
for all sufficiently large λ \lambda λ . We write ρ R U = Tr B ρ B R U \rho_{\mathrm{R}}^U=\operatorname{Tr}_{\mathrm{B}}\rho_{\mathrm{BR}}^U ρ R U = Tr B ρ BR U . For any q q q -query algorithm A A A , let A ′ A' A ′ first replace B by 1 B / 2 \mathbb{1}_{\mathrm{B}}/2 1 B /2 and then run A A A . This replacement fixes σ B R U \sigma_{\mathrm{BR}}^U σ BR U and sends ρ B R U \rho_{\mathrm{BR}}^U ρ BR U to 1 B / 2 ⊗ ρ R U \mathbb{1}_{\mathrm{B}}/2\otimes\rho_{\mathrm{R}}^U 1 B /2 ⊗ ρ R U . For each fixed U U U , the acceptance gap below is Δ A ( U ) − Δ A ′ ( U ) \Delta_A(U)-\Delta_{A'}(U) Δ A ( U ) − Δ A ′ ( U ) . By Corollary 5.5 , each of these gaps has expected absolute value at most h h h . The triangle inequality therefore gives
E U [ Pr [ A U ( ρ B R U ) = 1 ] − Pr [ A U ( 1 B / 2 ⊗ ρ R U ) = 1 ] ] ≤ 2 h . (39) \mathbb{E}_U\left[\Pr[A^U(\rho_{\mathrm{BR}}^U)=1]-\Pr[A^U(\mathbb{1}_{\mathrm{B}}/2\otimes\rho_{\mathrm{R}}^U)=1]\right]\le2h. \tag*{(39)} E U [ Pr [ A U ( ρ BR U ) = 1 ] − Pr [ A U ( 1 B /2 ⊗ ρ R U ) = 1 ] ] ≤ 2 h . (39)
No oracle query is needed for the replacement.
From an EPR challenge to a chosen message. In the hiding game of [19 Definition 4.3] , the receiver prepares a message on M and keeps a workspace Z. The challenger encodes either this message or zero, returns R, and keeps H. Message preparation may itself use the oracle; all of these queries count toward q q q . To reduce this game to Equation (39) , supply the reduction with an EPR challenge on B R B_{\mathrm{R}} B R and leave it isolated during message preparation. For each fixed U U U , the resulting state ω M Z U \omega^{U}_{\mathrm{MZ}} ω MZ U is in tensor product with this challenge, because the preparation acts on disjoint registers. This conditional product statement is sufficient even though both states depend on U U U .
Define the radiation channel by
N U ( X ) = Tr H [ U ( X M ⊗ ∣ 0 ⟩ ⟨ 0 ∣ W ) U † ] . \mathcal{N}^{U}(X)=\operatorname{Tr}_{\mathrm{H}}\left[U\left(X_{\mathrm{M}}\otimes|0\rangle\langle0|_{\mathrm{W}}\right)U^{\dagger}\right]. N U ( X ) = Tr H [ U ( X M ⊗ ∣0 ⟩ ⟨ 0 ∣ W ) U † ] .
Measure MB in the Bell basis. To compute this outcome, express the real challenge using its input qubit M ′ \mathrm{M}' M ′ :
ρ B R U = ( id B ⊗ N U ) ( ∣ Φ + ⟩ ⟨ Φ + ∣ B M ′ ) . \rho^{U}_{\mathrm{BR}}=\left(\operatorname{id}_{\mathrm{B}}\otimes\mathcal{N}^{U}\right)\left(|\Phi^{+}\rangle\langle\Phi^{+}|_{\mathrm{BM}'}\right). ρ BR U = ( id B ⊗ N U ) ( ∣ Φ + ⟩ ⟨ Φ + ∣ BM ′ ) .
Before applying N U \mathcal{N}^{U} N U , the Φ + \Phi^{+} Φ + contraction for a pure message is
( ⟨ Φ + ∣ M B ⊗ 1 ) ( ∣ ψ ⟩ M Z ⊗ ∣ Φ + ⟩ B M ′ ) = 1 2 ∣ ψ ⟩ M ′ Z . \left(\langle\Phi^{+}|_{\mathrm{MB}}\otimes\mathbb{1}\right)\left(|\psi\rangle_{\mathrm{MZ}}\otimes|\Phi^{+}\rangle_{\mathrm{BM}'}\right)=\frac{1}{2}|\psi\rangle_{\mathrm{M}'\mathrm{Z}}. ( ⟨ Φ + ∣ MB ⊗ 1 ) ( ∣ ψ ⟩ MZ ⊗ ∣ Φ + ⟩ BM ′ ) = 2 1 ∣ ψ ⟩ M ′ Z .
It follows by expanding ∣ ψ ⟩ = ∑ c = 0 1 ∣ c ⟩ M ∣ ψ c ⟩ Z |\psi\rangle=\sum_{c=0}^{1}|c\rangle_{\mathrm{M}}|\psi_{c}\rangle_{\mathrm{Z}} ∣ ψ ⟩ = ∑ c = 0 1 ∣ c ⟩ M ∣ ψ c ⟩ Z and using ⟨ c ∣ c ′ ⟩ = δ c , c ′ \langle c|c'\rangle=\delta_{c,c'} ⟨ c ∣ c ′ ⟩ = δ c , c ′ . The corresponding identity for density operators extends to mixed inputs by linearity. Encoding acts on M ′ W \mathrm{M}'\mathrm{W} M ′ W , whereas the Bell projection acts on M B \mathrm{MB} MB , so these operations commute. Applying N U \mathcal{N}^{U} N U to M ′ \mathrm{M}' M ′ therefore gives the unnormalized real state after this outcome:
1 4 ( N U ⊗ id Z ) ( ω M Z U ) . \frac{1}{4}\left(\mathcal{N}^{U}\otimes\operatorname{id}_{\mathrm{Z}}\right)\left(\omega^{U}_{\mathrm{MZ}}\right). 4 1 ( N U ⊗ id Z ) ( ω MZ U ) .
For the decorrelated challenge 1 B 2 ⊗ ρ R U \frac{1_{\mathrm{B}}}{2}\otimes\rho^{U}_{\mathrm{R}} 2 1 B ⊗ ρ R U , the same contraction instead gives
1 4 ρ R U ⊗ ω Z U . \frac{1}{4}\rho^{U}_{\mathrm{R}}\otimes\omega^{U}_{\mathrm{Z}}. 4 1 ρ R U ⊗ ω Z U .
Both states have trace 1 / 4 1/4 1/4 for every fixed U U U and every message. Thus the successful outcome does not bias the oracle distribution.
Completing the hiding reduction. On this outcome, the reduction runs the receiver’s remaining computation on RZ. On the other outcomes, it outputs a fixed bit. Its acceptance gap is exactly one quarter of the gap between encoding the chosen message and returning ρ R U \rho^{U}_{\mathrm{R}} ρ R U independently of that message. The reduction uses at most q q q queries, including message preparation. Equation (39) therefore bounds the expected absolute gap in this comparison by 8 h 8h 8 h .
For encoding zero, the reduction first discards the prepared M and substitutes ∣ 0 ⟩ ⟨ 0 ∣ M |0\rangle\langle0|_{\mathrm{M}} ∣0 ⟩ ⟨ 0 ∣ M , preserving ω Z U \omega^{U}_{\mathrm{Z}} ω Z U . The same calculation bounds its gap against ρ R U ⊗ ω Z U \rho^{U}_{\mathrm{R}}\otimes\omega^{U}_{\mathrm{Z}} ρ R U ⊗ ω Z U by 8 h 8h 8 h . The triangle inequality gives
E U ∣ p m e s s a g e ( U ) − p z e r o ( U ) ∣ ≤ 16 h , (40) \mathbb{E}_{U}\left|p_{\mathrm{message}}(U)-p_{\mathrm{zero}}(U)\right|\le16h, \tag*{(40)} E U ∣ p message ( U ) − p zero ( U ) ∣ ≤ 16 h , (40)
where the two probabilities are the receiver’s acceptance probabilities in the chosen-message and zero-message games. This proves hiding for oracle-dependent messages generated through counted queries, including arbitrary entanglement with Z. The reduction’s circuit and initial auxiliary state are independent of the sampled U U U ; intermediate states may depend on U U U through the counted queries.
Security for a fixed oracle sequence
Corollary D.1. Independently sample U λ U_\lambda U λ from Haar measure for every λ ≥ 1 \lambda\ge1 λ ≥ 1 . With probability one over this sequence, every uniform polynomial-query oracle algorithm whose circuit and initial-state preparation have finite descriptions satisfies
∣ Δ A λ ( U λ ) ∣ ≤ 2 − λ / 32 \lvert\Delta_{A_\lambda}(U_\lambda)\rvert\le2^{-\lambda/32} ∣ Δ A λ ( U λ )∣ ≤ 2 − λ /32 for all sufficiently large λ \lambda λ . At security parameter λ \lambda λ , its oracle access is to U λ U_\lambda U λ alone.
Proof. We use Markov’s inequality for each algorithm and then countability to obtain the simultaneous statement.
One fixed algorithm. Fix one such algorithm and a polynomial bound q λ q_\lambda q λ on its query count. By Markov’s inequality and Corollary 5.5 ,
Pr U λ [ ∣ Δ A λ ( U λ ) ∣ > 2 − λ / 32 ] = O ( ( q λ + 1 ) 2 − λ / 32 ) . \Pr_{U_\lambda}\left[\lvert\Delta_{A_\lambda}(U_\lambda)\rvert> 2^{-\lambda/32}\right] = O\left((q_\lambda+1)2^{-\lambda/32}\right). U λ Pr [ ∣ Δ A λ ( U λ )∣ > 2 − λ /32 ] = O ( ( q λ + 1 ) 2 − λ /32 ) .
This is summable in λ \lambda λ , since q λ q_\lambda q λ is polynomial. The first Borel–Cantelli lemma implies that only finitely many of these events occur, with probability one.
All uniform algorithms. There are countably many such algorithms and initial-state preparation procedures. The intersection of their probability-one events still has probability one. The threshold in λ \lambda λ may depend on the algorithm. This simultaneous statement is restricted to uniform algorithms; the averaged statement of Corollary 5.5 applies to each oracle-independent circuit family separately.
The same argument, using the hiding bounds of Corollaries 5.6 and 5.7 , gives almost-sure computational hiding of both protocols against every such uniform receiver.
Statistical binding. For statistical swap binding, Equation (36) and Markov’s inequality give
Pr U [ ϵ U > 2 − λ / 4 ] ≤ 2 ⋅ 2 − λ / 4 . \Pr_U[\epsilon_U > 2^{-\lambda/4}] \le2\cdot2^{-\lambda/4}. U Pr [ ϵ U > 2 − λ /4 ] ≤ 2 ⋅ 2 − λ /4 .
These probabilities are summable. Almost every oracle sequence therefore has swap-binding advantage at most 2 − λ / 4 2^{-\lambda/4} 2 − λ /4 for all sufficiently large λ \lambda λ , uniformly over all sender strategies by the pointwise bound preceding Equation (38) . Bit-commitment binding already holds for every oracle by Corollary 5.6 .