Empirical/CSD: a quantum circuit is a flow on Σ, and its readout is a record basin #
Category: 3-Local (CSD-side companion to Empirical/QM/Algorithms/; the generic engine the
algorithm twins GroverFlow.lean and ShorFlow.lean instantiate).
A quantum circuit on a register indexed by ι is a unitary U on EuclideanSpace ℂ ι. On the
CSD side the register's state space is the sector Σ = ℂℙ^{card ι − 1} (cpSectorData), the
circuit is the flow x ↦ U • x on it, running the circuit k times is the flow iterated k
times, and the readout of the computational-basis measurement is the record basin of the
outcome (RecordLayer/GlobalBasin.lean) or, on the density-operator side, the de-isolation
channel (LF6/DecoherenceChannel.lean). Nothing here is specific to an algorithm: the pattern is
Empirical/CSD/QEC/RegisterFlow.lean's, factored out.
Circuit ι— a unitary on the register;Circuit.toUnitaryGroup, the enumerated unitary inU(card ι);Circuit.flow, the circuit as aΣ-flow;Circuit.flow_iterate,kruns are the projective action ofU ^ k;- ★
Circuit.isUnitaryLift_flow— the flow lifts the circuit's unitary through the register representative, with no hypothesis (through the canonical measurable unit section); - ★★
Circuit.barycenter_flow_iterate— the density operator afterkruns isU^k ρ (U^k)ᴴ, for every preparation, derived from the ontic flow (barycenter_flow); readout ρ i— the weight the de-isolation channel assigns to outcomei;readout_outerProduct,readout_conj_outerProduct— on a pure input it is the Born weight‖ψ i‖², and after a unitary it is‖(U ψ) i‖²;barycenterMatrix_dirac— the density operator of a preparation concentrated at one point is the projector of its representative;- ★★
Circuit.epistemicMeasure_globalBasin_flow_iterate— the readout onΣ: at the point reached from the ray of a unitψbykruns of the circuit, the record basin of outcomeihas Born weight‖(U^k ψ) i‖²(globalBasin_born).
Helpers, index-generic: toEuclideanLin_pow_apply, toEuclideanLin_reindex_piLpCongrLeft.
⚠️ Honest scope. A circuit is its unitary; no gate decomposition, timing, or Hamiltonian
generating U is modelled (the flow is the time-one map of the projective action, as in
RegisterFlow.lean, and R-015 applies). The readout is the corpus's computational-basis record
basin, context-fixed and kinematic (globalBasin_born's own scope note).
References: Empirical/CSD/QEC/RegisterFlow.lean (the pattern); LF2/FlowChannel.lean
(IsUnitaryLift, barycenter_flow); RecordLayer/GlobalBasin.lean (globalBasin_born);
LF6/DecoherenceChannel.lean; specs/BACKLOG.md #34; specs/future-work.md.
Index-generic helpers #
toEuclideanLin of a power is the iterate: @[simp] Matrix.toLpLin_pow applied to a vector.
Reindexing a matrix and its argument together.
The coordinate of a reindexed vector at a reindexed index.
The register's sector and representative #
A circuit on the register indexed by ι: a unitary on EuclideanSpace ℂ ι.
The unitary of the circuit.
Unitarity,
Uᴴ U = 1.
Instances For
A nonempty register has a nonzero number of basis states.
The enumeration of the register's index that places its sector at ℂℙ^{card ι − 1}.
Equations
Instances For
The register's sector, Σ = ℂℙ^{card ι − 1}.
Instances For
The register representative: the canonical measurable unit section of the sector, read in the register's own index.
Equations
Instances For
The circuit as a flow #
The circuit's unitary, enumerated, as an element of U(card ι).
Equations
Instances For
The enumerated unitary of k runs is the reindexed U ^ k.
The circuit as a flow on Σ: the projective action of its unitary on the register's
sector. A flow of the corpus's cpSectorData (Σ = P = ℂℙ^{card ι − 1}, π = id).
Equations
- C.flow x = C.toUnitaryGroup • x
Instances For
k runs of the circuit are the flow iterated k times: the projective action of U ^ k.
★ The flow lifts the enumerated unitary through the canonical unit section, with no hypothesis.
★ The flow lifts the circuit's own unitary through the register representative.
★★ The density operator after k runs is U^k ρ (U^k)ᴴ, for every preparation on the
sector, derived from the ontic flow: the Schrödinger picture of the circuit.
The same in the enumerated index, the form the readout channel takes.
The point reached from the ray of ψ by k runs is the ray of U^k ψ.
★★ The readout on Σ. At the point reached from the ray of a unit vector ψ by k runs
of the circuit, the record basin of the computational-basis outcome i (the apparatus's
context-fixed basin, globalBasin) has Born weight ‖(U^k ψ) i‖².
The readout channel #
The readout: the weight the de-isolation channel assigns to the computational-basis
outcome i of a density operator ρ, the diagonal entry of the channel's output.
Equations
Instances For
On a pure input the readout is the Born weight.
After a unitary, the readout of a pure input is the Born weight of the image.
The density operator of a preparation concentrated at one point is the projector of that point's representative.