The virtual circuit computes the same key and cleans its ancilla
OpenQAlgorithms.Papers.Independent.Intakenext100.P04.virtualCircuit_keyAndCleaningLet , and let be an injective linear encoder with decoder and correctable set , meaning for all and all . Form the actual Z-basis permutation unitaries
Append on . The Heisenberg effect of measuring in the X basis with output after equals the effect of directly measuring in the X basis and applying . Consequently the key channel, including its joint law with Eve, is the same. On each correctable basis state,
For any positive trace-one joint state with arbitrary Eve dimension, put and . The actual ancilla marginal satisfies
If , the constructed normalized projected state is positive trace class and its squared fidelity with equals . If , then and every Eve measurement has joint key law . This is the circuit-level decoupling mechanism; no probability of protocol acceptance is assumed.
Formalization Note Arbitrary joint extensions are represented by a finite matrix factor on a general Hilbert space. Eve measurements lie in its commutant. The equality of effects retains all public registers in Eve's data.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P04
noncomputable section
universe u v w
namespace QAlgorithms.Papers.Independent.Intakenext100.P04
open QAlgorithms
open QAlgorithms.Papers.Independent.Dependency50.P13
(State IsTraceClass IsPositive operatorTrace)
open QAlgorithms.Papers.Independent.Advance50.P18 (keyEntropy)
open scoped ComplexConjugate
attribute [local instance] Classical.propDecidable Classical.decEq
variable {H : Type u} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
/-- Koashi–Preskill PDF pp.3–4, Eqs.(6)–(12): the circuit computes the same
key channel, cleans Q on the correctable support, and transfers the full joint
projected-state fidelity to the actual Q marginal. Printed Eq.(10) labels the
residual state inconsistently with Eq.(9); changed to the directly constructed
key effects, because U2 preserves Q's X label G-transpose(kappa_sif).
The normalization in Eq.(11) is (1/sqrt(2))^r, not an unspecified scalar. -/
theorem virtualCircuit_keyAndCleaning {N r : ℕ} (hN : 0 < N)
(C : CorrectableEncoder N r) {I : Type v} (b : HilbertBasis I ℂ H)
(rho : State b) (A : QubitFactor N H) :
virtualCircuit C ∈ Matrix.unitaryGroup (Qubits N × Qubits r) ℂ ∧
(∀ y, virtualKeyEffect C y = directKeyEffect C y) ∧
(∀ x, x ∈ C.errors →
act (virtualCircuit C) (tensorVec (ket x) (xBasisVector r 0)) =
tensorVec
((((Real.sqrt 2)⁻¹ ^ r : ℝ) : ℂ) •
∑ y : Qubits r, ket (x + C.encoder y)) (ket (0 : Qubits r))) ∧
(let sigma := qubitMarginal b rho A
let P := A (correctableProjector C)
let q := (operatorTrace b (P.comp rho.val.val)).re
q ≤ (virtualOutput C sigma 0 0).re ∧
(0 < q →
IsTraceClass (projectedJointState b rho P) ∧
IsPositive (projectedJointState b rho P) ∧
operatorTrace b (projectedJointState b rho P) = 1 ∧
squaredHilbertFidelity b (projectedJointState b rho P) rho.val.val = q) ∧
(q = 1 → virtualOutput C sigma = zProjector r 0 ∧
∀ (n : ℕ) (M : EveMeasurement A n) (y : Qubits r) (z : Fin n),
(operatorTrace b ((A (directKeyEffect C y)).comp
((M.effect z).comp rho.val.val))).re =
((2 : ℝ) ^ r)⁻¹ * (operatorTrace b ((M.effect z).comp rho.val.val)).re)) := by sorry
end QAlgorithms.Papers.Independent.Intakenext100.P04
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every pair of natural numbers with , let provide an injective binary linear encoder , a decoder , and an error set such that whenever . Let be any complete complex inner-product space, any Hilbert basis, and . Let admit a representation with , and satisfy , , and . Let be a unital complex algebra homomorphism from -qubit matrices to bounded operators on that preserves adjoints. All binary additions below are XOR. Set , define , , , and . Define , , , , , , and , where is the matrix unit and . The assertion is that is unitary, that
and that, for every ,
It also asserts ; if , then has a representation of the same summable rank-one form, is self-adjoint with nonnegative quadratic form, satisfies , and obeys
with square roots taken by continuous functional calculus. Finally, if , then , and for every natural number , every family of positive bounded operators , , satisfying and for every -qubit matrix , and every -bit string and ,
Here is allowed, the zero label means the all-false string, and membership in an empty error set makes the corresponding conditional assertions vacuous.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.