§6.2: exact ladder contraction with polynomial arithmetic work
OpenQAlgorithms.Papers.Independent.Intakenext100.P52.exact_ladder_contraction_polynomial_arithmeticTake sites initially in , with arbitrary two-qubit unitaries applied in increasing site order. Choose any subset of measured sites and a normalized selected measurement ket at each site. Scan the ladder using , then either trace out site or contract its selected bra; apply the analogous trace or bra at the final site. If is its resulting real scalar and is the tensor product of the selected projectors and the unmeasured identities, then
There are universal natural constants such that, for each and measured subset, a valid scalar straight-line program of at most instructions computes this value for every choice of unitary and ket entries. The program is chosen before those entries. Its operations are input reads, constants, addition, multiplication and conjugation, with only earlier registers referenced. The scan uses only one- and two-site intermediate matrices. This is exact arithmetic work with precision ignored, and does not assert an exact finite-bit sampler.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P52
noncomputable section
open scoped Matrix ComplexConjugate
namespace QAlgorithms.Papers.Independent.Intakenext100.P52
open QAlgorithms.Papers.Independent.Information100.P21 (Vec)
open QAlgorithms.Papers.Independent.Gap20.P01 (applyRect)
/-- Exact ladder contraction, PDF pp.14–15: the scan equals the joint Born
probability and is implementable by polynomially many scalar operations.
Constants and program selection precede gate and basis entries. n=m+1 includes
the one-site/no-gate case. Precision and finite-bit sampling are not asserted. -/
theorem exact_ladder_contraction_polynomial_arithmetic :
∃ C d : ℕ, 0 < C ∧ ∀ (m : ℕ) (measured : Fin (m+1) → Bool),
∃ program : ScalarProgram (LadderScalarInput m),
program.Valid ∧ program.word.length ≤ C * (m+1)^d ∧
∀ (U : Fin m → Matrix QubitPair QubitPair ℂ),
(∀ t, U t ∈ Matrix.unitaryGroup QubitPair ℂ) →
∀ (v : Fin (m+1) → Vec Bool), (∀ i, IsState (v i)) →
ladderScanProbability U measured v =
effectProb (ladderEvent measured v) (pureDensity (ladderState m U)) ∧
(program.eval (ladderScalarData U v)).re = ladderScanProbability U measured v := by sorry
end QAlgorithms.Papers.Independent.Intakenext100.P52
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
There exist natural numbers , with , such that for every natural number and every Boolean function on the sites , there is a scalar program whose input labels are either with and Boolean pairs , or with and Boolean , such that its output index is inside its instruction list, every memory reference at instruction position is strictly less than , and its instruction count is at most . This program works for every family of unitary Boolean-pair matrices , , and every family of Boolean-indexed vectors , , satisfying : define , where , and, successively for , set and
Define if the last site is measured, and otherwise. Also define , where has entry when agree outside sites , and entry otherwise, and define
Then both and hold, where on the first label summand and on the second. Program evaluation starts from empty memory, appends the value of each input, constant, addition, multiplication, or conjugation instruction, and returns its designated entry. The constants are independent of and the measurement choices, and the program is chosen before . The statement includes , when there are no two-site gates and the initial state is a single ; is permitted. Only the real part of the program’s complex output is specified.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.