To simulate quantum system of 3 spin-1/2 particles system model on a particular state |110> over time t =0 to t = pi i.e., ๐‘‹๐‘‹๐‘‹ Heisenberg spin model, where each qubit represents a quantum spin-1/2 particle in a 1D chain.

Amir Khan
4 min readDec 8, 2022

--

Objective 1:

Create XXX Heisenberg model for 3 spin-1/2 particles in a line.

we have a Hamiltonian (๐ปHeis3), we can use it to determine how the quantum system of

3 spin-1/2 particles changes in time.

But Hamiltonian Hheis3 does not change in time.

Hamiltonian Hheis3 equation

Compute the unitary time evolution under the Hamiltonian for a given time t.

By knowing Hamiltonian, we can determine how quantum states of that system evolve in time by solving Schrodinger equation.

Calculating the time evolution operator ๐‘ˆHeis3(๐‘ก).

we have the operator ๐‘ˆHeis3(๐‘ก) which describes how any state of the quantum system changes in time by doing simulation on classical computer.

time evolution operator ๐‘ˆHeis3(๐‘ก)

Simulate using operator ๐‘ˆHeis3(๐‘ก) on target phase |110> from t =0 to t = pi (100 steps).

we have the operator ๐‘ˆHeis3(๐‘ก) which describes how any state of the quantum system changes in time.

size of ๐‘ˆHeis3(๐‘ก) 8X8 2ยณ = 8 states for N=3

time t = 0 to t = pi

Simulation Plot run on classical computer

Objective 2:

๐‘ˆHeis3(๐‘ก) must be decompose into product of single and two-qubit gates using Trotterization.

we will use Trotterization for this product decomposition can be approximated with

Trotterization, where n is the number of trotter steps >=4, as n increases, the approximation becomes more accurate. with the help of it we now have approximately decomposed ๐‘ˆHeis3(๐‘ก) into two-qubit gates XX(t), YY(t), ZZ(t).

N = number of repeated times

Trotterization decomposition output of ๐‘ˆHeis3(๐‘ก)

Evolution of the state |110> must be done using Trotterization with at least 4 steps n>=4.

Fig above โ€” Generated state tomography circuits to evaluate fidelity of simulation

Calculate the state tomography fidelity on noiseless, noisy, real manila backend simulators and compare.

compete based on the fidelity of the evolved state at time ๐œƒ=๐œ‹ using state tomography.

State tomography is a way of determining the exact quantum state โ€” even phase information โ€” at

the end of a quantum circuit by running the circuit multiple times and measuring in different bases.

State tomography will evaluate how well the quantum simulation matches to the expected state at ๐œƒ=๐œ‹.

The closer your final quantum state to the expected state, the higher the fidelity.

we will be using 3 out of 7 qubits of IBM manila [2,1,0] in order Ibmq_manilaโ€™s remaining qubits will not be evaluated by the state tomography calculation.

expected final state โ€” |110>

noiseless simulator

QasmSimulator()

Day run: state tomography fidelity on qasm_simulator (noiseless) = 0.0003 (mean) ยฑ 0.0002 (standard deviation)

Night run: state tomography fidelity on qasm_simulator = 0.0002 ยฑ 0.0002

n=4 jobs executed on quantum computer using noiseless simulator

sim_noisy_manila โ€” simulator that mimics ibmq_manila

QasmSimulator.from_backend(provider.get_backend(โ€˜ibmq_manilaโ€™))

Day run: state tomography fidelity on qasm_simulator(ibmq_manila) = 0.0430 ยฑ 0.0010

Night run: state tomography fidelity on qasm_simulator(ibmq_manila) = 0.0376 ยฑ 0.0010

n = 4 jobs

manila โ€” real manila backend

provider.get_backend(โ€˜ibmq_manilaโ€™)

state tomography fidelity on ibmq_manila = 0.1017 ยฑ 0.0035

n = 4 jobs

--

--

Amir Khan
Amir Khan

Written by Amir Khan

Deep Learning, Machine Learning, NLP, Pytorch, Tensorflow, Reinforcement Learning and Computer Vision Enthusiast

Responses (1)