Manuscript Offprint
arXiv:2609.40278Computational Bounds for -Routing
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
The -routing protocol is a leading candidate for quantum position verification [KMS11], but security guarantees for explicit functions remain limited. We prove unconditional resource lower bounds for uniform attackers; our new techniques bypass communication-complexity bounds central to previous works, which are inherently at most linear in the input length.
We show that, for input length and sufficiently small constant , a uniformly generated strategy using qubits and having description length , with success probability at least on every input, implies the following computational bounds on :
-
If the strategies are arbitrary quantum channels, then , where is the class of languages having quantum statistical zero knowledge proofs in which the verifier runs in time (and the simulator in time ).
-
If the strategies are explicit Pauli-sparse unitaries on qubits that have at most nonzero Pauli coefficients, then .
-
If the strategies are Clifford+T circuits using at most magic gates, then .
Time and space hierarchies then yield explicit functions secure against polynomial and even quasipolynomial qubits under our computational restrictions. These bounds exceed the bound of [BCS22] for inner product function , at the cost of restricting adversarial computation and increasing honest evaluation complexity.
Contents
1 Introduction 2
1.1 Main Results 4
1.2 Explicit Security 7
1.3 Discussion 7
2 Proof Overview 8
2.1 Fidelity Bounds 9
2.2 Faster Algorithms for Computationally Bounded Adversaries 11
3 Preliminaries 13
3.1 Quantum Information 13
3.2 Numerical Analysis 14
3.3 Setup 14
4 The Universal Fidelity Gap 16
4.1 Soundness Separability 16
4.2 Completeness inseparability 18
Cornell University. Email: oren@cs.cornell.edu.
Cornell University. Email: nspooner@cornell.edu.
5 Security from Time-Bounded QSZK Hardness 19
5.1 Reduction to Quantum State Distinguishability 20
6 Security against Clifford+T Adversaries 22
6.1 Main Results 22
6.2 Preliminaries 23
6.3 From Clifford+T circuits to -Stabilizer Decompositions 25
6.4 Fidelity from -Stabilizer Decompositions 28
6.5 Proof of Lemma 6.14 29
7 Security against Pauli-Sparse Adversaries 31
7.1 Definitions and Security Results 31
7.2 Explicit Unitaries 32
7.3 Deferred Technical Lemmas 33
7.4 Non-explicit Unitaries 34
One idea for verifying a prover’s location is to give it a distributed challenge, whose parts arrive from different locations, and time its response. Assuming we can estimate the communication and computation times required by all participants, a deadline for combining these parts and responding constrains the distance the messages could have traveled. This follows the principle of distance bounding introduced by Brands and Chaum [BC94].
To make this concrete, we focus on the simplest setting, one-dimensional space, which already captures the essential challenge of position verification. Consider a prover claiming to be halfway between two verifiers and on a line (see Figure 1(a)). The verifiers publicly announce a function that specifies the prover's response to the distributed challenge. Then, the verifiers send independent strings , timed to arrive at simultaneously. The prover must compute and return to both verifiers within the prescribed time.
As observed in the seminal work of Chandran et al. [CGMO09], classical protocols allow two colluding devices on opposite sides of the claimed position to keep copies of the messages they intercept and exchange them. Both then learn in time to provide the required response to their nearby verifier. This “copying” attack, illustrated in Figure 1(b), underlies the impossibility of classical position verification without additional assumptions.
f-routing protocols [KMS11; BFSS13] build on the above idea by using f to specify the destination of a quantum challenge. Verifier sends a quantum state, unknown to the prover, alongside x, and the prover must forward it unchanged to . While the no-cloning principle prevents the classical copying attack, colluding adversaries sharing a large enough entangled state can nonetheless implement the routing task using Non-Local Quantum Computation [Vai03; BK11; BCF 14] (see also the recent monograph by May [May26]). The entanglement cost of the f-routing task for general f remains a wide open question, despite extensive work over the past decade [TFKW13; CSWX14; KP14; RG15; Spe16; AP21; BCS22; CM23; ABM 24; ACCM25; ACM25].
The challenge is to choose f that an honest prover can compute efficiently once both inputs arrive, but whose routing task is costly for spatially separated adversaries. We study this cost in quantum storage and in the resources needed to prepare the shared state and perform local operations.

(a) Honest f-routing

(b) Classical copy-and-forward attack
Figure 1: Spacetime diagrams with instantaneous local computation and communication at the speed of light. In (a), P routes the quantum challenge along the dashed path selected by . In (b), A and B retain and exchange classical copies, allowing both to respond on time.
Throughout this work, we consider this arrangement of two colluding adversaries on opposite sides of the claimed position, whom we call Alice (A) and Bob (B), located near and , respectively. Informally, they intercept their respective challenges, perform local computations, and simultaneously exchange messages before responding to their nearby verifiers. Establishing establish security of f-routing against such adversaries under various restrictions is the main goal of this work. We use the standard worst-case correctness requirement for implementing the f-routing task, requiring a single strategy that succeeds in the protocol with probability on every input pair . Proving worst-case lower bounds is already challenging [BFSS13; ABM 24; AKL 25].
Known Results. Teleportation-based attacks can implement f-routing for any function on n-bit inputs using shared EPR pairs (see [Vai03; BK11; BCF 14; KMS11; BFSS13] and references therein). A recent connection to Conditional Disclosure of Secrets yields a perfect attack for every f using qubits of shared resource and quantum communication (see [ABM 24; LVW17]).
On the positive side, Unruh [Unr14] proved security of an f-measure-based position verification protocol in the random oracle model against adversaries making polynomially many oracle queries, even with unbounded pre-shared entanglement. Colisson Palais, Escolà-Farràs, and Speelman [CPEFS25] showed that m parallel repetitions of their basic f-routing protocol achieve exponentially small soundness against adversaries sharing at most entangled qubits, for a sufficiently small ; the drawback of this protocol is that its quantum resources scale with m.
Further security results and lower bounds under various restrictions on the adversaries were studied as well (e.g., Garden Hose attacks [BFSS13], classical communication [RG15], span programs [CM23], and much more [KP14; RTK 18; May22; ACCM25; ACM25]).
For the most general adversarial models, two main works give resource lower bounds [ACCM25; BCS22]. Here, denotes an upper bound on the number of qubits held by each adversary. The former [ACCM25] proved a lower bound of on the number of quantum gates and measurements. The latter, due to Bluhm, Christandl, and Speelman [BCS22], studied the bounded quantum-storage model. They established information-theoretic security -routing when each of the two adversaries initially holds at most qubits, while each adversary is computationally unbounded. Their explicit construction sets to be the inner-product function .
Theorem 1.1 ([BCS22]). The IP-routing protocol is secure against adversaries each initially holding at most qubits, for a universal constant c.
We emphasize that the storage restriction in Theorem 1.1 is essential for the inner-product function. Indeed, IP-routing admits a perfect attack using shared EPR pairs, since its garden-hose complexity satisfies [BFSS13; KP14].
Additionally, [BCS22] also showed that almost every Boolean function yields security against adversaries holding at most qubits. However, almost all such functions require exponentially large circuits to evaluate, making them impractical for an efficient honest prover. It remains open to describe an explicit function for which -routing requires superlogarithmic entanglement.
1.1 Main Results
In this work we study the relationship between the computational complexity of f and the computational resources required for an attack against f-routing.
Our main contribution is a security reduction that turns a successful f-routing strategy into an algorithm for computing f. At a high level, our idea is to relate to the quantum information produced at an intermediate stage of the strategy, before the adversaries can combine both inputs to evaluate directly. We use their circuit descriptions to reproduce this information and reduce computing to the complement of Quantum State Distinguishability (QSD). In particular, the circuits in the resulting QSD instance are closely related to the adversaries' initialization and local circuits.
To begin with, let us introduce the adversarial model. Turning a successful routing strategy into a uniform computational upper bound on f requires an algorithm that constructs the adversaries' circuits. Henceforth we suppose the strategies are uniform in the following sense.
Definition 1.2. Let . A family of routing strategies is q-uniform if there exist three fixed classical Turing machines ( ) and a fixed constant such that, for every
-
prints a description of a quantum channel preparing the adversaries' initial entangled resource state.
-
For every , the machines and print descriptions of Alice's and Bob's quantum channels implementing their local algorithms on inputs and , respectively. These algorithms process their local resources and determine which message (quantum or classical) to send to the other adversary.
Moreover, the quantum channels act on at most qubits, and all the above machines run in time at most .
Our resource-bounded model is motivated by the wide gap between known attacks and security guarantees for f-routing. For any f, there is a perfect attack using qubits of shared resource and quantum communication . At the other extreme, position verification can be information-theoretically secure provided, even against computationally unbounded adversaries (see ). We study strategies between these extremes, seeking security against larger attacks while keeping honest evaluation of f efficient.
Our model charges for preparing the initial shared state and for generating and carrying out the adversaries' local operations before communication, including any classical or quantum processing of x and y used in those operations. Computation unrelated to the initialization or these input-dependent operations is free. We emphasize that, at a later stage of the protocol, we permit Alice and Bob to process information received from one another and even to know . By this stage, the honest prover would already have had to compute to route correctly. We therefore grant the adversaries this value for free, regardless of the computational cost of obtaining it.
Alice and Bob simultaneously send one message each, which may contain quantum systems and copies of their classical inputs. They then apply local recovery channels to their retained and received systems, as formalized in Section 3.3.
Our full results are generalized for parameterized description length and generation time, but for simplicity, we suppose they scale polynomially with n, q in this overview.
Our main result is a reduction from evaluating in a given input , to an instance of the (complement of) the Quantum State Distinguishability (QSD) problem [Wat02]. Watrous [Wat02; Wat09] showed that QSD is complete for QSZK.
To track the resources of this reduction, we introduce the time-bounded class QSZK(T). Its languages admit quantum statistical zero-knowledge proofs with honest verifier running time at most and simulation time polynomial in and the dishonest verifier's running time (see Definition 5.1).
Theorem 1.3. There exists a universal constant such that for every there is a constant such that, if a q-uniform f-routing strategy is -correct on all inputs for some , then
Here means that the language belongs to .
Our uniform reduction yields security of f-routing for explicit f. Since for a universal constant (following from QIP = PSPACE [JJUW11] and a standard padding argument), the deterministic space hierarchy gives the following unconditional security guarantee.
Corollary 1.4. There exists a universal constant such that for every there is a constant such that there is an explicit family of total Boolean functions for which no q-uniform bounded strategy is -correct on all inputs.
The main advantage of Corollary 1.4 is that it tolerates arbitrary quantum channels (within the stated resource bounds). We illustrate the resulting security bounds and compare them with prior work in Section 1.2. In particular, the above yields unconditional security against adversaries holding arbitrarily polynomial qudits . We reach this regime by allowing more time for honest evaluation while bounding its space usage. This relaxation is, in fact, necessary unless one wants to separate L from P (see [BFSS13]).
We next obtain tighter computational bounds on by further restricting the adversaries' resources. We first consider -uniform Clifford+ strategies, which are -uniform and use at most magic gates in each circuit. For these strategies, we obtain an improved, deterministic algorithm for computing , with running time polynomial in the input length, number of qubits, and circuit size, and exponential only in the number of magic gates.
Theorem 1.5. There exists a universal constant such that for every there is a constant such that if -uniform Clifford+T f-routing strategy is -correct on every input at every input length for some , then
Applying the deterministic time hierarchy again yields explicit functions secure against such strategies.
Corollary 1.6. There exists a universal constant such that for every there is a constant such that there is an explicit family of total Boolean functions for which no -uniform Clifford+T strategy is -correct on all inputs.
Our reduction goes beyond the linear gate bound of Asadi et al. [ACCM25] for -uniform Clifford+T strategies. It tolerates any fixed polynomial circuit-size bound, or even superpolynomial bounds, at the cost of choosing f from a suitably higher level of the deterministic time hierarchy and increasing the honest evaluation time accordingly.
Secondly, we consider -Pauli-sparse strategies, that restrict the adversaries to be implemented by unitaries on at most q qubits, each supported on at most s coefficients in the Pauli basis. This sparsity allows us to compute in time polynomial in , , and . We consider two cases: explicit strategies, in which the Pauli terms and their coefficients can be printed in deterministic time , and non-explicit strategies, in which the strategy is provided by an oracle. In the former case we obtain a deterministic classical algorithm; in the latter, we obtain a bounded-error quantum algorithm.
Theorem 1.7. There exists a universal constant such that for every there is a constant such that the following holds. Suppose a -Pauli-sparse -routing strategy is -correct on every input at every input length for some .
-
If the strategy is explicit and q-uniform, then .
-
If the strategy is non-explicit and q-uniform, then .
The deterministic time hierarchy therefore gives explicit functions secure against explicit Pauli-sparse strategies. For non-explicit strategies, an analogous uniform bounded-error quantum time hierarchy with polynomial overhead is unknown (see discussion in Section 1.3).
Corollary 1.8. There exists a universal constant such that for every there is a constant such that there is an explicit family of total Boolean functions for which no explicit q-uniform -Pauli-sparse strategy is -correct on all inputs.
The main theorem driving our reductions (Theorems 1.3, 1.5 and 1.7) is a new information-theoretic result for f-routing. To state this result, let us first formalize the protocol and the quantum state we examine.
In the standard entanglement-based formulation of f-routing, imagine that the verifiers prepare an EPR pair on . They keep as a reference and send as the challenge qubit. The prover must route the challenge to while preserving its entanglement with . We examine the mid-protocol state , where A, B are Alice's and Bob's systems after they each process their own input locally and send a message to the other based on that processing. Crucially, we can prepare this state without knowing , at a cost comparable to their initialization and local operations costs. See Section 3.3 for the formal definition and Figure 2 for an illustration of these subsystems and the adversaries' shared entanglement.
Our theorem shows that successful routing forces the reference subsystem to be nearly uncorrelated with the adversary who should not receive the challenge. In contrast, it must remain correlated with the intended recipient. We quantify this distinction through the fidelity of the joint state to the product of its marginals.
Theorem 1.9. Let a routing strategy be -correct on input , and let be its mid-protocol state. Define
Then
Intuitively, our bounds quantify the correlations between each adversary and the reference system at the midpoint of the protocol. As expected, the intended recipient of the routed qubit remains entangled with the reference, while the other adversary is nearly uncorrelated with it.
Furthermore, our result extends the product-state characterization of [ACM25], which assumes 1-side perfect correctness , and small error for the other. Our theorem allows nonzero routing error for both output values and gives quantitative completeness and soundness bounds for the fidelity test. Our proof also uses different tools, replacing the Information argument of [ACM25] with direct fidelity inequalities that accommodate nonzero error on both output values.
Therefore, the above implies that for sufficiently small , approximating to a small constant additive error determines .
1.2 Explicit Security
We now instantiate Corollaries 1.4, 1.6 and 1.8 to compare the adversaries' resources with the cost of honest evaluation. Our objective is to relate the adversaries qubits bound to the function's input length . For the restricted models, we also track the Pauli sparsity , description length , and Magic gate count . As above, we assume the printing generation time of the strategies is bounded by . Table 1 summarizes the resulting parameter choices and honest evaluation costs.
| Adversary model | Parameter regime | Honest evaluation cost |
|---|---|---|
| Arbitrary | Polynomial space | |
| Polynomial space | ||
| Explicit -Pauli-sparse | Polynomial time | |
| Quasipolynomial time | ||
| -uniform Clifford+ | Polynomial time | |
| Quasipolynomial time |
Table 1: Explicit security for uniform strategies.
For each fixed polynomial bound , the general-channel construction yields a corresponding function computable in polynomial space (which depends on ). A single family covering all fixed polynomial resources can instead be obtained by allowing a super-polynomial honest space bound, for example . Indeed, permitting larger come with additional computational restrictions and higher honest evaluation costs.
The restricted models permit faster honest evaluation. Indeed, polynomial Pauli sparsity or logarithmically many gates gives polynomial honest time, while the larger sparsity and -gate budgets in the table give quasipolynomial honest time.
Ebits bounds. The number of shared entangled-bits (ebits) is a central benchmark for security against nonlocal quantum computation. In our general model, the parameter bounds each adversary's local qubits, permitting at most shared EPR pairs. In the -Pauli sparse model, an -term Pauli expansion applied to the all-zero state produces a superposition of at most product basis vectors, so its Schmidt rank is at most . In particular, sharing EPR pairs requires , and therefore permits only ebits. For -uniform Clifford+ strategies, ebits can be prepared using Clifford gates and no magic gates at all. Thus the magic count alone imposes no additional restriction on their number.
1.3 Discussion
On Our Techniques. The closest prior results on lower bounds for explicit -routing are due to [BCS22; ACCM25]. The former bounds the adversaries' quantum storage while allowing computationally unbounded local operations, whereas the latter bounds the number of quantum gates and measurements while allowing free classical processing.
These approaches reduce a successful routing strategy to a communication protocol computing , and therefore the resulting resource lower bounds are inherently limited by the linear upper bound for the communication complexity of any , and therefore could not exceed . Our new techniques avoid this limitation by using the fidelity gap to reduce a successful strategy into an algorithm computing .
Time Hirearchy for prBQTIME. For non-explicit uniform Pauli-sparse strategies, our reduction places , for which a uniform time hierarchy with polynomial overhead remains unknown
Sending inputs directly gives upper bounds of bits for one-way communication and bits for simultaneous message passing.
for total Boolean functions. It is plausible that the advice-to-promise technique of He [He25], who proved time-hierarchy theorem for prBPTIME generalizes to quantum computation, yielding a polynomial time hierarchy for prBQTIME. Such extension would imply that for any fixed polynomial resource bounds, our pointwise reduction would yield a partially defined routing function with polynomial-time bounded-error quantum evaluation on inputs where , such that no admissible strategy is -correct on all such inputs. Here denotes inputs outside the promise.
Comparison with CDS. Our results permit security against everywhere-correct strategies using even exponentially many qudits , provided their circuit size, description length, and uniform generation time are suitably bounded. We emphasize that this is compatible with the reduction from CDS to f-routing of Allerstorfer et al. [ABM 24, Corollary 68], which yields a universal attack using resource qubits via the CDS protocols of [LVW17].
The reason is that their bound controls quantum resources while allowing unrestricted local computation. The reduction to INDEX uses the truth table (see [ABM 24, Section 6.3]). In particular, evaluating the CDS message formulas [LVW17, Figure 5] term by term uses evaluations of during local input processing, before communication. This direct implementation already costs more than a single evaluation of , and our model charges for this computation.
Relation to CDQS. Allerstorfer et al. [ABM 24, Theorem 23] established an equivalence between qudit f-routing and Conditional Disclosure of Quantum Secrets (CDQS). This equivalence suggests a possible alternative reduction from everywhere-correct f-routing strategies to the containment . On the other hand, our approach exposes a direct relationship between the mid-protocol state and the computational complexity of f, by identifying a quantity that determines and prove computational bounds on computing it (in terms of the adversaries' success parameters). We find these bounds as of independent interest, as they quantify the information amount Alice/Bob possess about the routed qudit. Later on, we turn this criterion into efficient algorithms for evaluating f from explicit Pauli-sparse and -uniform Clifford+T strategies, translating the adversaries' computational models into security reductions
Another recent paper [AKL 25] also related CDQS to Honest-Verifier QSZK in communication complexity. Their cost measures communication in the proof and its simulation, without bounding the local computation time. These communication bounds are therefore not directly comparable to our time-bounded QSZK(T) statements, which explicitly account for uniform circuit generation and resource-state preparation.
2 Proof Overview
For simplicity, throughout this overview we suppose that all circuits have size , where bounds the number of qubits. We begin with the fidelity bounds that underlie our reductions, describing first the protocol's state development (see Section 3.3 for more details). Initially, Alice and Bob share the state the following state with Alice holding system L and Bob holding R:
Here I is a quantum channel describing the preparation of the initial state from the all-zero ancilla.
Then, the Verifiers prepare the EPR state , and sample , respectively. sends Alice the challenge register and , whereas sends to Bob. Alice and Bob now apply their
A possible adaptation of [He25] is as follows. Fix constants . By the quantum time hierarchy theorem with one bit of advice [MP06], choose a language , and let denote the advice bit used by its -time algorithm. Consider the promise problem on inputs with answer . The proposed argument is that reading the advice from the input would give a uniform -time quantum algorithm, whereas an -time algorithm would decide with one advice bit, contradicting its choice.
local strategies, each relying only on their own input. Specifically, Alice applies the channel and Bob applies , therefore preparing the mid-protocol state
Here and are the subsystems Alice and Bob intend to send to each other, respectively. Each chooses the partition into retained and outgoing subsystems using only their local input. After the exchange, we denote Alice's and Bob's systems by and , respectively, and write the mid-protocol state as .
After exchanging their systems and classical inputs, Alice and Bob both know . We allow them to use in their final local computation, just as the honest prover uses it to choose where to send the challenge. They then apply their final decoding channels and , respectively, producing the final-protocol state
Correctness requires that depending on the value , either Alice or Bob should be able to output a qudit that is highly entangle with the reference system, that is:
We emphasize that each adversary’s pre-communication channel , including which registers to exchange with each other (i.e., the partition and ), depends only on its local input . Thus, given , we can construct a circuit preparing without computing itself.
Now, suppose the strategy is -correct on input . We compare each adversary's joint state with the reference to the product of its marginals by defining:
Intuitively, and measure how close each adversary's joint state with the reference is to the product of its marginals. We show that, depending on the value of , one quantity is close to 1 while the other is bounded away from 1. The intended recipient can recover entanglement with the reference, while the other adversary's joint state with the reference is approximately a product state. For sufficiently small , these bounds leave a constant gap, so approximating to sufficiently small constant additive error determines . This reduces computing to estimating the fidelity of states prepared from the strategy.
2.1 Fidelity Bounds
Lower bound. Suppose and the adversaries route the qubit correctly with probability at least . Bob can then recover a qubit that is nearly maximally entangled with the reference. We show that this forces Alice's joint state with the reference to be approximately a product state, namely
The key point is that an EPR pair is pure, so Bob's recovery of an approximate EPR pair leaves little room for correlations with Alice. We make this precise by applying Bob's decoder and using Uhlmann's theorem. Tracing out Bob's system then gives a product approximation to Alice's unchanged joint state with the reference.
Throughout this overview, we say that two states are approximately the same if their fidelity is at least .
We now formalize this argument. We first apply Bob's post-communication decoding channel to the mid-protocol state (leaving Alice's system and reference untouched):
Correctness guarantees that is close to an EPR pair, so Uhlmann's theorem implies that is close to this EPR pair tensored with some state on Alice's register:
Since Bob’s decoding channel is trace preserving and acts only on his system, it leaves Alice’s joint state with the reference unchanged. Thus, and have the same reduced state on , and discarding Bob’s decoded register in the comparison above shows that this state is close to a product state:
Taking another marginal and discarding the reference system shows that must itself be close to Alice's actual marginal :
Thus we may replace by , and the fidelity-angle triangle inequality shows that is close to the product of its marginals:
In short, Bob’s successful recovery of the EPR pair forces Alice to be approximately decoupled from , and combining everything together yields
Upper Bound. We now complement the result with an upper bound on the fidelity of Bob's joint system. Suppose that , and suppose that the adversaries successfully route the qudit to Bob. We would like to show that Bob's mid-protocol state is highly non-product across the cut , in the sense that
To see this, apply Bob's decoder to both the “true state” and the corresponding “product state” . On the true state, correctness says that the decoder recovers a state that has high fidelity with the EPR state:
Consequently, an EPR measurement on accepts with high probability
Now apply the same decoder to the product state. Because Bob's decoder acts only on B, it cannot create correlations with the untouched reference register . Hence its output remains a product state, denoted :
Such a product state passes the EPR measurement with probability exactly
Consequently, the two decoded states behave very differently under the EPR measurement (Equations (1) and (2)), and hence their fidelity is bounded . To transfer this upper bound to the mid-protocol states, we use the data-processing inequality for fidelity. Applying Bob's decoder to both states cannot decrease their fidelity, so
That implies the true state cannot be close to the product of its marginals: successful recovery by Bob requires substantial correlations between B and the reference register .
2.2 Faster Algorithms for Computationally Bounded Adversaries
In Section 2.1, we reduced computing from a successful strategy to estimating the mid-protocol fidelity . The two states in this fidelity can be prepared by running the adversaries' resource preparation and pre-communication circuits, with only polynomial overhead. For arbitrary channels, this gives a QSZK protocol whose verifier time is polynomial in the strategy's resources, including the time needed to generate its circuits (Theorem 5.2).
Our goal now is to obtain tighter security bounds by exploiting restrictions on these circuits to compute the fidelity directly. We consider Pauli-sparse and -uniform Clifford+T strategies, which restrict the implementations of the resource preparation I and the local channels , . In each case, their structure lets us reduce the fidelity computation to a small matrix. The resulting algorithm, combined with the fidelity gap, gives a time bound for computing f from a successful strategy, and hence security for functions that require more time.
Clifford+T Adversaries. We consider -uniform Clifford+T strategies. To analyze these strategies, we study states prepared by Clifford+T circuits on q qubits, with at most t magic gates (recall we suppose these circuits have size for simplicity). At a high level, we separate out fixed factors and reduce the fidelity computation to a calculation on a logical state of only qubits. This gives a deterministic algorithm running in time for constant additive error.
To obtain this separation and compute the residual state, we introduce an -stabilizer decomposition for a Clifford+T-prepared state , consisting of the following two kinds of known decompositions.
- First, we represent using an m-stabilizer decomposition, following the approach of Bravyi et al. [BBC 19]. Such a decomposition expresses the state as a linear combination of m stabilizer states,
With at most magic gates, we can construct such a decomposition with . Indeed, each magic gate is a linear combination of two Clifford gates, and each Clifford gate maps a stabilizer state to a stabilizer state. Thus each magic gate at most doubles the number of stabilizer terms, while Clifford gates leave it unchanged (see Lemma 6.12).
- Second, we use the stabilizer notion nullity introduced by Beverland et al. [BCHK20]. The Pauli operators that fix form its stabilizer group. For a q-qubit stabilizer state, this group has q independent generators. However, an arbitrary pure state may have fewer independent generators. This deficiency is called stabilizer nullity. We record independent Pauli operators satisfying
With at most magic gates, we can efficiently find such operators with . Clifford gates preserve the number of independent stabilizers, while each magic gate loses at most one (Lemma 6.12).
We use this decomposition as follows: we efficiently construct a state , that on the one hand admits -decomposition, and on the other, its Schmidt coefficients capture the target fidelity. Let and be pure states prepared by Clifford+T circuits, each with at most magic gates. We want to compute the fidelity of their reduced states on ,
Using the identity , we reduce computing the fidelity to computing the singular values of
The matrix M can still be exponentially large in q. To this end, we regard its entries as the amplitudes of a bipartite vector, whose Schmidt coefficients are exactly the singular values of M, by defining
where and are computational bases of the environment systems and , respectively.
The partial trace defining corresponds to projecting the two registers of onto EPR pairs and keeping the environment registers. In Lemma 6.11, we use the decompositions of the two purifications, and show how to construct an explicit -decomposition with and .
Our next goal is to reduce the fidelity computation to a small logical state. We use the two parts of the decomposition in turn. The nullity bound will let us isolate this logical state, and the expansion into stabilizer states will then let us compute its amplitudes.
To see why small nullity helps, write for the number of qubits of . The decomposition gives independent Pauli constraints on this state. A suitable Clifford change of basis turns each constraint into the requirement that a distinct qubit be (Theorem 6.16), leaving only logical qubits to describe. However, this change of basis may act jointly on the two environment registers and alter the Schmidt coefficients of across , whose sum is the target fidelity. To recover the fidelity, we need a reduction that preserves these coefficients.
We therefore use Clifford circuits acting separately on the two environment registers. Such local changes of basis preserve the Schmidt coefficients. In Lemma 6.14, we show that they separate out fixed states, leaving a logical state on at most qubits. This gives efficiently computable circuits acting on the respective sides, with
where occupies only qubits, and is the EPR state.
The zero states and EPR pairs contribute known factors, so it remains to compute the sum of the Schmidt coefficients of .
The small size of is useful only if we can also compute its amplitudes. For this final step, we return to the explicit expansion of into at most stabilizer states. We use stabilizer calculations on each term to recover the amplitudes of in time poly( , ).
Finally, since occupies only qubits, its coefficient matrix across the cut has size . Approximating its singular values gives the Schmidt coefficients to the required precision in time poly( , ). Combining their sum with the contribution of the fixed factors in Equation (3) gives the desired fidelity estimate within the same time bound.
Pauli Sparse Unitaries. We consider unitaries with sparse Pauli decomposition. Let be two -Pauli-sparse unitaries on qubits, and suppose they both act on two subsystems . Let be the reduced states on of , respectively. Our goal is to reduce the fidelity computation
to a matrix whose size depends on s. We first assume that the Pauli decompositions of U, V are given explicitly, and later obtain them by learning.
To see how sparsity helps, decompose U into a linear sum of Pauli matrices:
Observe that each Pauli maps to a computational-basis vector up to a phase. Absorbing these phases into coefficients gives
This is a sum of at most product vectors, so its Schmidt rank across is at most . To turn this rank bound into an explicit factorization of , we group terms with the same , giving
Tracing out now gives , where the columns of are the at most vectors . Applying the same construction to gives with at most columns as well. These factorizations reduce the fidelity computation to
The sparse descriptions let us construct the at-most- matrix in time poly . Approximating the sum of its singular values therefore gives the desired fidelity estimate in roughly the same time.
When the Pauli decompositions are not given explicitly, we use a quantum learning algorithm to identify the significant Pauli coefficients and estimate their amplitudes. After discarding small coefficients and normalizing the resulting vectors, we obtain explicit sparse descriptions to which the same fidelity computation applies. Choosing the learning error sufficiently small gives a constant-additive-error fidelity estimate with bounded error in time poly(q, s).
3 Preliminaries
3.1 Quantum Information
Lemma 3.1 (Fuchs–van de Graaf; [NC00, Eq. (9.110)]). For states ,
Theorem 3.2 ([NC00, Sec. 9.2.2]). For all states ,
Proof. Define the fidelity angles
Since fidelity takes values in , we have . The triangle inequality for the fidelity angle gives
Since and cosine is decreasing on this interval,
Using the cosine addition formula concludes the claim:
Fact 3.3 ([Wat18, Theorem 3.27]). The Fidelity of two states is nondecreasing under any quantum channel :
Fact 3.4 ([Wat18, Eq. (1.132)]). For any two operators A, B:
3.2 Numerical Analysis
We make use the following standard fact about computing singular values.
Theorem 3.5 ([Wik]). There is a deterministic algorithm that, given , an accuracy , and the entries of a matrix as rationals of bit length at most , outputs the singular values of , and in particular , up to additive error , using bit operations.
The SVD polynomial time complexity is folklore in the numerical linear algebra literature. We complement it with a brief accounting for the bit complexity of truncation and the resulting approximation error.
Let , and let be obtained by truncating each entry of to absolute error at most . Writing for the th largest singular value, we have, for every ,
Thus, computing each to additive error gives error at most per singular value and at most in their sum, . The truncation requires only fractional bits per entry.
3.3 Setup
We first describe the routing strategy and the notation for its state at each stage of the protocol. This setup is common to all of our results. The computational assumptions on the adversaries' circuits will be specified separately in the corresponding sections.
Definition 3.6 (Uniform circuit-generated routing strategies). Let be time-constructible, nondecreasing functions, with . All registers are -dimensional qudits. For every , the strategy fixes systems
and we write
A uniform -bounded f-routing strategy is specified by five fixed, uniform, deterministic Turing machines which generate the resource preparation and Alice's and Bob's pre- and post-communication circuits, denoted by
The generators satisfy the following properties:
- Resource-state preparation. For every n, machine outputs the description of a quantum channel preparing the adversaries' initial entangled resource state.
- Adversarial circuits. For every and , the machines and output descriptions of Alice's and Bob's pre-communication channels, respectively:
- Post-communication channels. For every , , and , the machines and output descriptions of Alice's and Bob's post-communication channels, respectively:
- Resource bounds. For every , each of the five generator machines runs in time at most . Alice's and Bob's pre- and post-communication channels act on at most qudits each, while the resource channel acts on at most qudits. The combined description size of all five generated channels is bounded by
The Protocol's State. Let us now describe the protocol's state development. Fix n. See also Figure 2 for illustration.
- The initial state consists of an EPR pair and the adversaries' resource state, prepared on registers L and R:
-
The challenges are sampled.
-
Alice and Bob locally apply their pre-communication channels, producing the mid-protocol state
Alice sends to Bob, and Bob sends to Alice. After this exchange, Alice holds and Bob holds .
- For , Alice and Bob apply the corresponding local post-communication channels, producing the final state
time

Figure 2: Spacetime view of an f-routing attack and the evolution of the state. The lower arc denotes pre-shared entanglement, and retains . For , the verifiers test .
We say that the strategy is -correct on input if
4 The Universal Fidelity Gap
Our main theorem in this section is a universal fidelity gap for any f-routing strategy that is -correct on an input .
Theorem 4.1. Let . Consider an f-routing strategy that is -correct on an input , and assume . Let be its mid-protocol state, and define
Then
Proof. The two bounds follow from Lemmas 4.2 and 4.3, respectively.
For routing with perfect 1-sided error, namely when whenever , Asadi, Culf, and May [ACM25, Lemma 5] established that and . Our theorem gives quantitative fidelity bounds that remain valid for nonzero error.
4.1 Soundness Separability
Lemma 4.2. Let . Consider an f-routing strategy that is -correct on an input satisfying , and let be its mid-protocol state. Then
Proof. We begin with the triangle inequality that will drive the proof. For a state to be chosen below, define
Applying Theorem 3.2 through the intermediate product state gives
We will later choose such that . Substituting these two bounds into the above will then give the desired lower bound on :
We move forward to choosing . Since the strategy is -correct and , Bob's post-communication decoder produces the state
Since Alice’s post-communication channel is trace preserving and acts only on A, applying it does not change the marginal on . Hence, the correctness condition from Section 3.3 implies that its marginal satisfies
Because is pure, Uhlmann's theorem provides a state such that
We first bound . Since is trace-preserving and acts only on ,
(5)
Moreover, since the register is untouched throughout the protocol,
Therefore,
(Equation (5))
(monotonicity under )
(Equation (4))
We next bound . Using multiplicativity of fidelity for tensor product, it follows that
because for any state , its fidelity with itself is .
Finally, using the monotonicity of fidelity,
(monotonicity under tr_{\overline{Q}})
4.2 Completeness inseparability
Lemma 4.3. Consider an f-routing strategy that is -correct on an input satisfying , and let be its mid-protocol state. Then
Proof. To bound the target fidelity, we apply Bob's decoding channel on both states and observe how they relate to each other. Denote
By the data-processing inequality for fidelity (Fact 3.3):
To bound the fidelity , we compare the probabilities with which the two states pass the EPR test. Consider the channel that measures in the basis, namely for every state it acts as follows
Since the outputs of M are classical states, their fidelity can be computed directly:
(6)
We bound these quantities in Lemmas 4.4 and 4.5 and deduce:
18
□
Lemma 4.4. Under the hypotheses of Lemma 4.3, let
Then .
Proof. Since Alice’s post-communication channel is trace preserving and acts only on A, the correctness condition implies
Therefore
Lemma 4.5. Under the hypotheses of Lemma 4.3, let
Then
Proof. Since acts only on B,
The register is the reference half of and is untouched by every map of the protocol, hence its marginal is exactly the maximally mixed state
Applying Fact 3.4 with and , and using ,
5 Security from Time-Bounded QSZK Hardness
A successful uniform routing strategy produces two efficiently preparable states whose fidelity determines . Converting the fidelity gap into a trace-distance gap gives a reduction to Quantum State Distinguishability, and therefore places f in time-bounded QSZK.
We use the following time-bounded version of Quantum Statistical Zero Knowledge [Wat02; Wat09]. Throughout this section, all time bounds are time-constructible and satisfy .
Definition 5.1. The complexity class QSZK(T) consists of all languages having a Quantum Statistical Zero-Knowledge proof whose honest verifier Ver runs in time at most and for which every verifier Ver* running in time has a simulator SimVer* running in time poly( ) on inputs of length n. The statistical simulation error is negligible in n.
For a family of Boolean functions
we write when the associated language of belongs to the class, namely
Observe that the usual class QSZK is recovered by taking the union over polynomially bounded functions T.
Our main theorem in this section is a security reduction, from a uniform f-routing strategy to a time bounded QSZK algorithm computing f.
Theorem 5.2. There are a universal polynomial p and a constant with the following property.
If a uniform -bounded f-routing strategy is -correct on every input, where , then , where
We also observe that can be simulated in deterministic space, which can be read as the quantitative form of . Formally, for every time bound , let denote the class of languages having a Quantum Interactive Proof system whose verifier runs in time at most . Then,
Theorem 5.3 ([JJUW11]). There is a constant such that, for every time-constructible ,
Proof. For a (uniform) QIP verifier V, denote by the maximum acceptance probability of V in an interaction. Consider the following natural complete promise problem for QIP:
Clearly , so there exists a such that . Any reduces to with instance length , from which it follows that .
One advantage of our uniform techniques is that the deterministic space hierarchy theorem provides unconditional choices of hard functions. Indeed, observe that simply by ignoring the zero-knowledge requirement, we have that for some universal constant , for every time bound , we have that . Therefore by Theorem 5.2:
Corollary 5.4. There is a family of total Boolean functions for which no uniform -bounded f-routing strategy is -correct on every input for any , where
5.1 Reduction to Quantum State Distinguishability
For any two density matrices , we use the distance metric
Definition 5.5 (Quantum State Distinguishability). Let be constants such that . The promise problem consists of pairs of quantum circuits having designated output registers of the same dimension. Let be the reduced state on the output register obtained by running on the all-zero state and tracing out the other registers. The promise is:
-
Yes: .
-
No: .
Similarly, we define the complement problem of as . We use the following result of [Wat02; Wat09].
Theorem 5.6. For any constants ,
In what follows, fix an arbitrary input length n and write , , , and .
Lemma 5.7. There are a constant and a universal polynomial such that the following holds.
Suppose that an f-routing strategy is a uniform -bounded strategy that is -correct on every input, where . Then, for some universal constants , there is a deterministic many-one reduction computable in time from to .
Proof. On input , where , the deterministic reduction first generates the resource preparation and Alice's and Bob's pre-communication channels,
and then constructs a circuit preparing the mid-protocol state
By Section 3.3, the generators run in time at most , the generated channels have total description length at most L, and each adversarial side uses at most q qudits. Additionally, the reduction needs to prepare the d-dimensional EPR pair, which takes time. Thus, for a universal polynomial , the reduction runs in time at most
We can therefore deterministically generate descriptions of two state-preparation circuits and as follows:
- The circuit prepares once, discards B, and outputs
- The circuit runs two independent copies of the same preparation, keeps from the first copy and A from the second copy, and outputs
The two circuit descriptions have total length and can be generated deterministically in time . Enlarging by a universal constant factor, if necessary, we may bound both quantities by .
By the routing fidelity bounds in Section 4, using ,
Then by Fuchs–van de Graaf inequalities (Lemma 3.1) give
We may fix a universal constant such that
Thus, for every ,
Consequently, the deterministic map maps yes-instances of to yes-instances of coQSD and no-instances of to no-instances.
Proof of Theorem 5.2. We specify a QSZK(T) verifier V for . Given input , compute as given by Lemma 5.7. Then run the QSZK verifier for coQSD given by Theorem 5.6. The total running time of V is at most polynomial in ; we can therefore choose a polynomial p such that its running time is at most .
6 Security against Clifford+T Adversaries
6.1 Main Results
In this section, we focus on Clifford+T adversaries.
Definition 6.1. A Clifford+T circuit W is an -Clifford+T circuit if it contains at most L gates in total, of which at most t are Magic gates.
Definition 6.2. Let . A uniform -bounded -routing strategy is -Clifford+T strategy if the resource generated channels are all -Clifford+T circuits, for every .
For the remainder of this section, fix an arbitrary input length , and write , , , , and .
Fix two -Clifford+T circuits and on registers and comprising and qubits, respectively, and write
The following claim bounds the cost of preparing a product of marginals of states, each of which is prepared by a Clifford+T circuit.
Claim 6.3. If is a reduced state of a -Clifford+T circuit on q qubits, then is a reduced state of a -Clifford+T circuit on 2q qubits.
Proof. Let be the given circuit and, abusing notation, write for a purification of . The circuit prepares |\rho\rangle_{\overline{\mathbf{q}}_{\mathbf{A}}\mathbf{E}} \otimes |\rho\rangle_{\overline{\mathbf{q}}'_{\mathbf{A}}'_{\mathbf{E}}'}, and tracing out all registers except gives , yielding the desired state. The circuit acts on qubits, has size at most , and contains at most magic gates.
Our main result approximates the fidelity of reduced states prepared by Clifford+T circuits:
Theorem 6.4. For every , given and , a deterministic classical algorithm outputs satisfying
The algorithm runs in deterministic time .
The proof is developed in Section 6.4. Combining Claim 6.3 and Theorems 4.1 and 6.4 gives the following corollary.
Corollary 6.5. There are universal constants and such that the following holds. Suppose is a power of Let be a family of functions.
If there exists a uniform -bounded -Clifford+T f-routing strategy that is -correct on every input at every input length for some , then
Proof. Since is a power of two, the challenge EPR pair is prepared using Clifford gates and no magic gates. Composing this preparation with the three adversarial circuits gives a mid-protocol purification on qubits of circuit size with at most magic gates. Applying Claim 6.3 and Theorem 6.4 and the constant fidelity gap from Theorem 4.1 gives the claimed running time, including the strategy-generation cost .
6.2 Preliminaries
Recall that the stabilizer group of a nonzero pure vector (a possibly unnormalized pure state) on q qubits is
The rank of Stab( ) is the number of its independent generators. A stabilizer state is a pure state whose stabilizer group has rank q, namely, whose stabilizer group is generated by q independent Pauli operators. The stabilizer nullity [BCHK20] counts the number of independent stabilizers missing from a full set of q generators.
In this section, we also work with “pure vectors”, namely non-normalized pure states.
Definition 6.6 ([BCHK20]). The stabilizer nullity of a q-qubit pure vector is defined as
We make use of stabilizer decompositions.
The restriction is for simplicity.
Definition 6.7 ([BBC 19]). An m-stabilizer decomposition of a pure vector is a linear combination of m many stabilizer states :
The decomposition is explicit if the coefficients and Clifford circuits preparing each are given explicitly.
We combine the expansion with a set of independent stabilizer generators.
Definition 6.8. Fix integers , and . An -stabilizer decomposition of a q-qubit vector consists of:
-
an m-stabilizer decomposition ;
-
independent commuting Hermitian Pauli operators satisfying the following:
• ,
• for all .
The decomposition is explicit if its m-stabilizer decomposition is explicit and all 's are given explicitly.
We use the following computational tool for partial projections of stabilizer states.
Theorem 6.9 (See [BBC 19, Sections 2.2 and 4.1]). There exists a deterministic algorithm that, given two Clifford circuits A, B, preparing the stabilizer states and , where , and given a p-qubit subsystem S of , outputs a Clifford circuit D and scalar such that
The algorithm runs in deterministic time .
We make use of the following formula to compute the fidelity.
Theorem 6.10 ([Wat18, Lemma 3.21]). Let and be purifications of and . Then
Therefore, defining
we have
Thus, it suffices to compute and sum the singular values of . Choose computational bases of and of , and define the “vectorization” of as
Now observe that the Schmidt coefficients of , namely , are the singular values of , and their sum is the target fidelity.
The algorithm has two parts. First, we give an explicit -stabilizer decomposition for . Second, we use the decomposition to compute the fidelity.
For the Clifford+T constructions below, coefficients lie in , since . We encode their real and imaginary parts separately as and , with rational , and include their bit lengths in the input description length.
6.3 From Clifford+T circuits to -Stabilizer Decompositions
Our main lemma in this subsection is the following description of .
Lemma 6.11. There exists a deterministic algorithm that, given and , computes an explicit -stabilizer decomposition of with
The algorithm runs in time .
To this end, we first construct -stabilizer decompositions for Clifford+T states. This construction follows from [BBC 19; GOL25]; we include a proof for completeness.
Lemma 6.12. There exists a deterministic algorithm that, given a -Clifford+T circuit on qubits, computes an explicit -stabilizer decomposition of , where
The algorithm runs in deterministic time .
Proof. We induct on the number of magic gates. For , is Clifford, so its output has an explicit -stabilizer decomposition. Indeed, the stabilizer decomposition is simply as a stabilizer state; the independent stabilizer group generators are , for all .
Assume the induction hypothesis for ; we prove the claim for . A final Clifford layer preserves both parameters, so it suffices to consider where is a Clifford circuit and is a Clifford+T circuit with magic gates. By induction, has an explicit -stabilizer decomposition with and .
Writing the stabilizer decomposition as and expanding the magic gate as (where are scalars), we obtain
Since and are Clifford, this gives an explicit stabilizer decomposition with terms. Let be the supplied stabilizer subgroup of , of rank , and define
Now observe that every stabilizes . Since and , also commutes with . Therefore every satisfies
Conjugation by preserves the rank of . To obtain , we restrict to the elements commuting with , imposing at most one independent linear constraint. Hence,
We conclude by verifying the claimed running time. The generator updates use Clifford conjugation and Gaussian elimination and take polynomial time in . The expansion has at most terms, each specified by a Clifford circuit of size and a product of at most coefficients . These products have exact encodings of bit length , and their arithmetic takes polynomial time. Thus the total running time is .
We can now prove:
Proof of Lemma 6.11. We first construct the m-stabilizer expansion of . Applying Lemma 6.12 to and computes the stabilizer decompositions
where each and is a stabilizer state, and .
Substituting these decompositions into Equation (7) gives
Let be the number of qubits in , so . By Theorem 6.9, each (non-normalized) vector is a computable scalar times a normalized stabilizer state. The contraction uses the unnormalized Bell vector, so its scalar includes the factor . Absorb each scalar into and henceforth use for the normalized state. For a zero contraction, set and . This gives an explicit expansion with at most terms.
Next, we compute independent stabilizers of . The application of Lemma 6.12 above also supplies independent stabilizer generators and of and , respectively, where . Thus the product state is stabilized by
These generators are jointly independent because the two independent sets act on disjoint registers. The product therefore has qubits and supplied independent stabilizers, where
Recalling that
observe that is obtained by contracting each of the corresponding pairs of qubits in with the unnormalized EPR state. Each Bell contraction can be implemented (up to a scalar) by a two-qubit Clifford unitary followed by two single-qubit projections onto . Clifford unitaries preserve the number of independent stabilizers, whereas in Lemma 6.13 we show that each single-qubit projection loses at most one per independent stabilizer. Hence the Bell contractions lose at most independent stabilizers. The number of independent generators we obtain therefore satisfies
Thus , as required. The generators stabilizing can be computed in polynomial time by applying the procedure in Lemma 6.13 to each Bell contraction, and computing the coefficients and stabilizer states takes time .
Recall that .
Finally, we prove the following technical lemma.
Lemma 6.13. Let be a q-qubit vector, where is a single-qubit register. Consider the post-selected state , where is projected onto , and suppose . That is,
There exists a deterministic algorithm that, given the subgroup of stabilizers , outputs a subgroup such that
The algorithm runs in deterministic time poly(q).
Proof. The Pauli stabilizers of are . Therefore we argue that the stabilizers of are as follows:
To see that, observe that if , then
The same chain holds with in place of , proving that every stabilizes .
Computing generators of can be found from the given generators of by Gaussian elimination in time poly(q).
For the rank bound, let and let be independent generators of . The construction has two steps: (1) retain the stabilizers commuting with , and (2) delete their factor on a. Each step loses at most one independent generator. We show that they cannot both cause a loss, giving .
(i) If , all input stabilizers commute with it, so step (1) loses nothing. We may choose the generating set so that
and write the remaining generators, for suitable , as
Replacing by preserves independence. Step (2) therefore leaves the independent generators , losing only .
(ii) If , consider two cases:
(a) If all commute with , write , for some Pauli operators and . After deleting the qubit, the remain independent: otherwise, for some nonempty ,
which holds if and only if
However, the product cannot equal , because the are independent and is nonempty. It cannot equal either, because this product belongs to , whereas . Thus remain independent, and all generators survive.
(b) Otherwise, suppose without loss of generality that anticommutes with . Define , and for define
Clearly are still independent because all the modifications are reversible. Each commutes with , so discarding leaves independent commuting generators. Now apply the argument of case (a) to in place of . These are independent generators in commuting with , and still holds. Therefore, deleting their factor on a preserves independence, leaving generators.
Thus in both cases,
6.4 Fidelity from -Stabilizer Decompositions
We now use the computed -stabilizer decomposition to reduce the fidelity calculation to a small matrix.
The first lemma shows how to locally modify -stabilizer states into another state which is fixed but on at most qubits. This local Clifford normal form follows from [GOL25, proof of Theorem 8]; we include a proof for completeness.
Lemma 6.14. Let be a q-qubit pure vector given by an -stabilizer decomposition.
Then there exist local Clifford unitaries , and a pure vector on at most qubits such that
If the decomposition is explicit, then and the locations of the registers on the right-hand side can be computed in polynomial time.
We defer the proof to Section 6.5.
We next compute the amplitudes of from Equation (8).
Lemma 6.15. Let be a vector given by an explicit -stabilizer decomposition. Then there is a deterministic algorithm that computes the computational-basis amplitudes of from Equation (8), exactly in deterministic time , where is the input description length.
Proof. Write the m-stabilizer decomposition of as . For every computational-basis string on the residual qubits, Equation (8) gives
The coefficients and Clifford circuits are explicit, so each summand, including its phase, is computable exactly by Theorem 6.9. Summing the m terms takes polynomial time in the input description length. There are at most strings z, giving the claimed running time.
We finish the proof of Theorem 6.4 by assembling these steps and computing the Schmidt coefficients of .
Proof of Theorem 6.4. Apply Lemma 6.11 to obtain an explicit -stabilizer decomposition of . Then Lemma 6.14 computes local Clifford unitaries and such that
Apply Lemma 6.15 to compute the at most amplitudes of .
Let be the coefficient matrix of across the residual qubits of and . Writing for basis strings on these residual registers,
The singular values of are the Schmidt coefficients of . Moreover, the local Clifford unitaries and the local factors do not change the Schmidt coefficients, while each Bell pair multiplies their sum by . Therefore,
Applying Theorem 3.5 to a sufficiently accurate rational approximation of gives the required -additive estimate. The bounds on the matrix dimensions and coefficient bit lengths give a running time of
□
6.5 Proof of Lemma 6.14
We use the following two stabilizer normal-form theorems. The following follows from the original work of [AG04], though we use the following formalization.
Theorem 6.16 ([YJS19, Lemma 3.5]). Let be independent commuting Hermitian Pauli operators on qubits such that . Then, there is a Clifford unitary , computable in deterministic time , such that
Theorem 6.17 ([LG11, Theorem 7]). Let be a pure stabilizer state over q qubits. There exist Clifford unitaries acting on A, B, R, respectively, such that for some integers :
Given stabilizer generators for , the integers above and stabilizer tableaus for can be computed in time .
We can now prove:
The original theorem writes the local factors as states. Applying a Hadamard gate to each qubit belonging to a local factor transforms into . These Hadamard gates are local Clifford gates and may therefore be absorbed into .
Proof of Lemma 6.14. The given independent stabilizers of have a simultaneous +1 eigenspace that is a stabilizer code of dimension . Thus, encodes logical qubits, and .
By Theorem 6.16, there is a Clifford encoding unitary V such that B is an orthonormal basis of C:
Introduce a reference system R of qubits and define
Thus, is maximally entangled between the registers AB (namely, the code C) and R. It is also a stabilizer state because the state inside the parentheses is a tensor product of stabilizer states and V is Clifford.
Let , and decompose using the basis :
Then, observe that
where
Now invoke Theorem 6.17 on . The theorem gives local Clifford unitaries that transform the state into a tensor product of local states, Bell pairs, and GHZ states. We denote the resulting state by
Because is maximally entangled between AB and R, its reduced state on R is the maximally mixed state. Therefore, the reduced state of is also the maximally mixed state, so altogether
Hence, no qubit of R can occur in a local factor decomposition of . Thus, every qubit of R belongs to an AR Bell pair, a BR Bell pair, or an ABR GHZ state. Therefore,
An AR or BR Bell pair contains one qubit from AB, while an ABR GHZ state contains two. Thus, all factors involving R contain the following number of qubits from AB:
Let be the tensor product of all factors involving R. After locally reordering the remaining factors,
Define
Using the expression for above gives
Since contains at most qubits from AB, the vector is supported on at most qubits. Taking , to include , and the local reordering of the tensor factors proves the result. All the required transformations are computable in polynomial time by the cited stabilizer-tableau reductions.
7 Security against Pauli-Sparse Adversaries
7.1 Definitions and Security Results
Let denote the Pauli basis group. Recall that any unitary expands uniquely in the Pauli basis as
In this subsection, we focus on adversaries whose unitaries are -Pauli-sparse:
Definition 7.1. A unitary U is -Pauli-sparse if U acts on q qubits and its Pauli spectrum has support size at most s, namely:
We say that U is explicit if its nonzero Pauli coefficients and names can be computed to poly(q) bits of precision in classical time poly(s, q).
Definition 7.2. Let . An -routing strategy is (explicit) -Pauli-sparse if the unitary implementations of its resource-preparation and pre-communication channels are (explicit) -Pauli-sparse unitaries, for every and .
Following Definition 3.6, -uniformity means that the generators print descriptions of the unitaries in time at most , with total description length at most . In the case of explicit unitary, we mean printing the explicit description; in the case of non-explicit unitary, we mean access the unitary via an oracle.
For the remainder of this section, fix an arbitrary input length n and write , , , , and .
The following claim bounds the cost of preparing a product of marginals of states prepared by Pauli-sparse unitaries.
Claim 7.3. If is a reduced state of a -Pauli-sparse unitary, then is a reduced state of a -Pauli-sparse unitary.
Proof. Let be the given unitary and, abusing notation, write for a purification of . The unitary prepares , and tracing out all registers except gives , yielding the desired state. Since
the unitary acts on 2q qubits and has Pauli support size at most .
Our main result approximates the mid-protocol fidelity of both explicit and non-explicit Pauli-sparse routing strategies.
Theorem 7.4. Fix an input and suppose the -routing strategy is -Pauli-sparse and -uniform. Write . Then there exists an algorithm, that given and , outputs that approximate , whose complexity is as follows:
-
If the strategy is explicit, the algorithm runs in deterministic classical time .
-
If the strategy is non-explicit, the algorithm runs in bounded-error quantum time .
The proof for explicit strategies is developed in Section 7.2, and for non-explicit strategies in Section 7.4.
Plugging Theorem 7.4 into Theorem 4.1, we obtain security against Pauli-sparse adversaries.
Corollary 7.5. There are universal constants and such that the following holds. Let be a family of functions.
Suppose there exists a -Pauli-sparse f-routing strategy that is -correct on every input at every input length for some .
-
If the strategy is explicit and -uniform, then .
-
If the strategy is non-explicit and -uniform, then .
7.2 Explicit Unitaries
We show how to compute the fidelity between two states that are preparable by unitaries. In this subsection we assume the unitaries are given explicitly; in Section 7.4 we extend the result to non-explicit unitaries by learning their Pauli coefficients.
To this end, we make use of the following formalism of Uhlmann's theorem [Uhl76].
Fact 7.6 ([Wat18, Theorem 3.22]). Let and be density matrices on the same space. Then
Our main theorem is then,
Lemma 7.7. Let U, V be two explicit -unitaries, and let be two reduced states as follows
For any , the fidelity can be computed up to additive error by a deterministic classical algorithm in time .
Proof. By Lemma 7.8, there exist two matrices X, Y, computable to poly(q) bits of precision in deterministic time poly(s, q, ) such that we can decompose the target states
where .
By Fact 7.6, the fidelity is . We now observe that the product matrix has small dimension:
Thus all entries of can be computed deterministically in time poly. Feeding to the algorithm from Theorem 3.5 yields the output up to additive error ; the total running time is poly
Altogether, we can compute the mid-protocol fidelity efficiently, assuming the adversaries are unitaries.
Proof of Theorem 7.4, Item 1. Let be the unitary obtained by composing the resource-preparation unitary, Alice's and Bob's pre-communication unitaries, and a fixed unitary preparing the EPR pair. The EPR-preparation unitary can be chosen explicitly on qubits, so its Pauli support has size at most . The mid-protocol state has a purification of the form
Since Pauli support sizes multiply under composition and tensor product, is an explicit -Pauli-sparse unitary. Hence is a reduced state of a -unitary. By Claim 7.3, is a reduced state of the explicit -Pauli-sparse unitary . The result follows directly from Lemma 7.7.
7.3 Deferred Technical Lemmas
Lemma 7.8. Let be an explicit -unitary given by its Pauli data, and let . Then, for every subsystem , there exist and a matrix such that
Moreover, can be computed to poly(q) bits of precision deterministically in time poly(q, s).
Proof. The key observation is that is a sum of at most product vectors across . Indeed, each Pauli term maps to a computational-basis vector up to a phase, so the Pauli data give
where the phases are absorbed into . Thus the Schmidt rank of across is at most . By the Schmidt decomposition,
To obtain an efficiently computable factorization, let be the distinct strings among , and define
Since the vectors are orthonormal, tracing out gives . Moreover, has columns.
Finally, observe that computing all directly from the explicit Pauli names is computable in deterministic time . Hence the sparse representation can be computed to bits of precision in deterministic time .
7.4 Non-explicit Unitaries
We now show how to extend Lemma 7.7 when the unitaries are given non explicitly. The idea is to learn the unitaries to sufficiently good approximation, and then invoke our earlier result. The main ingredient is therefore an efficient quantum algorithm to learn sparse unitaries:
Theorem 7.9 ([HH26, Result 1]). There is an efficient quantum algorithm that, given and query access to an unknown unitary , estimates, with constant success probability, all Pauli coefficients of with magnitude at least , up to a global phase factor, with additive error using queries.
Using the above we can now generalize our result:
Theorem 7.10. Let U, V be non-explicit -Pauli-sparse unitaries given by quantum circuits of description length at most L, and let
For every , there is a bounded-error quantum algorithm that estimates up to additive error in time .
Proof. We first learn the Pauli coefficients of U and show that they give a state close to
A symmetric argument would apply to as well. We then compare the corresponding reduced states. Since is Pauli sparse, there exist a set of cardinality such that
Let TBD constant integers, and fix the following parameters:
Here is a sufficiently small universal constant so that the learner's additive error from Theorem 7.9 is at most . Now apply Theorem 7.9 to with parameter , amplifying its success probability to at least 11/12, to obtain a list of Pauli coefficients , and their estimated amplitudes, denoted by for every . Discard all coefficients of magnitude below , and write
Assume the algorithm succeeds in estimating every coefficient it returns to additive error at most , up to a common global phase . This happens with probability at least . Hence every has true coefficient , so its estimate cannot survive the cutoff . Hence the retained set satisfies , and therefore . Thus,
Since every Pauli maps to a unit vector,
Applying the same argument to V, by symmetry, and writing , with probability at least 5/6 we obtain an explicit s-sparse Pauli sum and a global phase such that
The learned Pauli sums need not be unitary. We therefore normalize their outputs and consider the corresponding reduced states:
Therefore,
where the ultimate inequality follows from Equation (9), and the penultimate inequality follows from the reverse triangle inequality which states that for any two vectors :
We now use contractivity under partial trace: partial trace is a quantum channel and cannot increase the trace norm between two states. Together with the trace-distance formula for pure states, this gives
By symmetry, . Therefore, by Lemma 3.1 and Theorem 3.2, for sufficiently large cosntant ,
The computation in Lemma 7.7 uses only the explicit sparse descriptions of the normalized output vectors. It therefore computes a value such that
Thus . The total running time is .
Proof of Theorem 7.4, Item 2. Construct as in the proof of Item 1. The unitaries and prepare the two states defining as reduced states. Similarly to the proof of Item 1, they act on qubits, have Pauli support sizes at most and , respectively, and have circuits of size . Applying Theorem 7.10 gives the required bounded-error quantum algorithm.
AI Disclosure
This research was conducted by humans, and was assisted by AI tools. All research direction, discovery, lemma statements, hypothesis were originated by the authors, and ChatGPT's Sol 5.6 assisted to prove them. We repeatedly revised and interacted with ChatGPT to produce the final proofs.
References
[ABM 24] René Allerstorfer, Harry Buhrman, Alex May, Florian Speelman, and Philip Verduyn Lunel. "Relating Non-Local Quantum Computation to Information Theoretic Cryptography". In: Quantum 8 (2024), p. 1387. DOI: 10.22331/q-2024-06-27-1387.
[ACCM25] Vahid Asadi, Richard Cleve, Eric Culf, and Alex May. "Linear Gate Bounds against Natural Functions for Position-Verification". In: Quantum 9 (2025), p. 1604. DOI: 10.22331/q-2025-01-21-1604. arXiv: 2402.18648v5.
[ACM25] Vahid R. Asadi, Eric Culf, and Alex May. "Rank Lower Bounds on Non-Local Quantum Computation". In: 16th Innovations in Theoretical Computer Science Conference (ITCS 2025). Vol. 325. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025, 11:1–11:18. DOI: 10.4230/LIPIcs.ITCS.2025.11.arXiv: 2402.18647.
[AG04] Scott Aaronson and Daniel Gottesman. "Improved Simulation of Stabilizer Circuits". In: Physical Review A 70.5 (2004), p. 052328. DOI: 10.1103/PhysRevA.70.052328. arXiv: quant-ph/0406196.
[AKL 25] Vahid R. Asadi, Kohdai Kuroiwa, Debbie Leung, Alex May, Sabrina Pasterski, and Chris Waddell. "Conditional Disclosure of Secrets with Quantum Resources". In: Quantum 9 (2025), p. 1885. DOI: 10.22331/q-2025-10-16-1885. arXiv: 2404.14491 [quant-ph].
[AM22] Yusuf Alnawakhthha and Carl A. Miller. "Where We Are with Quantum". In: Nature Physics 18 (2022), pp. 611–612. DOI: 10.1038/s41567-022-01597-w.
[AP21] Srinivasan Arunachalam and Supartha Podder. “Communication Memento: Memoryless Communication Complexity”. In: 12th Innovations in Theoretical Computer Science Conference (ITCS 2021). Vol. 185. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021, 61:1–61:20. DOI: 10.4230/LIPIcs.ITCS.2021.61. arXiv: 2005.04068.
[BBC 19] Sergey Bravyi, Dan Browne, Padraic Calpin, Earl Campbell, David Gosset, and Mark Howard. “Simulation of Quantum Circuits by Low-Rank Stabilizer Decompositions”. In: Quantum 3 (2019), p. 181. DOI: 10.22331/q-2019-09-02-181. arXiv: 1808.00128 [quant-ph].
[BC94] Stefan Brands and David Chaum. “Distance-Bounding Protocols”. In: Advances in Cryptology – EUROCRYPT '93. Ed. by Tor Helleseth. Vol. 765. Lecture Notes in Computer Science. Springer, 1994, pp. 344–359. DOI: 10.1007/3-540-48285-7_30.
[BCF 14] Harry Buhrman, Nishanth Chandran, Serge Fehr, Ran Gelles, Vipul Goyal, Rafail Ostrovsky, and Christian Schaffner. “Position-Based Quantum Cryptography: Impossibility and Constructions”. In: SIAM Journal on Computing 43.1 (2014), pp. 150–178. arXiv: 1009.2490.
[BCHK20] Michael Beverland, Earl Campbell, Mark Howard, and Vadym Kliuchnikov. "Lower Bounds on the Non-Clifford Resources for Quantum Computations". In: Quantum Science and Technology 5.3 (2020), p. 035009. DOI: 10.1088/2058-9565/ab8963. arXiv: 1904.01124 [quant-ph].
[BCS22] Andreas Bluhm, Matthias Christandl, and Florian Speelman. "A Single-Qubit Position Verification Protocol That Is Secure against Multi-Qubit Attacks". In: Nature Physics 18 (2022), pp. 623–626. DOI: 10.1038/s41567-022-01577-0. arXiv: 2104.06301.
[BFSS13] Harry Buhrman, Serge Fehr, Christian Schaffner, and Florian Speelman. "The Garden-Hose Model". In: Proceedings of the 4th Innovations in Theoretical Computer Science Conference. 2013, pp. 145–158. arXiv: 1109.2563.
[BK11] Salman Beigi and Robert König. “Simplified Instantaneous Non-Local Quantum Computation with Applications to Position-Based Cryptography”. In: New Journal of Physics 13 (2011), p. 093036. DOI: 10.1088/1367-2630/13/9/093036. arXiv: 1101.1065.
[CGMO09] Nishanth Chandran, Vipul Goyal, Ryan Moriarty, and Rafail Ostrovsky. "Position Based Cryptography". In: Advances in Cryptology – CRYPTO 2009. Springer, 2009, pp. 391–407. URL: https://eprint.iacr.org/2009/364.
[CM23] Joy Cree and Alex May. "Code-Routing: A New Attack on Position Verification". In: Quantum 7 (2023), p. 1079. DOI: 10.22331/q-2023-08-09-1079. arXiv: 2202.07812.
[CPEFS25] Léo Colisson Palais, Llorenç Escolà-Farràs, and Florian Speelman. "A Quantum Cloning Game with Applications to Quantum Position Verification". In: 20th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2025). Vol. 350. Leibniz International Proceedings in Informatics (LIPIcs). 2025. DOI: 10.4230/LIPIcs.TQC.2025.2. arXiv: 2410.22157.
[CSWX14] Well Y. Chiu, Mario Szegedy, Chengu Wang, and Yixin Xu. "The Garden Hose Complexity for the Equality Function". In: Algorithmic Aspects in Information and Management. Springer, 2014, pp. 112–123. DOI: 10.1007/978-3-319-07956-1_11. arXiv: 1312.7222.
[GOL25] Andi Gu, Salvatore F. E. Oliviero, and Lorenzo Leone. "Magic-Induced Computational Separation in Entanglement Theory". In: PRX Quantum 6 (2025), p. 020324. DOI: 10.1103/PRXQuantum.6.020324.
[He25] Songhua He. A note on a hierarchy theorem for promise-BPTIME. Electronic Colloquium on Computational Complexity, Report TR25-004. 2025. URL: https://eccc.weizmann.ac.il/report/2025/004/.
[HH26] Zahra Honjani and Mohsen Heidari. Query Learning Nearly Pauli Sparse Unitaries in Diamond Distance. 2026. DOI: 10.48550/arXiv.2604.00203. arXiv: 2604.00203 [quant-ph].
[JJUW11] Rahul Jain, Zhengfeng Ji, Sarvagya Upadhyay, and John Watrous. "QIP = PSPACE". In: Journal of the ACM 58.6 (2011), 30:1–30:27. DOI: 10.1145/2049697.2049704. arXiv:0907.4737 [quant-ph].
[KMS11] Adrian Kent, William J. Munro, and Timothy P. Spiller. "Quantum Tagging: Authenticating Location via Quantum Information and Relativistic Signaling Constraints". In: Physical Review A 84 (2011), p. 012326. DOI: 10.1103/PhysRevA.84.012326. arXiv: 1008.2147.
[KP14] Hartmut Klauck and Supartha Podder. "New Bounds for the Garden-Hose Model". In: 34th International Conference on Foundation of Software Technology and Theoretical Computer Science (FSTTCS 2014). Vol. 29. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2014, pp. 481–492. DOI: 10.4230/LIPIcs.FSTTCS.2014.481. arXiv: 1412.4904.
[LG11] Shiang Yong Looi and Robert B Griffiths. "Tripartite entanglement in qudit stabilizer states and application in quantum error correction". In: Physical Review A—Atomic, Molecular, and Optical Physics 84.5 (2011), p. 052306.
[LVW17] Tianren Liu, Vinod Vaikuntanathan, and Hoeteck Wee. "Conditional Disclosure of Secrets via Non-Linear Reconstruction". In: Advances in Cryptology – CRYPTO 2017. Vol. 10401. Lecture Notes in Computer Science. Springer, 2017, pp. 758–790. DOI: 10.1007/978-3-319-63688-7_25.
[May22] Alex May. “Complexity and Entanglement in Non-Local Computation and Holography”. In: Quantum 6 (2022), p. 864. DOI: 10.22331/q-2022-11-28-864. arXiv: 2204.00908.
[May26] Alex May. Entanglement Cost in Non-Local Quantum Computation. 2026. DOI: 10.48550/arXiv.2605.02840. arXiv: 2605.02840 [quant-ph].
[MP06] Dieter van Melkebeek and Konstantin Pervyshev. “A Generic Time Hierarchy for Semantic Models With One Bit of Advice”. In: Complexity of Boolean Functions. Vol. 6111. Dagstuhl Seminar Proceedings. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2006, pp. 1–39. DOI: 10.4230/DagSemProc.06111.3.
[NC00] Michael A. Nielsen and Isaac L. Chuang. Quantum Computation and Quantum Information. Cambridge: Cambridge University Press, 2000. DOI: 10.1017/CB09780511976667.
[RG15] Jérémy Ribeiro and Frédéric Grosshans. A Tight Lower Bound for the BB84-states Quantum-Position-Verification Protocol. 2015. DOI: 10.48550/arXiv.1504.07171. arXiv: 1504.07171 [quant-ph].
[RTK 18] Jérémy Ribeiro, Le Phuc Thinh, Jędrzej Kaniewski, Jonas Helsen, and Stephanie Wehner. "Device Independence for Two-Party Cryptography and Position Verification with Memoryless Devices". In: Physical Review A 97.6 (2018), p. 062307. DOI: 10.1103/PhysRevA.97.062307. arXiv: 1606.08750.
[Spe16] Florian Speelman. “Instantaneous Non-Local Computation of Low T-Depth Quantum Circuits”. In: 11th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2016). Vol. 61. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016, 9:1–9:24. DOI: 10.4230/LIPIcs.TQC.2016.9. arXiv: 1511.02839.
[TFKW13] Marco Tomamichel, Serge Fehr, Jędrzej Kaniewski, and Stephanie Wehner. “A Monogamy-of-Entanglement Game with Applications to Device-Independent Quantum Cryptography”. In: New Journal of Physics 15 (2013), p. 103002. DOI: 10.1088/1367-2630/15/10/103002. arXiv: 1210.4359.
[Uhl76] Armin Uhlmann. “The “Transition Probability” in the State Space of a *-Algebra”. In: Reports on Mathematical Physics 9.2 (1976), pp. 273–279. DOI: 10.1016/0034-4877(76)90060-4.
[Unr14] Dominique Unruh. “Quantum Position Verification in the Random Oracle Model”. In: Advances in Cryptology – CRYPTO 2014. Vol. 8617. Lecture Notes in Computer Science. Theorem numbering refers to the full version dated February 12, 2014. Springer, 2014, pp. 1–18. DOI: 10.1007/978-3-662-44381-1_1. URL: https://eprint.iacr.org/2014/118.
[Vai03] Lev Vaidman. “Instantaneous Measurement of Nonlocal Variables”. In: Physical Review Letters 90.1 (2003), p. 010402. DOI: 10.1103/PhysRevLett.90.010402. arXiv: quant-ph/0111124.
[Wat02] John Watrous. “Limits on the Power of Quantum Statistical Zero-Knowledge”. In: Proceedings of the 43rd Annual IEEE Symposium on Foundations of Computer Science. Theorem numbering refers to the expanded manuscript dated January 16, 2003. 2002, pp. 459–468. DOI: 10.1109/SFCS.2002.1181970. arXiv: quant-ph/0202111. URL: https://cs.uwaterloo.ca/~watrous/Papers/HonestVerifierQuantumZeroKnowledge.pdf.
[Wat09] John Watrous. “Zero-Knowledge against Quantum Attacks”. In: SIAM Journal on Computing 39.1 (2009). Theorem numbering refers to the author’s version corrected April 14, 2009, pp. 25–58. DOI: 10.1137/060670997. arXiv: quant-ph/0511020. URL: https://cs.uwaterloo.ca/~watrous/Papers/ZeroKnowledgeAgainstQuantum.pdf.
[Wat18] John Watrous. The Theory of Quantum Information. Cambridge University Press, 2018. DOI: 10.1017/9781316848142. URL: https://cs.uwaterloo.ca/~watrous/TQI/TQI.pdf.
[Wik] Singular Value Decomposition. Wikipedia. URL: https://en.wikipedia.org/wiki/Singular_value_decomposition.
[YJS19] Mithuna Yoganathan, Richard Jozsa, and Sergii Strelchuk. “Quantum Advantage of Unitary Clifford Circuits with Magic State Inputs”. In: Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences 475.2225 (2019), p. 20180427. DOI: 10.1098/rspa.2018.0427. arXiv: 1806.03200 [quant-ph].