drawcircuits.xyz

Quantum Gate Reference

A quick visual guide to every gate available in the quantum circuit editor.

Hadamard gate (H)

Creates or removes an equal superposition of |0⟩ and |1⟩.

Pauli-X gate (X)

Flips |0⟩ to |1⟩ and |1⟩ to |0⟩; the quantum equivalent of NOT.

Pauli-Y gate (Y)

Rotates a qubit by π around the Y axis of the Bloch sphere.

Pauli-Z gate (Z)

Flips the phase of |1⟩ while leaving |0⟩ unchanged.

S phase gate (S)

Applies a π/2 phase rotation; equivalent to the square root of Z.

T phase gate (T)

Applies a π/4 phase rotation; equivalent to the fourth root of Z.

X rotation (Rx)

Rotates a qubit by a chosen angle around the X axis.

Y rotation (Ry)

Rotates a qubit by a chosen angle around the Y axis.

Z rotation (Rz)

Rotates a qubit by a chosen angle around the Z axis.

Controlled-NOT (CNOT)

Flips the target when the control is |1⟩; commonly used to create entanglement.

Controlled-Z (CZ)

Applies a Z phase flip when both connected qubits are |1⟩.

Toffoli gate (TOFFOLI)

Flips a target qubit when both control qubits are |1⟩.

SWAP gate (SWAP)

Exchanges the quantum states of two qubits.

Custom multi-qubit gate (MULTI)

Represents a named operation spanning two or more adjacent qubits.

Classical control (CLASSICAL)

Uses a measured classical bit to conditionally apply an X or Z gate.

Measurement (MEASURE)

Measures a qubit in the computational basis, producing a classical 0 or 1.