Two qubits and entanglement
One qubit is two amplitudes. You might guess that two qubits are four amplitudes, and you would be right, but the way those four numbers are organised has a surprise in it.
Four amplitudes
Section titled “Four amplitudes”Two classical bits have four possible values: 00, 01, 10, 11. Two qubits have a basis state for each, and a general state is a superposition of all four:
The Born rule works as before. Measuring both qubits gives 00 with probability , and so on.
The pattern continues: qubits need amplitudes. Thirty qubits already need about a billion. This growth is why quantum systems are hard to simulate on ordinary computers, and it is the first hint of where quantum computers might get their power.
On this site the first qubit in a ket is the top wire of a circuit. So means the top qubit is 0 and the bottom qubit is 1.
Combining two qubits
Section titled “Combining two qubits”If the first qubit is in the state and the second is in , the pair is in the state you get by multiplying out the brackets:
This multiplication is called the tensor product, and a state that can be written this way is a product state. In a product state, each qubit has a state of its own.
A gate on two qubits
Section titled “A gate on two qubits”The most important two-qubit gate is CNOT, the controlled-NOT. It has a control qubit and a target qubit, and it flips the target exactly when the control is 1:
In a circuit the control is drawn as a dot and the target as . On basis states CNOT is an ordinary classical operation. It becomes interesting when the control is in a superposition.
Starting from , make the state . To place a CNOT, select it, click the control wire, then click the target wire in the same column.
This puzzle needs JavaScript.
Hint
Put the top qubit into first. Then CNOT acts on both parts of the superposition.
Here is what happened. After the state is . CNOT is linear, so it acts on each term separately: it leaves alone and turns into .
A state with no parts
Section titled “A state with no parts”The state you just made is called a Bell state:
Can it be written as a product of a state for each qubit? Compare with the product formula above. We would need
The second equation says or is zero. But the first needs and the fourth needs . There is no solution.
So in a Bell state the pair has a definite state, yet neither qubit has a state of its own. A state like this, one that is not a product, is called entangled.
Is the state entangled?
It equals . Being a superposition is not the same as being entangled: what matters is whether the state factorises.
What entanglement looks like in measurements
Section titled “What entanglement looks like in measurements”Measure both qubits of . The Born rule gives 00 half the time and 11 half the time, and never 01 or 10. Each qubit on its own looks like a fair coin, but the two coins always agree. Go back to the puzzle and press Measure ×100 to see it.
Two cautions, because this is the most over-interpreted fact in physics.
First, correlation alone is not special. Two sealed envelopes holding the same random bit would also always agree. What makes entanglement different shows up only when the qubits are measured in several different bases, where the correlations are stronger than any envelope scheme can produce. That result is Bell’s theorem.
Second, entanglement does not send messages. Whoever measures first sees a random bit and has no control over which one. Nothing either person does to their qubit changes the statistics the other person sees.
More puzzles
Section titled “More puzzles”There are four Bell states. This one has a relative minus sign and opposite bits.
Starting from , make .
This puzzle needs JavaScript.
Hint
One route: make , flip the bottom qubit, then use to change a sign.
Starting from , make the GHZ state .
This puzzle needs JavaScript.
The last one asks for a gate, so your circuit must be right on every input.
Build a circuit that swaps the two qubits, so that and , using only CNOT gates.
This puzzle needs JavaScript.
Hint
Alternate the direction: control on top, then control on the bottom, then control on top again.
Remember it
Section titled “Remember it”How many amplitudes describe the state of qubits?
, one for each bit string.
What does CNOT do?
It flips the target qubit exactly when the control qubit is 1.
Starting from , which two gates make the Bell state ?
on the first qubit, then CNOT with the first qubit as control.
What does it mean for a two-qubit state to be entangled?
It cannot be written as a product of one state for each qubit.
You measure one qubit of and get 1. What will the other qubit give?
1, with certainty.