Loading...
Loading...
Feynman's original vision
Quantum simulation was Richard Feynman's original motivation for quantum computing. Simulating quantum systems is exponentially hard for classical computers but natural for quantum ones.
A quantum system with n particles has a state space of dimension 2ⁿ (for spin-1/2 particles). Storing the wavefunction requires exponential memory, and evolving it requires exponential time.
A quantum computer with n qubits can naturally represent and evolve such systems. This is not an algorithmic trick — it is a fundamental match between the simulator and the system being simulated.
State space size
Time evolution
To simulate Hamiltonian evolution on a quantum computer, we decompose the Hamiltonian into a sum of locally-interacting terms and approximate the time evolution operator using the Trotter-Suzuki formula.
H = Σₖ Hₖ, where each Hₖ acts on a small number of qubits. Then e^{-iHt} ≈ (Πₖ e^{-iHₖt/n})ⁿ for large n.
Trotter formula
First-order
Quantum simulation has the potential to revolutionize materials science, drug discovery, and catalysis. Understanding the electronic structure of molecules and materials is fundamentally a quantum mechanical problem.
Current NISQ devices can simulate small molecules and simple materials. As hardware improves, quantum simulation will be one of the first practically useful applications of quantum computing.
Run this code in your own environment to experiment with the concepts.
Use the Variational Quantum Eigensolver to find molecular energy.
import pennylane as qml
from pennylane import numpy as np
dev = qml.device('default.qubit', wires=2)
@qml.qnode(dev)
def circuit(params):
qml.RY(params[0], wires=0)
qml.RY(params[1], wires=1)
qml.CNOT(wires=[0, 1])
return qml.expval(qml.PauliZ(0) @ qml.PauliZ(1))
def cost(params):
return circuit(params)
params = np.array([0.5, 0.3], requires_grad=True)
opt = qml.GradientDescentOptimizer(stepsize=0.4)
for i in range(100):
params = opt.step(cost, params)
print(f'Optimized energy: {cost(params):.4f}')1. What is the dimension of the state space for n spin-1/2 particles?
2. What technique decomposes Hamiltonian evolution into local gates?
3. Who originally proposed quantum computers for simulating physics?