Universal Quantum Emulator: sample and gate complexity, Eqs.(28)–(29)
OpenQAlgorithms.Papers.Independent.Intakethird100.P67.sample_and_gate_complexityLet and let the normalized pure samples , , generate the full matrix algebra on their span , of dimension . Fix an anchor sample. Write for the operator norm of the vectorized compressed reflection channel. There is a single family of circuits, independent of the unknown samples, unitary , and new input, that uses only supplied input/output density copies, single-qubit gates and controlled-controlled-SWAP gates. For every , its parameters can be chosen using , and so that, uniformly for all density operators supported on ,
where , and and the integer are absolute. Counts are actual supplied-copy registers and elementary gate-list lengths. The number of erasure rounds is zero for , and otherwise at least one and the ceiling of . The density-matrix-exponentiation precision uses an absolute multiple of copies per reflection. This records the gap-dependent content of Eqs.(28)–(29), without a dimension-only convergence promise.
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.7,19, Eqs.(28)–(29): a sample-only circuit family is fixed before every
unknown sample, target unitary, and new input. Copy counts are resource registers and gate
counts are elementary list lengths. d=1 uses exact reset. For d>=2 the sample-dependent
gap remains explicit. Single-qubit and systemControlled-systemControlled-SWAP gates are counted, with
D=2^n. B19's printed error allocation is corrected by fixed-factor rescaling. -/
theorem sample_and_gate_complexity :
∃ (C c : ℝ) (power : ℕ) (F : EmulatorFamily), 0 < C ∧ 0 < c ∧
∀ (n k : ℕ), 2 ≤ k → ∀ (a : Fin k) (phi : Fin k → EuclideanSpace ℂ (Qubits n)),
(∀ j, IsState (phi j)) → Generates (pureSamples phi) →
∀ eps : ℝ, 0 < eps → eps < 1 →
let d := sampleDimension (pureSamples phi)
let lam := lambdaPerp phi a
let T := precisionRounds d lam eps
let m := max 1 ⌈c * (4*T+1) / eps⌉₊
let budget := C * (d : ℝ)^2 * eps⁻¹ / (1-lam)^2 * slowFactor d eps power
(∀ h : Fin T → Fin k, ((F n k a T m h).copies : ℝ) ≤ budget ∧
((F n k a T m h).gates.length : ℝ) ≤ budget * n) ∧
(∀ (U : Matrix.unitaryGroup (Qubits n) ℂ) (rho : Matrix (Qubits n) (Qubits n) ℂ),
IsDensityMatrix rho → InSampleSupport (pureSamples phi) rho →
traceDistance
(∑ h : Fin T → Fin k, (historyWeight (nonanchorProbability a) h : ℂ) •
(F n k a T m h).output (inputOutputRecords phi (U : Matrix (Qubits n) (Qubits n) ℂ)) rho)
(densityConjugation (U : Matrix (Qubits n) (Qubits n) ℂ) rho) ≤ eps) := by sorry
end QAlgorithms.Papers.Independent.Intakethird100.P67
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
There exist positive real constants , a natural number , and one family assigning a sample circuit to every choice of natural , anchor , and history , with the following property. A sample circuit has a natural number of physical qubits, a natural number of sample copies, an injective placement of an -qubit input and all -qubit sample copies into those qubits, a label in for each copy, fixed computational-basis values on the remaining qubits, and a list of gates, each either an arbitrary unitary on one qubit or a swap of two target qubits controlled by two other, distinct qubits both being true; its output is obtained by initializing the input and sample registers in the specified matrices, applying the gates in list order, and tracing out all qubits except the original input ports. For every natural , including , every , every anchor , and every collection of norm-one vectors , put and , where , otherwise, applied by continuous functional calculus. Assume that a matrix belongs to the complex linear span of nonempty products of the if and only if . For every , define to be the dimension of the range of , set and for , and define
Here is entrywise complex conjugation, the operator norm is induced by Euclidean norms, and the natural ceiling is truncated at zero. Every history , including histories with zero weight , satisfies
Moreover, for every unitary and every positive semidefinite trace-one matrix satisfying , initialize a sample labelled in and one labelled in , and denote the resulting circuit output by . Then
The family and constants precede all these universally quantified inputs. The formulas use total inverses and division, so zero denominators have value zero; empty histories and empty gate lists use their usual empty products.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.