Quantum Entanglement: The Spooky Action Explained

Qx Team 4 min read

# Quantum Entanglement: The Spooky Action Explained

Quantum entanglement is one of the most intriguing and counterintuitive aspects of quantum mechanics. Einstein famously called it "spooky action at a distance," and for good reason—entangled particles remain mysteriously connected regardless of the distance separating them.

# What is Quantum Entanglement?

When two or more quantum particles become entangled, measuring the state of one particle instantaneously affects the state of the other, no matter how far apart they are. This correlation is stronger than anything possible in classical physics.

# The Bell State

The most famous example of entanglement is the Bell state, particularly the EPR pair:

|Φ⁺⟩ = (|00⟩ + |11⟩) / √2

This state represents two qubits that are perfectly correlated: if you measure the first qubit as 0, the second will always be 0. If the first is 1, the second will be 1.

# Creating Entanglement in Qx

Here's how to create a Bell state using Qx:

elixir
# Create two qubits in the |0⟩ state
{qubit1, qubit2} = {Qx.Qubit.new(0), Qx.Qubit.new(0)}

# Apply Hadamard gate to the first qubit
qubit1 = Qx.Gates.hadamard(qubit1)

# Create entanglement with CNOT gate
{qubit1, qubit2} = Qx.Gates.cnot(qubit1, qubit2)

After this sequence, the two qubits are entangled in the Bell state |Φ⁺⟩.

# Why Entanglement Matters

Entanglement is not just a curiosity—it's the foundation of many quantum technologies:

# 1. Quantum Communication

Quantum key distribution (QKD) uses entangled photons to create unbreakable encryption keys. Any attempt to intercept the key disturbs the entanglement and is immediately detected.

# 2. Quantum Teleportation

Despite its sci-fi name, quantum teleportation is real! It uses entanglement to transfer quantum states between particles without physically moving them.

# 3. Quantum Computing

Many quantum algorithms, including Shor's factoring algorithm and quantum error correction, rely heavily on entanglement to achieve their speedup over classical algorithms.

# Measuring Entangled States

One of the most fascinating aspects of entanglement is what happens when you measure:

elixir
# Measure the first qubit
{result1, qubit1} = Qx.Simulation.measure(qubit1)

# Now measure the second qubit
{result2, qubit2} = Qx.Simulation.measure(qubit2)

# result1 will always equal result2!

No matter how many times you repeat this experiment, the measurements will always be perfectly correlated.

# The EPR Paradox

In 1935, Einstein, Podolsky, and Rosen (EPR) proposed a thought experiment to show what they believed was a flaw in quantum mechanics. They argued that if quantum mechanics were complete, entanglement would require faster-than-light communication, which violates relativity.

However, in 1964, John Bell proved that quantum mechanics makes predictions that differ from any local hidden variable theory. Subsequent experiments have confirmed quantum mechanics' predictions, showing that entanglement is real and nature truly is non-local at the quantum level.

# Common Misconceptions

# "Entanglement enables faster-than-light communication"

False. While entangled particles are correlated, you cannot use this to send information faster than light. The measurement results are random; only the correlation between them is predetermined.

# "Entanglement means one particle affects the other"

Partially true. It's better to think of entangled particles as a single quantum system, not as separate objects affecting each other. The correlation exists from the moment of entanglement.

# Try It Yourself

Want to experiment with entanglement? Download our interactive Livebook guide on quantum entanglement, where you can:

  • Create different types of Bell states
  • Visualize entangled state representations
  • Implement quantum teleportation
  • Explore multi-qubit entanglement

Download the Entanglement Guide →

# Further Reading


Entanglement is just the beginning. Explore more quantum phenomena with Qx and unlock the potential of quantum computing.