Appendix D: binary encoding uses exponentially fewer address qubits
OpenQAlgorithms.Papers.Independent.Intakethird100.P67.binary_reencodingFix a normalized pure sample family, anchor, history of length , and with . Initialize the binary address at zero. The Appendix-D product of coherent anchor tests with cyclic increments and address-selective reflections is exactly the unary erasure state with each unary replaced by binary :
The ideal main-system output is therefore unchanged. There are absolute constants and a sample-only circuit family, fixed before unknown samples, and the new input, using supplied copies and at most elementary gates on -qubit systems. Its averaged distance from the same ideal emulator is at most . Apart from supplied-copy registers and the main register, at most helper/address/measurement wires suffice. Thus the reflection sample/error bounds are preserved while the gate overhead is . The constant helper wires are excluded from the advertised address count.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P67
noncomputable section
open scoped ComplexConjugate Matrix Matrix.Norms.L2Operator
attribute [local instance] Classical.propDecidable
open MeasureTheory Filter
namespace QAlgorithms.Papers.Independent.Intakethird100.P67
variable {I J K L A : Type*} [Fintype I] [DecidableEq I]
[Fintype J] [DecidableEq J] [Fintype K] [DecidableEq K]
[Fintype L] [DecidableEq L] [Fintype A] [DecidableEq A]
/-- PDF pp.22–23, Appendix D: exact binary/unary erasure equality, same ideal
main output, and source sample/gate costs for its sample-copy implementation. The q address
qubits exclude the constant helper/measurement qubits. D8's initial |t> is replaced by |0>;
D9's tensor grouping and |0> helper are corrected to Fig.6's returned |minus>.
Using q+1 (equivalently log(T+1) away from T=0) handles the small-T boundary. -/
theorem binary_reencoding :
(∀ (phi : K → EuclideanSpace ℂ I) (a : K), (∀ k, IsState (phi k)) →
∀ (q T : ℕ), T+1 ≤ 2^q → ∀ (h : Fin T → K) (psi : EuclideanSpace ℂ I), IsState psi →
act (binaryHistory phi a q h) (tensorVec psi (ket (0 : Fin (2^q)))) =
encodeUnary q T (coordinateExpansion phi a h psi) ∧
Nat.clog 2 (T+1) ≤ q) ∧
(∃ (C c : ℝ) (B : BinaryEmulatorFamily), 0 < C ∧ 0 < c ∧
∀ (n k : ℕ), 2 ≤ k → ∀ (a : Fin k) (q T m : ℕ),
T+1 ≤ 2^q → 1 ≤ m →
(∀ h : Fin T → Fin k,
(B n k a q T m h).copies = (4*T+1)*m+1 ∧
(B n k a q T m h).N ≤ ((4*T+1)*m+2)*n + q+3 ∧
((B n k a q T m h).gates.length : ℝ) ≤ C * (4*T+1) * m * n * (q+1)) ∧
∀ (phi : Fin k → EuclideanSpace ℂ (Qubits n)), (∀ j, IsState (phi j)) →
∀ (U : Matrix.unitaryGroup (Qubits n) ℂ) (rho : Matrix (Qubits n) (Qubits n) ℂ), IsDensityMatrix rho →
traceDistance
(∑ h : Fin T → Fin k, (historyWeight (nonanchorProbability a) h : ℂ) •
(B n k a q T m h).output (inputOutputRecords phi (U : Matrix (Qubits n) (Qubits n) ℂ)) rho)
(emulate phi a (U : Matrix (Qubits n) (Qubits n) ℂ) T rho) ≤ c * (4*T+1) / m) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P67
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be finite index types with decidable equality. The declaration asserts a conjunction of two claims. First, for every family of norm-one vectors , every , every natural satisfying , every history , and every norm-one , define , , , and . Let have bit true exactly when , and set
For a vector on , its binary encoding is the vector on whose -coordinate is . Let , let , and let apply to the system exactly when the address equals , otherwise applying the identity. Then
For , the product is the identity and the encoding contains only ; is permitted and forces . Second, there exist positive real constants and a family of sample circuits such that, for all natural with , all anchors , and all natural with and , every history satisfies
Here a sample circuit has injectively placed -qubit input and sample registers, Boolean-and-sample-index labels for its copies, fixed computational-basis states on other wires, and gates consisting of arbitrary one-qubit unitaries and swaps controlled by two distinct control wires; its output retains the original input ports and traces out the other wires. For every collection of norm-one , every unitary , and every positive semidefinite trace-one , initialize sample label in and label in , and call the resulting circuit output . To specify the comparison matrix, put , for , , and , where is controlled by a true Boolean ancilla and . Let apply these in increasing order on separate ancillas, let use instead, and put , . Define
Then, writing , with the square root given by continuous functional calculus, the asserted error bound is
This second claim includes and , and assumes neither a generation condition on the samples nor a support condition on .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.