
The phenomenon of entanglement is perhaps the most prominent feature of quantum mechanics. In this tutorial you can learn how this can be done with the quantum circuit simulator and how entanglement is reflected in the measurement outcomes.
Prerequisite Tutorials:
• The Basics of Quantum Mechanics
• Quantum Algorithms & Quantum Circuits
• Superpositions, Randomness & Interference
Open the quantum circuit simulator in a separate window
The phenomenon of entanglement is perhaps the most prominent feature of quantum mechanics. As it happens, it is also crucial for quantum computers to outperform their classical counterparts. Therefore it is not uncommon for larger quantum algorithms to start off with the preparation of entangled pairs (or even groups) of qubits. Here you will learn how this can be done with the quantum circuit simulator and how entanglement is reflected in the measurement outcomes.
Creating an entangled pair of qubits
Use the +
and -
buttons in the Quantum Circuit
box to setup the circuit simulator with two qubits q[0]
and q[1]
.
To generate entanglement between two qubits we need two gates: The Hadamard gate
To generate an entangled state, we first create a superposition state on the qubit q[0]
, and then use this qubit as the control of a Controlled-NOT gate with q[1]
as the target. To do this, drop a Hadamard gate and a Controlled-NOT gate in the circuit simulator as follows:

Run this quantum circuit on the quantum simulator multiple times and observe the measurement outcomes. Can you theoretically explain the histogram? Can you explain with these results why entanglement cannot be used to send information faster than light?
Explanation
The two gates transform the initial state as follows:
The state
This conclusion is not correct, though! To exploit the entangled state for information transmission, the sender would have to force the qubit to collapse either into
We discuss entanglement in our tutorial on the basics of quantum mechanics.
Ⓒ2023 Tutorial by Nicolai Lang, Institute for Theoretical Physics III, University of Stuttgart