This checkpoint ties the module together: you will Trotterize a genuine many-body Hamiltonian, run one
evolution step on a three-spin chain, and read out the measurement distribution — combining the
product-formula construction, the spin-chain encoding, and the measurement skills from the previous
lessons.
The transverse-field Ising model
The transverse-field Ising model (TFIM) is the most-studied solvable many-body system and a
standard quantum-simulation benchmark. On an open chain of three spins it is
H=−J(Z0Z1+Z1Z2)−h(X0+X1+X2).
The ZZ bonds want neighbouring spins to align (ferromagnetic order); the transverse field hX
wants each spin to point along x, i.e. into an equal superposition of up and down. The competition
between these non-commuting terms — [ZiZi+1,Xi]=0 — drives the famous quantum phase
transition at h=J, and it is exactly this non-commutativity that forces us to Trotterize.
One Trotter step
Split H into the Ising part and the field part and apply each in turn (first order). Because of the
minus signs in H, the exact step carries positive exponents,
e−iHt≈fieldq∏eihtXqbonds⟨a,b⟩∏eiJtZaZb.
With the simulator's convention RP(θ)=e−iθP/2, a positive exponent
e+iϕP is the rotation RP(−2ϕ), so faithfully realising the minus-sign Hamiltonian needs
θzz=−2Jt and θx=−2ht.
Each Ising bonde+iJtZaZb=RZ(−2Jt) in the parity sandwich
CNOTa→bRZ(θzz)bCNOTa→b, applied to bonds (0,1) and (1,2).
The transverse fielde+ihtXq=RX(−2ht) on each qubit.
What you will observe
Starting from the polarised state ∣000⟩, the Ising bonds alone only add phases and leave the
all-zero outcome certain. It is the transverse field that does the interesting work: each RX
rotates a little amplitude into ∣1⟩, so after one step the measurement distribution spreads
across the basis — most weight stays on ∣000⟩, with progressively smaller probabilities on
states having one, two, or three flipped spins. The histogram you get is a snapshot of how quantum
fluctuations begin to melt the ordered state.
Try it
Build one first-order Trotter step of the 3-spin TFIM (J=h=1, t=0.3), starting from
∣000⟩, then measure. The grader checks the full measurement distribution against the value
derived from the reference circuit.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.