Figure 3: CZ from two three-qubit measurements
OpenQAlgorithms.Papers.Independent.Intakenext100.P52.figure3_cz_from_three_qubit_measurementsPrepare an arbitrary normalized input on qubits and normalized -bonds on pairs . On and measure in the eight normalized three-qubit GHZ kets obtained from the pairs , , , by choosing the plus or minus sign. These kets form an orthonormal basis. There is one Pauli correction rule , fixed before the input, such that the actual branch vector on outputs satisfies
This gives the conditional quantum output on every nonzero branch, and also includes zero branches without division. The -bonds are resources; the two operators in the output are Hadamard gates.
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)
/-- Fig.3, PDF p.4: H-bonds are resource states; the two H factors in the
output formula are actual gates. The correction is chosen before the unknown
input. Homogeneous density equality handles any zero branch without division. -/
theorem figure3_cz_from_three_qubit_measurements :
Orthonormal ℂ (fun a : Fin 4 × Bool => threeQubitBellKet a.1 a.2) ∧
∃ correction : ((Fin 4 × Bool) × (Fin 4 × Bool)) → (QubitPair × QubitPair),
∀ (psi : Vec QubitPair), IsState psi → ∀ a b : Fin 4 × Bool,
let f := correction (a,b)
let v := figure3Branch a b psi
pureDensity v = (‖v‖ ^ 2 : ℝ) • pureDensity
(act (Matrix.kronecker (pauliByproduct f.1.1 f.1.2) (pauliByproduct f.2.1 f.2.2) *
Matrix.kronecker hadamard hadamard * controlled pauliZ) psi) := by sorry
end QAlgorithms.Papers.Independent.Intakenext100.P52
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Identify Boolean values with , let , and let have amplitude at , amplitude at its bitwise complement, and zero elsewhere. The declaration asserts that these eight three-bit vectors are orthonormal, and that there exists a function assigning to every pair of outcomes two Boolean pairs , such that the following holds for every two-bit vector with and every . Define
Then
where (X|u\rangle=|1-u\rangleZ|u\rangle=(-1)^u|u\rangleH_{u,v}=(-1)^{uv}/\sqrt2\mathrm{CZ}|u,v\rangle=(-1)^{uv}|u,v\ranglevv^\daggerv(y)\overline{v(y')}v=0$; no positive branch probability is asserted.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.