Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Glossary

Quantum gate

An elementary operation used in a quantum circuit. In the ideal closed-system model, a gate is unitary and transforms amplitudes while preserving total probability.

Edition released Entry updated Coverage: Overview
On this page

Plain-language explanation

A gate may act on one qubit or several. Some swap basis states, some change relative phases, and others create or modify correlations. Gate symbols describe intended mathematical transformations. Their physical implementation depends on the hardware and control system. Measurement and reset often appear beside gates in circuit diagrams but are not generally unitary operations on the qubits alone.

Gates are the vocabulary of circuit diagrams. A few familiar examples let beginners understand simple quantum processes without needing to know the underlying device physics.

Example

X exchanges 0 and 1. H maps 0 to plus and 1 to minus. CNOT flips a target qubit conditional on a control basis value while acting coherently on superpositions. These roles are different even when all three appear as small symbols in a diagram.

Scope and limits

A gate is not a magic command that selects a desired answer. Its action must be defined consistently for every possible input state, including superpositions.

Unitary operation is a related idea. An ideal gate implements a unitary transformation. The word gate emphasizes a circuit building block; unitary describes the mathematical property, including transformations too large to be elementary.

Single-qubit gate — plain-language explanation

An operation acting on one qubit. In the ideal model it is a two-by-two unitary transformation that changes the qubit's state without directly coupling it to another system.

Single-qubit gates can rotate a pure state around the Bloch sphere, change relative phase or switch between measurement bases. They remain meaningful when the qubit belongs to an entangled register: the full operation acts on that qubit and as identity on the others. Local gates alone cannot create entanglement from a product input, although they can change how existing correlations appear in measurements.

This category helps readers understand which circuit steps manipulate individual states and which steps can establish new relationships between systems.

Single-qubit gate — example

Applying H to the first qubit of 00 produces plus tensor 0, still a product state. Applying an appropriate two-qubit operation afterward can create entanglement. The first operation creates a local superposition; the second can alter the joint structure.

Single-qubit gate — scope and limits

A single-qubit gate on part of an entangled system should not be analyzed as if that qubit had its own pure state. Use the full joint state or the appropriate reduced description.

Two-qubit gate is a related idea. A single-qubit gate acts locally on one system. A two-qubit gate acts jointly and, depending on the gate and input, can create entanglement.

Two-qubit gate — plain-language explanation

An operation acting jointly on two qubits. Some two-qubit gates can create entanglement, making them essential building blocks for general quantum circuits.

The joint state space has four computational-basis states, so an ideal two-qubit gate is represented by a four-by-four unitary matrix. CNOT, controlled-Z and SWAP are familiar examples with different effects. A gate's ability to entangle depends on its mathematical action; a particular input may still leave unentangled. SWAP, for example, exchanges states without creating entanglement from a product state.

This explains why circuit descriptions distinguish one-qubit and multi-qubit operations. The distinction is about joint information processing, not simply the number of symbols drawn.

Two-qubit gate — example

CNOT applied to 00 leaves 00 unchanged. CNOT applied to plus tensor 0 produces a Bell state. The same operation therefore creates entanglement for one input and not another. The input state is part of the explanation.

Two-qubit gate — scope and limits

Do not assume every two-qubit gate entangles every pair it acts on. Both the operation and the input determine the result, and some joint gates are non-entangling.

Single-qubit gate is a related idea. Local single-qubit operations cannot create entanglement from a product input. An entangling two-qubit operation can, but its effect still depends on the input state.

Sources

  • John Preskill, Caltech · Reference · preskill.caltech.edu
    Verification scope

    Recorded source check ·

    Reversible circuits, gates, universality and information constraints

    Ideal circuit model does not establish physical gate costs.

  • IBM Quantum Learning · Reference · quantum.cloud.ibm.com
    Verification scope

    Recorded source check ·

    Circuit notation, gate operations and qubit-order conventions

    Software diagram conventions can differ; retain explicit ordering.

  • John Preskill · · Lecture or course notes · preskill.caltech.edu
    Verification scope

    Citation identity checked ·

    Background reference; this record does not claim a full independent peer review of the encyclopedia. Original exposition and newly constructed calculations are not copied from the source.