Quantum gate reference

Every gate in the Circuit Builder explained in one place: what it does, its matrix, useful identities, where it is used and the code to write it. Qubit order follows the builder: q0 is the leftmost bit.

Reviewed November 2026.

Superposition

Bit flip

Bit and phase flip

Phase flip

Phase

Rotation

Entangling

Permutation

Reversible logic

Readout

Ready to try them? Open the Circuit Builder.