wai-quantum 0.6.7: tensor networks that split controlled gates and fix projections #343
Loading…
Reference in a new issue
No description provided.
Delete branch "wai/quantum-tn-split-0.6.7"
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.7. Two exact network reductions that cut the cost of controlled-Z and controlled-X circuits by orders of magnitude.
What changes
Network::amplitude_splitsplits each gate on two or more qubits at every qubit it is block-diagonal on: a control, or a qubit it is diagonal on.G = Σ_a |a⟩⟨a| ⊗ G_a, so that qubit's part is the deltaδ(out, in, k)on its wire, and the blocksG_kkeep the rest, joined by a bond of dimension 2.Network::reducefixes every index that some tensor allows only one value of.Network::amplitudeandNetwork::simplifyare unchanged, so every pinned digest is too (tests/bit_identity: 23 passed).examples/tn_cost(TN_DENSE=1for the old pipeline);wai-quantum tn(--whole-gates);tensor_networkmethod.Measured
On a published release's 61-qubit CZ circuits: log₁₀ multiply-adds for one amplitude, 64 trials.
1,024 trials do not lower the split costs further.
Tests
reducekeeps.check-lockfiles;cargo test --release --features full --lib quantum_tn(13 passed),--test tn_vs_sv,--test bit_identity;cargo checkof the CLI binary;🤖 Generated with Claude Code