Conjugate representation circuit by gate replacement
OpenQAlgorithms.Papers.Independent.Extend50.P47.conjugate_circuitEvery register has a fixed finite nonempty computational basis. States are positive semidefinite trace-one matrices, and pure vectors have norm one. Write for squared fidelity.
For every fixed circuit over CNOT, H, T, replacing each T by T† and preserving gate order and wires implements the entrywise complex conjugate of the original circuit unitary.
The formula gives the exact characterization or operational specialization described in the cited result.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P47
noncomputable section
namespace QAlgorithms.Papers.Independent.Extend50.P47
open scoped ComplexConjugate ComplexOrder Matrix Matrix.Norms.L2Operator Manifold ContDiff
open MeasureTheory
open QAlgorithms.Papers.Independent.Information100.P60 (Mat)
open QAlgorithms.Papers.Independent.Information100.P56 (normalizedChoi)
variable {G S R P T A B C D R2 S2 : Type*}
variable [Fintype G] [Group G] [DecidableEq G]
variable [Fintype S] [DecidableEq S] [Nonempty S]
variable [Fintype R] [DecidableEq R] [Nonempty R]
variable [Fintype P] [DecidableEq P] [Nonempty P]
variable [Fintype T] [DecidableEq T] [Nonempty T]
variable [Fintype A] [DecidableEq A] [Nonempty A]
variable [Fintype B] [DecidableEq B] [Nonempty B]
variable [Fintype C] [DecidableEq C] [Nonempty C]
variable [Fintype D] [DecidableEq D] [Nonempty D]
variable [Fintype R2] [DecidableEq R2] [Nonempty R2]
variable [Fintype S2] [DecidableEq S2] [Nonempty S2]
/-- PDF p.5: exact conjugate circuit by gate replacement, with unchanged size.
The input circuit uses the paper's H,CNOT,T gate set. -/
theorem conjugate_circuit {n : ℕ} (c : List (StandardStep n))
(hc : ∀ q, StandardStep.td q ∉ c) :
standardCircuit (c.map conjugateStep) = (standardCircuit c).map conj ∧
(c.map conjugateStep).length = c.length := by sorry
end QAlgorithms.Papers.Independent.Extend50.P47
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number and every finite instruction list on wires, assume that does not occur in for any . Form by fixing each and , replacing each by , and replacing each by . For any list, define its circuit matrix as the reversed product of its instruction matrices: apply , , and , respectively, on their specified wire and preserve all other bits, while , with injective on , preserves the bit at , replaces the bit at by its exclusive-or with the bit at , and preserves every other bit. Then
The empty list is included, with circuit matrix equal to the identity; for , it is the only possible list.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.