Workbench
Edit an OpenQASM 3 circuit, see it drawn, simulate it, and optimize it. Everything shown here is computed by the same engine the CLI and MCP tools use, so the page cannot display a result the engine would not produce.
Circuit
Diagram
- h on q[0]
- h on q[0]
- h on q[0]
- cx on q[0], q[1]
- measure q[0] into c[0]
- measure q[1] into c[1]
- qubits
- 2
- clbits
- 2
- gate count
- 4
- two qubit gate count
- 1
- depth
- 5
- uses mid circuit measurement
- no
- uses classical control
- no
- uses reset
- no
Conversion loss
No conversion loss: the circuit round-tripped exactly.
Measurement results
SIMULATION
Reproducible (seed 42)
1,024 shots| Outcome | Count | Probability | Relative frequency |
|---|---|---|---|
| 00 | 499 | 0.4873 | |
| 11 | 525 | 0.5127 |
Resource estimate
NISQ resources
- logical qubits
- 2
- circuit depth
- 5
- gate count
- 4
- one qubit gate count
- 3
- two qubit gate count
- 1
- measurement count
- 2
- reset count
- 0
- swap count
- 0
- barrier count
- 0
- conditional count
- 0
Fault-tolerant counts
- t count
- 0
- clifford count
- 4
- toffoli count
- 0
- unsupported for ft count
- 0
Assumptions
- Estimator: ketqat-static v0.1.0
- Static count over the circuit as written. No synthesis, decomposition, or optimization is applied.
- Duration not estimated: the hardware snapshot does not characterize every gate used.
- Success probability not estimated: the hardware snapshot does not characterize every gate used.
- No hardware snapshot supplied, so duration and fidelity are not estimated.
Canonical OpenQASM 3
OPENQASM 3; include "stdgates.inc"; qubit[2] q; bit[2] c; h q[0]; h q[0]; h q[0]; cx q[0], q[1]; c[0] = measure q[0]; c[1] = measure q[1];