Quantum information · Theory (AI-assisted, with Lean formalization)

Linear entanglement suffices for f-routing

Kevin Bogner

arXiv:2611.30947v1 ↗PDF ↗Submitted 23 November 2026

Question
In position verification by routing, a prover receives \(n\)-bit strings \(x\) and \(y\) and a qubit, and must return the qubit to the verifier selected by a Boolean function \(f(x,y)\). Two attackers, each seeing one string first, break the scheme if they can do \(f\)-routing: after one simultaneous round of messages, the party selected by \(f\) holds the qubit. Enough prior entanglement breaks every such scheme, so security rests on how much is needed. The best general upper bound was \(2^{O(\sqrt{n\log n})}\) qubits, while lower bounds counting only the shared state are at most linear. Can every function be routed with polynomially many EPR pairs?
Result
Yes. For every Boolean function on \(n\)-bit inputs there is a perfect \(f\)-routing strategy with \(2n+2\) shared EPR pairs, the same state for all functions. The price is communication: Alice sends \(2^{n+1}+1\) qubits and \(3n+2\) classical bits, and Bob sends \(3n+2\) classical bits. Consequently no lower bound that counts only the shared state can exceed a linear number of EPR pairs.

The paper in detail

Alice holds \(x\) and the qubit \(Q\); Bob holds \(y\); they share a state fixed in advance. Each applies an operation, sends part of the result, and keeps the rest; after one simultaneous exchange, Alice must hold \(Q\) if \(f(x,y)=0\) and Bob if \(f(x,y)=1\). Perfect recovery must preserve entanglement of \(Q\) with any reference system. Only the shared state counts as a cost in the model of the paper; messages and local operations are unlimited.

Alice first teleports \(Q\) into one half \(C\) of an EPR pair she makes herself, but without measuring: she applies only the Bell-basis rotation, which leaves the two key bits in superposition in qubits \(K_1,K_2\) and \(C\) carrying \(Q\) encrypted by \(X^{k_1}Z^{k_2}\). She sends \(C\) to Bob. If Bob learns both key bits, he decrypts. If nothing else depends on the key, Alice undoes her rotation and holds \(Q\) again. So the task is to disclose each key bit to Bob when \(f(x,y)=1\) and to hide it when \(f(x,y)=0\).

For each key bit Alice prepares a maximally entangled pair of registers with \(2^n\) qubits each, one qubit per string \(c\), and sends one register to Bob. The construction leaves this pair in the state \((M\otimes I)\ket\Omega\) with \(M=(X_a\pm V)/\sqrt2\), the sign carrying the key bit, where \(V\) applies \(Z\) on every address \(c\) with \(f(x,a+y+c)=0\). The two operators commute when \(f(x,y)=1\), so Bob can read the sign by measuring \(X_aV\), and anticommute when \(f(x,y)=0\), so \(M\) is unitary and Alice can remove it from her own register.

Alice cannot build \(V\) herself, because it depends on \(y\). The shared EPR pairs supply the shift: Bob measures his half of \(n+1\) pairs in a basis of states \((\ket{0,a}\pm\ket{1,a+y})/\sqrt2\), Alice applies \(X_j\) or \(V_{x,j}\) controlled by her half, and then measures her half in the Hadamard basis, whose outcomes reveal nothing about the label. Each key bit uses \(n+1\) EPR pairs, \(2n+2\) in total.

Transferable methods

  1. Disclosing a bit through commuting or anticommuting operators

    The routing strategy needs an encoding of one bit that becomes readable by Bob exactly when \(f(x,y)=1\) and removable by Alice exactly when \(f(x,y)=0\). Two Hermitian operators that square to the identity provide both behaviours, depending only on whether they commute.

    For a string \(b\), let \(V_{x,b}=\prod_{c:\,f(x,b+c)=0}Z_c\) act on a register of \(N=2^n\) qubits indexed by addresses \(c\). Since \(X_a\) anticommutes with \(Z_a\) and commutes with every other \(Z_c\), and \(V_{x,a+y}\) contains \(Z_a\) exactly when \(f(x,y)=0\), Lemma 2 states that \(X_a\) and \(V_{x,a+y}\) anticommute when \(f(x,y)=0\) and commute when \(f(x,y)=1\). With \(\sigma=\pm1\) and \(M_\sigma=(X_a+\sigma V)/\sqrt2\), \[M_\sigma^{T}M_\sigma=I+\tfrac\sigma2(X_aV+VX_a).\] Anticommutation makes \(M_\sigma\) a real symmetric unitary, so Alice can apply \(M_\sigma\) to her half of \(\ket\Omega\) and, by the transpose trick, undo it. Commutation gives \(X_aV\,M_\sigma=\sigma M_\sigma\), so Bob's measurement of \(X_aV\) returns \(\sigma\) with certainty.

    In both cases \(\mathrm{Tr}(M_\sigma^TM_\sigma)\) equals the register dimension, because \(X_aV\) has zero diagonal, so \((M_\sigma\otimes I)\ket\Omega\) is normalized for either sign and every measurement outcome is equally likely for both key values. That is what lets the key stay in superposition until the recovery step. Editorial check: in an exact simulation for random \(f\) at \(n=1,2\), the unitarity and eigenvector properties hold for every input pair and outcome.

    How to reuse it

    Encoding a bit as the relative sign of two operators whose commutation is controlled by a predicate is a general tool for conditional disclosure with quantum messages, and may apply to other non-local quantum computation tasks and to quantum versions of conditional disclosure of secrets.

  2. Importing the other party's input through shared EPR pairs

    The operator \(V_{x,a+y}\) depends on both inputs, but Alice must act before she sees \(y\). Bob's measurement on shared EPR pairs can steer Alice's halves into a superposition whose two branches already differ by \(y\), and a measurement in a conjugate basis erases which branch was used.

    Label the basis of \(n+1\) qubits by \((r,j)\) with a bit \(r\) and string \(j\). Bob measures his half of \(\ket\Phi^{\otimes(n+1)}\) in the basis \(\ket{\beta^y_{a,u}}=(\ket{0,a}+(-1)^u\ket{1,a+y})/\sqrt2\), which leaves Alice's half in the same state. Alice applies \(X_j\) when \(r=0\) and \((-1)^zV_{x,j}\) when \(r=1\), with \(z\) the key qubit, then measures in the Hadamard basis \(\ket{h_{s,\ell}}\). Lemma 3 shows that the block ends in \[\frac{(-1)^{\ell\cdot a}}{2N}\,\ket z\otimes(M_z\otimes I)\ket\Omega,\qquad M_z=\frac{X_a+(-1)^{z+t}V_{x,a+y}}{\sqrt2},\quad t=u+s+\ell\cdot y,\] with a prefactor independent of \(z\).

    Every outcome has probability \(1/(2N)^2\) whatever the key, so the measurements reveal nothing about it, and the sign bit \(t\) is computable by both parties after the exchange. Editorial check: a state-vector simulation of one block, with \(L,R\) of \(n+1\) qubits and \(W,W'\) of \(2^n\) qubits, reproduces this identity for all \(x,y,z,a,u,s,\ell\) at \(n=1\) and \(n=2\) for random functions, to \(4\times10^{-18}\).

    How to reuse it

    Using a measurement on one side of shared entanglement to create a superposition of two shifted labels on the other side is a compact way to evaluate a function of both inputs coherently, and appears in garden-hose and port-based strategies for non-local computation; the same step may simplify other attacks on position-based cryptography.

Source: Sec. 1.3; Sec. 3.2 (Eqs. (2)–(3)); Sec. 3.3 (Eq. (4), Lemma 2); Sec. 3.4 (Eqs. (6)–(10)); Sec. 4 (Lemma 3, Eqs. (11)–(13)). Based on the linked paper version. Derivations marked as editorial, and suggested uses in other problems, are editorial guidance rather than results of the paper.

Context & limitations

Why it matters. The result closes the gap between upper and lower bounds in the model where only pre-shared entanglement is counted, and shows that this model cannot support security against attackers with more than \(2n+2\) EPR pairs. A security proof for routing-based position verification must therefore also limit another resource, such as the attackers' quantum communication.

Limitations. Alice's message is exponentially long, so when messages are counted the earlier \(2^{O(\sqrt{n\log n})}\) strategy remains the cheapest known, and linear lower bounds on total resources for random functions are untouched. Whether linear entanglement is compatible with subexponential messages, and whether robust lower bounds can exceed logarithmic size, are open. The author states that the strategy was found by GPT-6.2 Sol in a research session directed by the author, that the same model wrote the Lean formalization, and that Claude Fable 5.2 checked the strategy by independent derivation and simulation and drafted the text.

Description based on the full arXiv HTML of v1, read 2026-11-29: Secs. 1–5 in full (Theorem 1, the routing model, teleportation without measurement, Lemma 2, Strategy 1, Lemma 3, the proof of Theorem 1, the open problems), the Lean formalization note and the AI disclosure. Also read: the README of the public Lean repository kevinbogner/linear-routing-lean, which states Theorem 1 in a short statement file importing only Mathlib and proves it, with Lemmas 2 and 3, using only Lean's standard axioms; we did not build the project. Editorial check: an exact state-vector simulation of one block for random functions f at n = 1 and n = 2 (registers of up to 14 qubits) reproduces Lemma 3 for every input pair, every value of the key bit and every measurement outcome, to 4 × 10^-18, and confirms that M_z is unitary whenever f(x,y) = 0 and that (M_z ⊗ I)|Omega> is an eigenvector of X_a V_(x,a+y) with eigenvalue (-1)^(z+t) whenever f(x,y) = 1.