§XI.A (112)–(116), Fig.5: H eigenstate and pi/8 injection
ProvedQAlgorithms.Papers.Independent.Intakenext100.P12.pi_eighth_injectionprove2quantum
Let , , and . Then and , where . For every normalized data qubit , CNOT from data to and target computational measurement give
Both outcomes have probability . This follows the displayed state, gate and Fig.5; the source's prose reverses the two conditional states. The correction is disclosed for independent moderation.
Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P12
Formal statement
noncomputable section
open scoped BigOperators
open MeasureTheory Matrix ComplexConjugate
open QAlgorithms.Papers.Independent.Dependency50.P10 (Phase sigma)
namespace QAlgorithms.Papers.Independent.Intakenext100.P12
/-- Section XI.A (112)–(116), Fig.5, PDF p.15: H-state conversion and pi/8 injection.
SOURCE CORRECTION: the printed prose reverses the outcomes. With (114),(115) and Fig.5,
outcome 0 gives S, outcome 1 gives S inverse; applying P in branch 1 fixes it up to exp(i*pi/4). -/
theorem pi_eighth_injection (psi : Bool → ℂ) (hnorm : finiteInner psi psi = 1) :
QAlgorithms.hadamard.mulVec hadamardPlus = hadamardPlus ∧
(QAlgorithms.hadamard * star QAlgorithms.phaseS).mulVec hadamardPlus = magicState ∧
magicBranch false psi = (fun b => paperS.mulVec psi b / (Real.sqrt 2 : ℂ)) ∧
magicBranch true psi = (fun b => (star paperS).mulVec psi b / (Real.sqrt 2 : ℂ)) ∧
QAlgorithms.phaseS.mulVec (magicBranch true psi) =
(fun b => cisPhase (Real.pi / 4) * paperS.mulVec psi b / (Real.sqrt 2 : ℂ)) ∧
(∀ outcome : Bool, ∑ b, ‖magicBranch outcome psi b‖ ^ 2 = (1 : ℝ) / 2) := by sorry
end QAlgorithms.Papers.Independent.Intakenext100.P12
end
Source
Encoding a qubit in an oscillator, arXiv:quant-ph/0008040v3, PDF p. 15, §XI.A (112)–(116), Fig.5: H eigenstate and pi/8 injection
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every function satisfying , let, in the order , , , , , and ; define . The theorem asserts all six conclusions
where denotes conjugate transpose and all vector equalities are equalities of functions on the Booleans.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.