EGK Microelectronic Solutions Group logoEGK QASM Lab
Free quantum circuit viewer

See your quantum circuit.

Paste OpenQASM 2 or 3 and get a clean circuit diagram, gate counts and depth. It runs in your browser and nothing is uploaded.

OpenQASM code

Circuit

HadamardPauli / identity Phase (S, T)Rotation MeasureOther gate

Frequently asked questions

Which gates are supported?

h, x, y, z, s, sdg, t, tdg, sx, id, rx, ry, rz, p, u1, u2, u3, u, cx, cy, cz, ch, crx, cry, crz, cp, cu1, swap, ccx, cswap, plus measure, reset and barrier. Unknown gates are drawn as generic boxes.

Does it simulate the circuit?

No. It draws the circuit and counts gates. To run circuits, use a simulator or real hardware such as IBM Quantum.

What isn't supported?

Custom gate definitions, loops, classical if-statements and subroutines are skipped. Statements the viewer can't read are listed under the editor with their line number.

Is my code private?

Yes. The diagram is drawn in your browser. Your code is never sent anywhere.