wai-quantum-service: the cutrank method, exact samples of a Clifford circuit measured in a product basis #342
Loading…
Reference in a new issue
No description provided.
Delete branch "wai/quantum-service-cutrank-pr"
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?
The service gains the
cutrankmethod, built on wai-quantum 0.6.6'squantum_cutrank(#340). It gives exact samples, and amplitudes, of a Clifford circuit followed on each qubit by one-qubit gates at any angles. The cost is set by the state's cut-rank along an order of the qubits, not by how many qubits there are.What it takes and answers
qasm::Program::product_measuredsplits the program in two. The Clifford part is lowered gate by gate. Each qubit's gates, from its first non-Clifford one on, are multiplied into one matrix. A gate on several qubits that comes after such a gate is refused, and its refusal names the gate and the qubit.catalog::product_measured):global_phasemember says so, andaccuracy.max_cutgives the widest cut.autotriescutrankfor counts after the state vectors and beforemps. For amplitudes it stays explicit, so the methods that fix the phase keep their place.Evidence
autosamples a 40-qubit ring with chords bycutrank;smoke.shsamples a 60-qubit instance (max cut 10 bits).cargo test --locked --release(64 passed), clippy with-D warnings, and the fullsmoke.shagainst a local server.🤖 Generated with Claude Code