The Exercise
A single spin in a static field along the axis precesses freely about that axis. In nuclear magnetic resonance this precession is undone with pulses that turn the spin by about the axis. The exercise asks what the free evolution becomes when it is sandwiched between two applications of the Pauli matrix , the spin flip about the axis, and between two such pulses. The library answers with two identities between complex matrices, one for each sandwich.
Precession and Pulses
The Pauli matrices are the complex matrices (1)
For real numbers and , the free precession is the complex matrix obtained as the matrix exponential of times , (2)✦ the evolution over the time under the Hamiltonian .
For a real vector in three dimensions, the matrix is the combination of the Pauli matrices with the components of as coefficients, (3)✦ The rotation operator about the axis by a real angle is the complex matrix (4)✦ written when the axis is a unit vector .
The rotation about the axis is the rotation (4) with axis , the matrix .✦ The refocusing pulse is the rotation by about the axis, (5)✦
The Claim
The free precession for the time is .
Theorem 1. Let and be real numbers. Conjugation by reverses the free precession, (6)✦ and conjugation by the refocusing pulse reverses it up to a global sign, (7)✦
What Is Checked
The claim is stated over two matrix exponentials of complex matrices: the free precession (2), built on the Pauli matrix of (1), and the refocusing pulse (5), which is the general rotation (4) at the axis and the angle , built on through the matrix of (3).
About these constructions the library proves the identities (6) and (7) for every real and , as exact equalities of matrices, the global sign of the second included.