what does this symbol mean?
Two circuit lines with a box marked H, a dot joined to a circled plus, and a meter

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

SymbolNameWhat it does
Single lineQubit wireOne qubit, followed left to right
Double lineClassical bitHolds a measurement result
H in a boxHadamard gateTurns the 0 and 1 states into the + and − states; used to make superpositions
X in a box, or ⊕NOT (Pauli X) gateFlips the 0 state to 1 and back
Y in a boxPauli Y gateX and Z together, up to a global phase
Z in a boxPauli Z gateLeaves the 0 state alone and changes the sign of the 1 state
S in a boxS gateApplies a phase of i to the 1 state
T in a boxT gateA rotation about the z axis by π/4
Dot, line, ⊕Controlled-NOT (CNOT, CX)NOT on the target when the control is 1
Dot, line, dotControlled-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, joinedSWAPExchanges the states of two qubits
Meter in a boxMeasurementReads 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 |ψ⟩.

More greek letters

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]

Last reviewed September 30, 2026 by Rory Hansen. How we research

Report a problem

Please don’t include personal details.