Quantum circuit gate symbols (H, X, CNOT, measurement)
The symbols of a quantum circuit diagram: each horizontal line is a qubit, a box with a letter is a gate (H for Hadamard, X, Y, Z, S, T), a dot joined by a line to ⊕ is a controlled-NOT, and a box with a meter is a measurement.
How to read it
IBM’s course Basics of Quantum Information puts the model in one line: wires represent qubits and gates represent operations on these qubits, and the flow of information goes from left to right. Single-qubit gates are squares with a letter naming the operation. A controlled gate is a filled-in circle on the control qubit, joined by a vertical line to the operation it controls; for the controlled-NOT the target is a circle resembling ⊕. Classical bits, which hold measurement results, are drawn as double lines. Circuits often start with every qubit set to |0⟩, a state written in Bra-ket notation (|ψ⟩).
Also searched as: CNOT symbol, Hadamard gate symbol, quantum circuit symbols, quantum gates.
What each symbol means
| Symbol | Name | What it does |
|---|---|---|
| Single line | Qubit wire | One qubit, followed left to right |
| Double line | Classical bit | Holds a measurement result |
| H in a box | Hadamard gate | Turns the 0 and 1 states into the + and − states; used to make superpositions |
| X in a box, or ⊕ | NOT (Pauli X) gate | Flips the 0 state to 1 and back |
| Y in a box | Pauli Y gate | X and Z together, up to a global phase |
| Z in a box | Pauli Z gate | Leaves the 0 state alone and changes the sign of the 1 state |
| S in a box | S gate | Applies a phase of i to the 1 state |
| T in a box | T gate | A rotation about the z axis by π/4 |
| Dot, line, ⊕ | Controlled-NOT (CNOT, CX) | NOT on the target when the control is 1 |
| Dot, line, dot | Controlled-Z (CZ) | Z on the target when the control is 1 |
| Two dots, line, ⊕ | Toffoli (CCX) | NOT on the target when both controls are 1 |
| × on two wires, joined | SWAP | Exchanges the states of two qubits |
| Meter in a box | Measurement | Reads the qubit in the standard basis; not reversible |
IBM’s Composer adds two operations that are not gates. The reset operation returns a qubit to |0⟩. A barrier tells the compiler not to combine gates across it, and IBM says it is also useful for visualizations; Qiskit’s documentation calls it a no-op in hardware.
Qiskit’s drawings and textbook ones
Qiskit, IBM’s software for writing circuits, names the controlled-NOT cx and, in its text drawings, puts an X in a box on the target where the textbook form has ⊕. Its SWAP is an X on each wire, joined by a line, and its controlled-Z a dot on each wire. Qiskit numbers the top wire qubit 0; IBM’s course notes that this is the rightmost position when the qubits are written as a string. Qiskit’s documentation for the controlled-NOT adds that many textbooks take the more significant qubit as the control, so a textbook matrix for the same gate is written the other way round.
Where the notation comes from
In their 1995 paper “Elementary gates for quantum computation”, written for Physical Review A, Adriano Barenco, Charles Bennett, David DiVincenzo, Peter Shor and five co-authors say they adopted a version of Richard Feynman’s notation, from his article “Quantum mechanical computers” (Optics News, February 1985), and that in all their diagrams time proceeds from left to right. They credit the circuit model itself, the quantum gate array in which each wire is a qubit, to David Deutsch’s “Quantum computational networks” (Proceedings of the Royal Society A, 1989). The paper showed that one-qubit gates and the two-bit exclusive-or gate, the controlled-NOT, are enough to build any unitary operation on any number of qubits.
Look-alikes
⊕ on its own is the exclusive-or (XOR) sign, and IBM’s course uses it for XOR in ordinary logic circuits. The reading carries over: Barenco and co-authors call the controlled-NOT the XOR gate. The state a circuit acts on is often written with Psi, as |ψ⟩.
Write in Greek letters
stringmash.comGreek alphabet translatorWrite English in Greek letters by sound, or turn Greek back into Latin letters as Greek passports do.Read next
- Next in Greek lettersBetaBeta (Β, β) is the second letter of the Greek alphabet. In statistics β is the chance of a Type II error; in finance a stock’s beta measures how its returns move with the market; beta rays are electrons and positrons; and beta software is a version released for testing.
- The same shape in African flagsFlag of BurundiA white diagonal cross divides the flag into red triangles at top and bottom and green ones at the sides, with a white disc in the centre holding three red six-pointed stars. The Presidency of Burundi says the red recalls the sacrifices made to defend the nation and win independence, the green hope and prosperity, the white peace and unity, and that the three stars traditionally stand for the national motto, “Unity, Work, Progress”.
More greek letters
The same shape elsewhere
Browse symbols drawn with circles, crosses, letters and numbers or squares and rectangles.
Sources
- Circuits, Basics of Quantum Information (John Watrous), lesson Quantum circuits, IBM Quantum Learning, Quantum circuits
- IBM Quantum Composer, IBM Quantum Documentation, Composer operations glossary, IBM, Composer operations glossary
- CXGate (latest version), Qiskit SDK API reference, IBM Quantum Documentation, CXGate
- SwapGate (latest version), Qiskit SDK API reference, IBM Quantum Documentation, SwapGate
- CZGate (latest version), Qiskit SDK API reference, IBM Quantum Documentation, CZGate
- Elementary gates for quantum computation, A. Barenco, C. H. Bennett, R. Cleve, D. P. DiVincenzo, N. Margolus, P. Shor, T. Sleator, J. Smolin and H. Weinfurter, arXiv:quant-ph/9503016 (1995); Phys. Rev. A 52, 3457, arXiv, Abstract; 1 Background; 3 Notation; reference [7]
Researched, edited and approved by Rory Hansen before publishing. Last reviewed September 30, 2026. How we research
Added .