Minimum-Fluence Two-Level Quantum State Transfer¶
Background¶
A resonantly driven two-level quantum system can be represented by a Bloch vector in the rotating frame. Under the rotating-wave approximation and zero detuning, the effective Rabi controls rotate that vector on the unit sphere. This example transfers the state from the north pole to the positive \(x\)-axis in fixed time while minimizing the integral of the squared Rabi rate, referred to here as normalized Rabi-control fluence.
The optimal trajectory is a great-circle rotation with a known constant control. It therefore tests nonlinear dynamics, terminal equality constraints, control bounds, and preservation of a geometric invariant against an analytical answer.
Problem formulation¶
Let
be the Bloch vector and resonant Rabi angular-frequency control. In the rotating frame, the ideal coherent Bloch equation is
or componentwise
The fixed horizon is \(T=2\). The initial and target states are
The normalized Rabi-control fluence and componentwise control bounds are
Analytical optimum¶
The two endpoint vectors are separated by a Bloch-sphere angle \(\pi/2\). Because \(\lVert\dot{\boldsymbol r}\rVert\le \lVert\boldsymbol\Omega\rVert\), every feasible pulse satisfies
Cauchy-Schwarz then gives the lower bound
Equality is attained by the constant \(y\)-axis pulse
which produces
Thus \(J^*=\pi^2/(4T)=\pi^2/8\). The control bound is inactive because \(\pi/4<2\).
Variables and units¶
| Symbol | Meaning | Unit |
|---|---|---|
| \(t\) | Scaled time | time unit |
| \(r_x,r_y,r_z\) | Bloch-vector coordinates | dimensionless |
| \(\Omega_x,\Omega_y\) | Resonant Rabi rates | rad/time unit |
| \(J\) | Normalized Rabi-control fluence | rad²/time unit |
| \(F\) | Pure-state terminal fidelity | dimensionless |
Modeling choices¶
The Bloch equation preserves the sphere automatically:
The transcription therefore does not add a redundant unit-norm path constraint. Instead, the script reconstructs the trajectory densely and reports its norm drift. Terminal fidelity is evaluated as
A \(24\times4\) Lobatto mesh resolves the smooth great-circle trajectory. The exact constant-pulse solution is also used as the initial guess, making this example a validation benchmark rather than a difficult globalization test.
The model assumes exact resonance, the rotating-wave approximation, and coherent closed-system dynamics. It neglects detuning, calibration error, bandwidth, relaxation, and decoherence. The controls are effective Rabi angular frequencies, not laboratory electric-field amplitudes; consequently \(J\) is a normalized fluence and must not be interpreted or extrapolated as experimental pulse energy in joules.
Run the example¶
Save the figure without opening a window:
system, phase = build_problem()
guess = initial_guess(phase)
solution = solve_problem(system, guess)
plot_solution(solution)
Verified result¶
The numerical state and both controls are reconstructed at 4,001 times. The script checks the control bounds, Bloch norm, objective, control area, and terminal fidelity against the analytical solution.
| Quantity | Verified value |
|---|---|
| Numerical normalized fluence \(J\) | \(1.2337005501\) |
| Analytical fluence \(\pi^2/8\) | \(1.2337005501\) |
| \(y\)-axis Rabi-control area | \(1.5707963268\ \mathrm{rad}=\pi/2\) |
| Terminal fidelity | \(1.0000000000\) |
| Maximum Bloch-norm error | \(1.910\times10^{-8}\) |
The numerical control is the constant analytical control to reported precision, and the reconstructed state follows the expected quarter great circle.

Source code¶
See the complete runnable example:
examples/quantum_state_transfer.py.