Published
-
Single and Multiple Qubit Gates: Building Quantum Circuits
Quantum gates are unitary operations applied to qubits.
Single Qubit Gates
Pauli-X (bit flip)
Action:
Hadamard (creates superposition)
Action on :
Multiple Qubit Gates
CNOT (controlled X)
CNOT flips the target if control is .
This gate can create entanglement.
Circuit Example: Bell State
Start in .
- Apply on qubit 0.
- Apply CNOT with qubit 0 as control and qubit 1 as target.
Result:
This is an entangled state and a key resource in quantum protocols.
Rotation Gates and Continuous Control
Many devices implement parameterized rotations:
These allow smooth state steering on the Bloch sphere and are central to variational algorithms.
Universality (Why Small Gate Sets Are Enough)
A finite gate library can approximate any unitary to arbitrary precision. In practice, one common universal set is:
- Single qubit rotations
- CNOT
This means complex algorithms are synthesized from simple primitives, just like classical logic from NAND like building blocks.
Cost Model for Real Devices
Two qubit gates are usually noisier than single qubit gates. So when optimizing circuits, a practical rule is:
- Minimize two qubit gate count.
- Keep depth low to stay within coherence time.
- Prefer equivalent decompositions with fewer entangling operations.
This is where theory meets engineering in modern quantum programming.