wai-quantum 0.6.9: cut-rank amplitudes with the circuit's own global phase #350
Loading…
Reference in a new issue
No description provided.
Delete branch "wai/quantum-exact-phase"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
wai-quantum 0.6.9. The service's
cutrankamplitudes now carry the circuit's own global phase, so they equal the state vector's exactly rather than up to a shared phase.What changes
PhasedTableau(quantum_tableau) is a stabilizer tableau with its global phase.rof the support and its exact amplitude⟨r|ψ⟩ = 2^{-k/2} e^{iπm/4}.rand the phase directly.a, the amplitude ofr ⊕ e_aisc · ⟨r|ψ⟩, withcread from the stabilizer whose X part is exactlye_a. That stabilizer is found by reducing the stabilizers, aboutn³/64word operations;c = 0when there is none.√X = H S Hexactly.ProductMeasured::with_last(same graph form, order and steps; other closing gates) andProductMeasured::scale(every amplitude times a factor, folded into one qubit's weights).cutrankamplitudes bye^{iΘ} a/b:e^{iΘ}is the phase the lowering to Clifford gates drops, read gate by gate from each gate's matrix against its lowering's;ais the tracked amplitude;bis the graph form's amplitude at the same basis state, with identity closing gates.global_phaseis not fixed, as before.autonow triescutrankfor amplitudes, beforetensor_network.Evidence
with_lastandscaleagree with fresh builds.rz,rx,ry,u,p,cp,rzz,rxx,iswap,sx,sxdg,cy,swap,crzandcuat Clifford angles.--lib quantum_tableau(11),quantum_cutrank(8),--test bit_identity(23);smoke.shagainst a local server;check-lockfiles.🤖 Generated with Claude Code
PhasedTableau tracks one basis state of a stabilizer state's support and its exact amplitude (2^{-k/2} e^{iπm/4}) through every gate; a Hadamard reads the stabilizer whose X part is the one qubit. ProductMeasured gains with_last and scale. The service's cutrank method scales its amplitudes by e^{iΘ} a/b (the lowering's dropped phase, the tracked amplitude, the graph form's at the same basis state), so they carry the circuit's own global phase; auto tries cutrank for amplitudes. Tests against the dense state vector, phase included; three mutants caught. Version 0.6.9 in every lockfile that pins it. Co-Authored-By: Claude Opus 5.5 <[email protected]>