Recently, I came across quantum annealing, which is a super smart way in utilizing principles of quantum mechanics to solve time intensive analytical problems in a shorter time frame. The script
ex1_OneDimQuantAnnealing.py
describes a double well potential with the form
The Hamiltonian representing the problem to be minimized.
A Hamiltonian that induces quantum fluctuations.
Use a time-dependent Hamiltonian that gradually switches from the driver to the problem Hamiltonian.
Use numerical methods to solve the TDSE for the time-dependent Hamiltonian.
Analyze the final state to find the solution to the optimization problem.
One-dimensional Quantum Annealing
Let's consider a simple example where we solve for the ground state of a double-well potential using quantum annealing.
- Define the Hamiltonians
Driver Hamiltonian (transverse field term):
Problem Hamiltonian:
- Time-dependent Hamiltonian
$$H(t)=(1-s(t))H_D + s(t)H_P$$
where
- Solve the TDSE
We'll use the Crank-Nicolson method to solve the TDSE numerically.
The double-well-potential given by
