Quantum Circuit

What's good for a quantum computer can't be bad for humans, can it?

Quantum circuits are more than just abstract math. They bridge theory and hardware by turning dense unitary matrices into structured recipes that real devices can execute. From the simplest Bell state to complex algorithms, circuits provide an essential layer of abstraction that makes quantum computation both understandable and practical.

by Frank Zickert
September 17, 2025
Quantum Circuit

A quantum circuit is a structured sequence of An Unitary operator is a reversible quantum transformation. applied to A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states.. Nielsen, M.A., 2010, Cambridge university press, .

When you think of a circuit, you may picture wires, resistors, and capacitors. A quantum circuit works very differently. Instead of currents, it uses A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states., and instead of resistors, it employs An Unitary operator is a reversible quantum transformation.. Yet both quantum and electrical circuits function as abstract models. They allow you to analyze how complex hardware systems are built and how they operate.

Do Quantum Circuits Look Alien to You?

Let's make them familiar
5 min
When you first see a quantum circuit, it can feel a bit like staring at an alien language. Strange wires run across the page. Boxes with cryptic symbols sit on top. And the whole thing seems detached from the way we normally think about software. But here’s the twist: quantum circuits aren't alien at all. They're just the way we use to describe quantum computations. And once you know the building blocks, you’ll see they’re not only familiar, they’re surprisingly intuitive.

Yet, treating quantum circuits as classical logic analogues is misleading . Although both types of circuits serve the same purpose, their internal mechanisms differ completely. quantum circuits capture Superposition is... and Entanglement is..., Preskill, J., 2018, Quantum, Vol. 2, pp. 79.

The Bell State circuit is the simplest nontrivial Quantum Circuit that reveals what sets quantum computing apart from classical logic. Think of it as the hello world of quantum computing.

The circuit begins with two A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. in the state . Applying a Hadamard Operator to the first A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. places it into a Superposition is... of is a basis state. and is a basis state.. A Cnot Operator then links the A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. For the first A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. is in the Quantum State is... is a basis state., the second flips from is a basis state. to is a basis state. and vice versa. If the first is is a basis state., the second remains unchanged.

You can represent this Quantum Circuit in different ways. Textbooks often start with mathematics. The circuit corresponds to the equation:

Figure 1 Equation of the bell state quantum cicruit

Figure 1 denotes the euqation of the Bell State circuit.

A Quantum Circuit like this is a sequence of matrix multiplications that reads from right to left.

  1. We apply , where is the Hadamard Operator acting on the first A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. and is the Identity Matrix acting on the second.
    • The symbol denotes the Tensor Product.
    • is a An Unitary operator is a reversible quantum transformation..
    • is the Identity Matrix.
    • The Tensor Product is a An Unitary operator is a reversible quantum transformation. acting on two A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. simultaneously. It applies a Hadamard Operator to the first while leaving the second unchanged.
    Figure 2 The tensor product of H and I

    Figure 2 denotes the Tensor Product .

  2. We apply the Cnot Operator whose matrix is depicted in ?. Since this operator is an entanglement gate, we cannot write it as a Tensor Product of two single-A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. matrices.
    Figure 3 The matrix of the CNOT operator

The second representation of a Quantum Circuit is a circuit diagram shown in ?.

Figure 4 Quantum circuit diagram of the Bell state

In this diagram, each A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. appears as a horizontal line. You read the it from left to right. A single qubit gate is a block on its line. A Controlled Operator marks the control with a dot on the control line and shows the target as the gate block on the target line.

You can create the Bell State circuit with a short Python program using Qiskit depicted in ?.

bell-state.py
1
2
3
4
5
from qiskit import QuantumCircuit
 
qc = QuantumCircuit(2)
qc.h(0) # Hadamard on the first qubit
qc.cx(0, 1) # CNOT with control=0, target=1
Listing 1 Circuit that creates a Bell state
    In this circuit, we
  1. the QuantumCircuit class from Qiskit,
  2. define a with two A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states.,
  3. apply the operator on the first qubit at position 0,
  4. and apply the (cx) with the first qubit as the control qubit and the second qubit (at position 1) as the target.


On paper, the logic is straightforward. Every Quantum Gate corresponds to a Unitary Transformation, and the Bell State circuit can be described as the product of a Hadamard Operator and a Cnot Operator applied to the state , which entangles the two A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states..

Plain Matrix Multiplication explains the outcome because each Quantum Gate has a concrete matrix representation: the Hadamard Operator is a Unitary Transformation, while the Cnot Operator is a Unitary Transformation. When used in sequence, these matrices multiply to form one composite Unitary Transformation. The result is why the equation states that the series of operations is equal to . In this sense, the entire Quantum Circuit can be represented as one large matrix as depicted in ?.

Figure 5 Equation of the bell state quantum cicruit

Figure 5 denotes the euqation of the Bell State circuit.

When this matrix acts on the initial state vector , it produces a new state vector. That vector describes the state of the entire system after the circuit has been applied as shown in ?.

Figure 6 Apply the circuit onto the basis state |00>

The result is the Bell State. In this Quantum State is..., information is no longer stored locally in individual A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states. but in the system as a whole. This representation illustrates the principles of Non Locality.

At first glance, the equivalence appears airtight. The Bell State circuit looks like nothing more than the multiplication of the Hadamard Operator and Cnot Operator matrices. Following this reasoning, every Quantum Circuit is a Unitary Transformation, and every Unitary Transformation could in principle be expressed as a Quantum Circuit. You might then wonder why the distinction matters at all. Why not ignore the circuit representation and write down the final matrices directly?

The mathematical representation of a quantum computation offers only the theorist's perspective. Real quantum hardware does not manipulate large matrices directly. Instead, it relies on basic building blocks such as single-qubit rotations and a restricted set of two-qubit operators. The most common example is the Cnot Operator, which can only act between specific pairs of connected A qubit is the basic unit of quantum information, representing a superposition of 0 and 1 states..

These physical constraints mean that even though the mathematics allows clean decompositions of Unitary Transformation, Shende, V.V., 2004, , . Kjaergaard, M., 2019, , .

If we were given only a large matrix, the practical challenge would be to break it down into a sequence of Quantum Gate that the hardware can execute reliably. This decomposition step is unavoidable because the hardware understands only the primitive operations available to it.

However, in the literature, you will rarely see a Quantum Circuit expressed using only native Quantum Gate. The reason is that, much like an electrical circuit, a Quantum Circuit fulfills another crucial role. It serves as an abstraction layer that humans can understand. This is similar to higher-level electrical circuits that make use of pre-built components such as microprocessors or sensors.

A circuit uses components
Figure 7 A circuit uses components

A Quantum Circuit also acts as a practical tool for decomposition because it conveys a mathematical transformation in a way that humans can follow step by step. This quality makes it an effective bridge between abstract Linear Algebra and implementable hardware instructions.

In real work, you almost never manipulate Unitary Transformation directly. Instead, you construct Quantum Circuit that then will be decomposed, mapped, and optimized for the hardware in use. Through decomposition, what begins as an overwhelmingly dense mathematical object becomes a structured and manageable recipe for computation. The Bell State illustrates this principle on a small scale, but the same reasoning extends to more complex algorithms.

At the level of circuits, there are many established recipes beyond the Bell State circuit. These recipes help you decide which Quantum Gate to apply and in which sequence, giving you a practical framework for building computations on real hardware.