wai-quantum-service: two worked examples that measure in the middle #338
Loading…
Reference in a new issue
No description provided.
Delete branch "wai/quantum-dynamic-examples"
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's worked examples (
/v1/examples, the MCPquantum_circuit_examplestool, and the console's example chips) gain two programs that measure in the middle, now that the service runs them:ry(0.7)on q0 arrives on q2 through two mid-circuit measurements and theifcorrections they select. It runs on the state vector; ⟨Z2⟩ = cos 0.7 and ⟨X2⟩ = sin 0.7 exactly, weighed over all four branches.ifundoes it; ⟨X0⟩ = 1 after decoding. Every gate is Clifford, so it runs on the stabilizer tableau.the_measuring_examples_show_what_they_sayruns both and holds each to what its description says, and the planner test lists the methods they take.Checked on the build host:
cargo clippy --locked --all-targets -- -D warningsandcargo test --lockedinwai/wai-quantum-service(60 passed). Both programs were also run against the live service before the change.🤖 Generated with Claude Code