# Product operator formalism

In NMR spectroscopy, the product operator formalism is a method used to determine the outcome of pulse sequences in a rigorous but straightforward way. With this method it is possible to predict how the bulk magnetization evolves with time under the action of pulses applied in different directions. It is a net improvement from the semi-classical vector model which is not able to predict many of the results in NMR spectroscopy and is a simplification of the complete density matrix formalism.
In this model, for a single spin, four base operators exist: $I_{x}$, $I_{y}$, $I_{z}$ and $E/2$ which represent respectively polarization (population difference between the two spin states), single quantum coherence (magnetization on the xy plane) and the unit operator. Many other, non-classical operators exist for coupled systems. Using this approach, the evolution of the magnetization under free precession is represented by $I_{z}$ and corresponds to a rotation about the z-axis with a phase angle proportional to the chemical shift of the spin in question:
$I_{x}{\xrightarrow {\omega \tau I_{z}}}\cos(\omega \tau )I_{x}-\sin(\omega \tau )I_{y}$
Pulses about the x and y axis can be represented by $I_{x}$ and $I_{y}$ respectively; these allow to interconvert the magnetization between planes and ultimately to observe it at the end of a sequence. Since every spin will evolve differently depending on its shift, with this formalism it is possible to calculate exactly where the magnetization will end up and hence devise pulse sequences to measure the desired signal while excluding others.
The product operator formalism is particularly useful in describing experiments in two-dimensions like COSY, HSQC and HMBC.

## Motivation for sets of spin-1/2 particles

Throughout this section, the reduced Planck constant $\hbar =1$ for convenience.
The product operator formalism is usually applied to sets of spin-1/2 particles, since the fact that the individual operators satisfy $L_{x}^{2}=L_{y}^{2}=L_{z}^{2}\propto \mathbf {1}$, where $\mathbf {1}$ is the identity operator, makes the commutation relations of product operators particularly simple. In principle the formalism could be extended to higher spins, but in practice the general irreducible spherical tensor treatment is more often used. As such, we consider only the spin-1/2 case below.
The main idea of the formalism is to make it easier to follow the system density operator $\rho$, which evolves under a Hamiltonian $H$ according to the Liouville-von Neumann equation as
    ${\frac {\partial \rho }{\partial t}}=-\mathrm {i} [H,\rho ].$
For a time-independent Hamiltonian, the density operator inherits its solutions from the Schrödinger time-evolution operator $U(t)=\exp(-\mathrm {i} Ht)$ as
    $\rho (t)=U(t)\,\rho (0)\,U^{-1}(t)=\exp(-\mathrm {i} Ht)\,\rho (0)\,\exp(+\mathrm {i} Ht)$

### Density operator-state duality

Suppose a single spin-1/2 $L$ is in the state $|\uparrow \,\rangle$, which is an eigenstate of the z-spin operator $L_{z}$, that is $L_{z}|\uparrow \,\rangle ={\frac {1}{2}}|\uparrow \,\rangle$. Similarly $L_{z}|\downarrow \,\rangle =-{\frac {1}{2}}|\downarrow \,\rangle$. Making use of the expansion of a Hermitian operator $A$ in terms of projections onto its eigenkets $|a\rangle$ with eigenvalues $a$ as $A=\sum a|a\rangle \langle a|$, the associated density operator is
    ${\begin{aligned}\rho _{|\uparrow \,\rangle }&=|\uparrow \,\rangle \langle \,\uparrow |\\&={\frac {1}{2}}(|\uparrow \,\rangle \langle \,\uparrow |+|\downarrow \,\rangle \langle \,\downarrow |)+{\frac {1}{2}}(|\uparrow \,\rangle \langle \,\uparrow |-|\downarrow \,\rangle \langle \,\downarrow |)\\&={\frac {1}{2}}\mathbf {1} +L_{z},\end{aligned}}$
where $\mathbf {1}$ is the identity operator. Similarly, the density operator for the state $|\downarrow \,\rangle$ is
    $\rho _{|\downarrow \,\rangle }={\frac {1}{2}}\mathbf {1} -L_{z}$
Since the spin operators $L_{x},L_{y},L_{z}$ are all traceless and the expectation value of an operator $A$ for a system with density operator $\rho$ is $\langle A\rangle =\operatorname {tr} (\rho A)$, the terms proportional to the unit operator $\mathbf {1}$ do not affect the expectations of the spin operators. Additionally those parts do not evolve in time, since they trivially commute with the Hamiltonian. Therefore those terms can be ignored, and the state $|\uparrow \,\rangle$ corresponds to a density operator $+L_{z}$, while the state $|\downarrow \,\rangle$ corresponds to a density operator $-L_{z}$. In exactly the same manner, polarisation along the positive x-axis, that is a state $|\uparrow _{x}\,\rangle$, corresponds to a density operator $+L_{x}$. This idea extends naturally to multiple spins, where the states and operators are direct products of single-spin states and operators. Hence operator terms in the density operator have a direct duality with states.
In the case of two spins $L,S$, the terms in the density operator (ignoring the identity on its own) can be interpreted as representing
* $L_{z},S_{z}$ - longitudinal magnetisation
* $L_{x},L_{y},S_{x},S_{y}$ - in-phase transverse magnetisation, which is the observable quantity in NMR.
* $2L_{x}S_{z},2L_{y}S_{z},2L_{z}S_{x},2L_{z}S_{y}$ - anti-phase longitudinal magnetisation
* $2L_{z}S_{z}$ - longitudinal two-spin order
* $2L_{x}S_{x},2L_{x}S_{y},2L_{y}S_{x},2L_{y}S_{y}$ - other coherences, which are more difficult to interpret, but may evolve into other terms
where eg $L_{z}$ is a shorthand for the Kronecker product $L_{z}\otimes \mathbf {1} _{S}$, where $\mathbf {1} _{S}$ is the identity operator on the $S$ spin, and similarly $L_{x}S_{z}$ is a shorthand for $L_{x}\otimes S_{z}$.
The factors of two in the 'true' two-spin operators are to allow for convenient commutation relations in this specific spin-1/2 case - see below. Note also that we could instead choose to expand the density operator in the basis $L_{z},L_{\pm }=L_{x}\pm \mathrm {i} \,L_{y}$ etc, where the transverse operators have been replaced with raising and lowering operators. With quadrature detection, the observable associated with an individual spin is effectively the non-Hermitian $L_{\pm }$, so this is sometimes more convenient.

### Evolution of the density operator

Consider operators $A,B,C$ that obey the cyclic commutation relations
    ${\begin{aligned}\left.[A,B]\right.&=\mathrm {i} C,\\\left.[B,C]\right.&=\mathrm {i} A,\\\left.[C,A]\right.&=\mathrm {i} B.\end{aligned}}$
In fact only the first two relations are necessary for the following derivation, but since we are usually working with operators associated with Cartesian directions, such as the individual angular momentum operators, the third commutator follows by a symmetry argument.
Introduce also the commutation superoperator ${\hat {F}}$ of an operator $F$ (in our case, this is more formally related to the adjoint representation of the Lie algebra whose elements are $A,B,C$), which acts as
    ${\hat {F}}\,\bullet =[F,\bullet ]$
In particular, for the cyclic operators, we have
    ${\begin{aligned}{\hat {B}}A&=[B,A]=-\mathrm {i} C,\\{\hat {B}}^{2}A&=[B,[B,A]]=[B,-\mathrm {i} C]=-\mathrm {i} [B,C]=A,\end{aligned}}$
and consequently for integer $n\geq 0$
    ${\begin{aligned}{\hat {B}}^{2n}A&=A,\\{\hat {B}}^{2n+1}A&=-\mathrm {i} C.\end{aligned}}$
An identity for two operators $F,G$ is
    $\exp(F)G\exp(-F)=\exp({\hat {F}})G,$
which can be derived by putting $F\to tF$ where $t$ is a scalar parameter, differentiating both sides with respect to $t$, and noting that both sides satisfy the same differential equation in that parameter, with the same initial condition at $t=0$. In particular, for some scalar parameter $\theta$, we have
| ${\begin{aligned}\exp(-\mathrm {i} \theta B)A\exp(+\mathrm {i} \theta B)&=\exp(-\mathrm {i} \theta {\hat {B}})A\\&=\sum _{n=0}^{\infty }{\frac {(-\mathrm {i} \theta )^{n}}{n!}}{\hat {B}}^{n}A\\&=\sum _{n=0}^{\infty }\left[{\frac {(-\mathrm {i} \theta )^{2n}}{(2n)!}}\,A+{\frac {(-\mathrm {i} \theta )^{2n+1}}{(2n+1)!}}\cdot -\mathrm {i} C\right]\\&=A\sum _{n=0}^{\infty }{\frac {(-1)^{n}}{(2n)!}}\theta ^{2n}-C\sum _{n=0}^{\infty }{\frac {(-1)^{n}}{(2n+1)!}}\theta ^{2n+1}\\&=\cos \theta \,A-\sin \theta \,C,\end{aligned}}$ | (1) |
where the final equality follows from recognising the Taylor series for sine and cosine. Now suppose that the density operator at time zero is $\rho (0)=A$, and it is allowed to freely evolve under the Hamiltonian $H=\alpha \,B$ where $\alpha$ is some scalar. Using the results above, the density operator at some later time $t$ will be given by
| $\rho (t)=\exp(-\mathrm {i} \alpha t\,B)A\exp(+\mathrm {i} \alpha t\,B)=\cos \alpha t\,A-\sin \alpha t\,C.$ | (2) |
The interpretation of this is that although nuclear spin angular momentum itself is not connected to rotations in three-dimensional space in the same way that angular momentum is, the evolution of the density operator can be viewed as rotations in an abstract space, in which the operators $A,B,C$ are the generators of rotations about the axes. An example of such a set of generators is just the spin operators $L_{x},L_{y},L_{z}$ themselves.
We now also introduce the 'arrow notation' typically used in NMR, which writes the general evolution given above as the shorthand
    $A\xrightarrow {\alpha \,Bt} \cos \alpha t\,A-\sin \alpha t\,C$.
With more specific reference to the radiofrequency pulses applied during NMR experiments, a hard pulse with tip angle $\theta$ around a direction $q$ is written as $(\theta )_{q}$ above the arrow and corresponds to taking $B=L_{q}$ as the rotation generator in Equation 1. When there is no ambiguity, the arrow label may be omitted, or be eg text instead.
Note that a more complicated calculation has now been reduced to a simpler procedure that requires no knowledge of the underlying quantum mechanics, especially since the subspaces of cyclic operators can be tabulated in advance.

## Examples
### The 180°-refocussing pulse

The Hamiltonian for a single spin $L$ evolving under a chemical shift of angular frequency $\omega$ is
    $H=\omega L_{z},$
which means that in an ensemble of many such spins with slightly different chemical shifts, there is a dephasing of the magnetisation in the $x$-$y$ plane. Consider the pulse sequence
    $\left({\frac {\pi }{2}}\right)_{x}$ — $\tau$ — $(\pi )_{x}$ — $\tau ,$
where $\tau$ is a time interval. Starting in an equilibrium state with all the polarisation along the $z$-axis, the evolution of an individual spin in the ensemble is
    ${\begin{aligned}L_{z}\xrightarrow {\left({\frac {\pi }{2}}\right)_{x}} -L_{y}\xrightarrow {\omega L_{z}t} -L_{y}\cos \omega t+L_{x}\sin \omega t\xrightarrow {(\pi )_{x}} L_{y}\cos \omega t+L_{x}\sin \omega t\xrightarrow {\omega L_{z}t} &(L_{y}\cos \omega t-L_{x}\sin \omega t)\cos \omega t+(L_{x}\cos \omega t+L_{y}\sin \omega t)\sin \omega t\\&=L_{y}(\cos ^{2}\omega t+\sin ^{2}\omega t)+L_{x}(-\sin \omega t\cos \omega t+\cos \omega t\sin \omega t)\\&=L_{y}.\end{aligned}}$
Hence this sequence refocuses the transverse magnetisation produced by the first pulse, independent of the value of the chemical shift.
As an indication of the utility of the formalism, suppose instead that we tried to reach the same result using states only and therefore the Schrödinger time evolution operators. This amounts to trying to simplify the unitary propagator $U$ taking the initial state $|\psi _{0}\rangle$to the final state $|\psi \rangle$ as $|\psi \rangle =U|\psi _{0}\rangle$, where explicitly
    $U=\exp(-\mathrm {i} \omega L_{z}t)\exp(-\mathrm {i} \pi L_{x})\exp(-\mathrm {i} \omega L_{z}t).$
Essentially we want to find the propagator in the form $U=\exp C$, that is as a single exponential of a combination of operators, because that gives the effective Hamiltonian acting during the sequence. Since the arguments of the exponentials in the original form of the propagator do not commute, this amounts to solving a specific example of the Baker–Campbell–Hausdorff (BCH) problem. In this relatively simple case we can solve the BCH problem using the fact that $Uf(A)U^{\dagger }=f(UAU^{\dagger })$ for unitary operator $U$, operator $A$ and function $f$, as well as the mathematical similarity of the spin operators with the physical rotation generators, which allow us to write
    $\exp(\mathrm {i} \pi L_{x})\exp(-\mathrm {i} \omega L_{z}t)\exp(-\mathrm {i} \pi L_{x})=\exp \left[-\mathrm {i} \omega t\exp(\mathrm {i} \pi L_{x})L_{z}\exp(-\mathrm {i} \pi L_{x})\right]=\exp(\mathrm {i} \omega L_{z}t)\implies \exp(-\mathrm {i} \omega L_{z}t)\exp(-\mathrm {i} \pi L_{x})=\exp(-\mathrm {i} \pi L_{x})\exp(\mathrm {i} \omega L_{z}t).$
Hence $U=\exp(-\mathrm {i} \pi L_{x})$ and only the effect of the 180° pulse remains, which agrees with the product operator treatment. For larger sequences of pulses this state treatment quickly becomes even more unwieldy, unless more advanced methods such as exact effective Hamiltonian theory (which gives closed-form expressions for the entangled propagators via the Cayley–Hamilton theorem and eigendecompositions) are used.

### The amplitude of a Hahn echo in an inhomogeneous magnetic field

As an extension of the refocussing pulse treated above, consider a set of two pulses with arbitrary flip angles $\alpha _{1}$ and $\alpha _{2}$, that is sequence
    $\left(\alpha _{1}\right)_{x}$ — $\tau$ — $\left(\alpha _{2}\right)_{x}$ — $\tau ,$
where again $\tau$ is a time interval. Liberally dropping irrelevant terms, the evolution for a single spin with offset $\omega$ up to just after the second pulse is
    $L_{z}\xrightarrow {\left(\alpha _{1}\right)_{x}} -L_{y}\sin \alpha _{1}+\cdots \xrightarrow {\omega L_{z}t} -L_{y}\sin \alpha _{1}\cos \omega t+L_{x}\sin \alpha _{1}\sin \omega t+\cdots \xrightarrow {\left(\alpha _{2}\right)_{x}} L_{x}\sin \alpha _{1}\sin \omega t-L_{y}\sin \alpha _{1}\cos \alpha _{2}\cos \omega t+\cdots .$
Now consider an ensemble of spins in a magnetic field that is sufficiently inhomogeneous to completely dephase the spins in the interval between the pulses. After the second pulse, we can decompose the remaining terms into a sum of two spin populations differing only in the sign of the $L_{y}$ term, in the sense that for an individual spin we have
    $L_{x}\sin \omega t-\cos \alpha _{2}\,L_{y}\cos \omega t=\cos ^{2}{\frac {\alpha _{2}}{2}}\,(L_{x}\sin \omega t-L_{y}\cos \omega t)+\sin ^{2}{\frac {\alpha _{2}}{2}}\,(L_{x}\sin \omega t+L_{y}\cos \omega t),$
where we used the identities $\cos ^{2}\theta +\sin ^{2}\theta =1$ and $\cos ^{2}\theta -\sin ^{2}\theta =\cos 2\theta$.
It is the spins in the new population that has been generated by the second pulse, namely the one with $+L_{y}$, that will lead to the formation of an echo after evolution for the next $\tau$ interval. Therefore, remembering to include the $\sin \alpha _{1}$ introduced by the first pulse, the amplitude of the resulting Hahn echo relative to that produced by an ideal 90°—180° refocussing pulse sequence is roughly
    $\sin \alpha _{1}\sin ^{2}{\frac {\alpha _{2}}{2}}.$
Note that this is not an exact result, because it considers only the refocussing of polarisation that was transverse immediately before the second pulse. In reality there will be further transverse components originating from the tipping of the longitudinal magnetisation that remained after the first pulse. However, for many tip angles, this is a good rule of thumb.
To instead arrive at this result using the state formalism, we would have had to non-trivially evaluate the rotation propagator as
    $U(\alpha )=\exp(-\mathrm {i} \alpha L_{x})=\cos {\frac {\alpha }{2}}\,\mathbf {1} -2\mathrm {i} \sin {\frac {\alpha }{2}}\,L_{x},$
and then evaluate a transition probability by considering the result of applying this to a state representing polarisation in the transverse plane.

### DEPT (Distortionless Enhancement by Polarisation Transfer)

DEPT (Distortionless Enhancement by Polarisation Transfer) is a pulse sequence used to distinguish between the multiplicity of hydrogen bonded to carbon, that is it can separate C, CH, CH$_2$ and CH$_3$ groups. It does this by exploiting the heteronuclear carbon-hydrogen $J$-coupling and varying the tip angle of the final pulse in the sequence. The basic pulse sequence is shown below.
Under the weak coupling assumption, the chemical shift terms commute with the $J$-coupling term in the Hamiltonian. Hence we can ignore the refocussed chemical shift (see § The 180°-refocussing pulse) in the two intervals containing $\pi$-pulses, namely $(1)\to (4)$ and $(3)\to (6)$, and additionally refrain from evaluating the chemical shift evolution in the last ${\frac {\tau }{2}}$ period $(5)\to (6)$. The pulse separation time ${\frac {\tau }{2}}$ is adjusted to the coupling strength $J$ (with associated Hamiltonian coefficient $\alpha =\pi J$) such that it satisfies
    ${\frac {\tau }{2}}\cdot \pi J={\frac {\pi }{2}}\implies \tau ={\frac {1}{J}}$,
because then the first term in the evolved density operator in Equation 2 vanishes under the pure coupling evolution between the pulses.

#### CH

Label the hydrogen spin as $L$, and the carbon spin by $S$. For illustrative purposes, we assume that the equilibrium state only has polarisation on the $L$-spin (in reality, there will also be polarisation on the $S$ spin, with the relative populations determined by the thermal Boltzmann factors). The $J$-coupling Hamiltonian is
    $H=\pi J\,2L_{z}S_{z}$
which gives the following evolution
    ${\begin{aligned}(0)&:\ L_{z}\\(0)\to (1)&:\ L_{z}\xrightarrow {\left({\frac {\pi }{2}}\right)_{xL}} -L_{y}\\(1)\to (2)&:\ {-L_{y}}\xrightarrow {J-{\text{coup.}}} 2L_{x}S_{z}\\(2)\to (3)&:\ 2L_{x}S_{z}\xrightarrow {\left({\frac {\pi }{2}}\right)_{xS}} -2L_{x}S_{y}\xrightarrow {\left(\pi \right)_{xL}} -2L_{x}S_{y}\\(3)\to (4)&:\ {-2L_{x}S_{y}}\xrightarrow {J-{\text{coup.}}} {-2L_{x}S_{y}}\\(4)\to (5)&:\ {-2L_{x}S_{y}}\xrightarrow {\left(\pi \right)_{xS}} 2L_{x}S_{y}\xrightarrow {(\theta )_{yL}} 2L_{x}S_{y}\cos \theta -2L_{z}S_{y}\sin \theta \\(5)\to (6)&:\ {2L_{x}S_{y}\cos \theta -2L_{z}S_{y}\sin \theta }\xrightarrow {J-{\text{coup.}}} 2L_{x}S_{y}\cos \theta +S_{x}\sin \theta \end{aligned}}$
The non-trivial commutators used to identify the cyclic subspace for $(1)\to (2)$ are
    ${\begin{aligned}\left.[L_{y},2L_{z}S_{z}]\right.&=2(L_{y}\otimes \mathbf {1} _{L})(L_{z}\otimes S_{z})-2(L_{z}\otimes S_{z})(L_{y}\otimes \mathbf {1} _{L})\\&=2L_{y}L_{z}\otimes S_{z}-2L_{z}L_{y}\otimes S_{z}\\&=2[L_{y},L_{z}]\otimes S_{z}\\&=\mathrm {i} 2L_{x}S_{z},\end{aligned}}$
and consequently the next cyclic rotation
    ${\begin{aligned}\left.[2L_{z}S_{z},2L_{x}S_{z}]\right.&=4[L_{z},L_{x}]\otimes S_{z}^{2}\\&=4\mathrm {i} \,L_{y}\otimes {\frac {1}{4}}\mathbf {1} _{S}\\&=\mathrm {i} L_{y},\end{aligned}}$
where we used the 'mixed-product identity' $(A\otimes B)(C\otimes D)=AC\otimes BD$, which relates the matrix and Kronecker products for compatible dimensions of $A,B,C,D$, and also the fact that since the two eigenvalues of any of the spin-1/2 operators $S_{x},S_{y},S_{z}$ are $s=\pm {\frac {1}{2}}$, any of their squares are given by $s^{2}\mathbf {1} _{S}$ by the Cayley–Hamilton theorem.
Note also that the $2L_{x}L_{y}$ term is invariant under the $J$-coupling evolution. That is that the term commutes with the Hamiltonian, and in this case, that can be manually confirmed by evaluating the commutator $[2L_{x}L_{y},2L_{z}S_{z}]=0$ using the matrix representations of the spin operators.

#### CH$_2$

Now label the two hydrogen spins as $L,L'$ and the carbon spin by $S$. The $J$-coupling Hamiltonian is now
    $H=\pi J(2L_{z}S_{z}+2L_{z}'S_{z})$
which gives the following evolution
${\begin{aligned}(0)&:\ L_{z}+L_{z}'\\(0)\to (1)&:\ L_{z}+L_{z}'\xrightarrow {\left({\frac {\pi }{2}}\right)_{xL}} -L_{y}+L_{z}'\xrightarrow {\left({\frac {\pi }{2}}\right)_{xL'}} -L_{y}-L_{y}'\\(1)\to (2)&:\ {-L_{y}-L_{y}'}\xrightarrow {J-{\text{coup.}}} 2L_{x}S_{z}+2L_{x}'S_{z}\\(2)\to (3)&:\ 2L_{x}S_{z}+2L_{x}'S_{z}\xrightarrow {\left({\frac {\pi }{2}}\right)_{xS}} -2L_{x}S_{y}-2L_{x}'S_{y}\xrightarrow {\left(\pi \right)_{xL}} -2L_{x}S_{y}-2L_{x}'S_{y}\xrightarrow {\left(\pi \right)_{xL'}} -2L_{x}S_{y}-2L_{x}'S_{y}\\(3)\to (4)&:\ -2L_{x}S_{y}-2L_{x}'S_{y}\xrightarrow {J-{\text{coup.}}} 4L_{x}L_{z}'S_{x}+4L_{z}L_{x}'S_{x}\\(4)\to (5)&:\ 4L_{x}L_{z}'S_{x}+4L_{z}L_{x}'S_{x}\xrightarrow {\left(\pi \right)_{xS}} 4L_{x}L_{z}'S_{x}+4L_{z}L_{x}'S_{x}\xrightarrow {(\theta )_{yL}} 4L_{z}L_{x}'S_{x}\cos \theta -4L_{z}L_{z}'S_{x}\sin \theta +{\text{others}}\xrightarrow {(\theta )_{yL'}} -8L_{z}L_{z}'S_{x}\cos \theta \sin \theta +{\text{others}}\\(5)\to (6)&:\ -8L_{z}L_{z}'S_{x}\cos \theta \sin \theta +{\text{others}}\xrightarrow {J_{LS}-{\text{coup.}}} -4L_{z}'S_{y}\cos \theta \sin \theta +{\text{others}}\xrightarrow {J_{L'S}-{\text{coup.}}} 2S_{x}\cos \theta \sin \theta +{\text{others}}\end{aligned}}$
where 'others' denotes various terms that can safely be ignored because they will not evolve into observable transverse polarisation on the target spin $S$. The required cyclic commutators for dealing with the $J$-coupling evolution are the following three sets (and their $L\leftrightarrow L'$ versions if needed)
    ${\begin{aligned}\left.[L_{x}S_{y},2L_{z}'S_{z}]\right.&=2L_{x}\otimes L_{z}'\otimes [S_{y},S_{z}]\\&=\mathrm {i} \,2L_{x}L_{z}'S_{x}\end{aligned}}$
    ${\begin{aligned}\left.[2L_{z}'S_{z},2L_{x}L_{z}'S_{x}]\right.&=4L_{x}\otimes {L_{z}'}^{2}\otimes [S_{z},S_{x}]\\&=4L_{x}\otimes {\frac {1}{4}}\mathbf {1} _{L'}\otimes \mathrm {i} S_{y}\\&=\mathrm {i} L_{x}S_{y},\end{aligned}}$
    ${\begin{aligned}\left.[2L_{z}L_{z}'S_{x},2L_{z}S_{z}]\right.&=4L_{z}^{2}\otimes L_{z}'\otimes [S_{x},S_{z}]\\&=4\cdot {\frac {1}{4}}\mathbf {1} _{L}\otimes L_{z}'\otimes -\mathrm {i} S_{y}\\&=\mathrm {i} \cdot -L_{z}'S_{y}\end{aligned}}$
    ${\begin{aligned}\left.[2L_{z}L_{z},-L_{z}'S_{y}]\right.&=-L_{z}\otimes L_{z}'\otimes [S_{z},S_{y}]\\&=\mathrm {i} \,2L_{z}L_{z}'S_{x},\end{aligned}}$
    ${\begin{aligned}\left.[2L_{z}'S_{y},2L_{z}'S_{z}]\right.&=4\mathbf {1} _{L}\otimes L_{z}'^{2}\otimes [S_{y},S_{z}]\\&=4\mathbf {1} _{L}\otimes {\frac {1}{4}}\mathbf {1} _{L'}\otimes \mathrm {i} S_{x}\\&=\mathrm {i} S_{x}\end{aligned}}$
    ${\begin{aligned}\left.[2L_{z}'S_{z},S_{x}]\right.&=2\mathbf {1} _{L}\otimes L_{z}'\otimes [S_{z},S_{x}]\\&=\mathrm {i} \,2L_{z}'\otimes S_{y}.\end{aligned}}$

#### CH$_3$

A similar (but more lengthy) treatment gives the final observable term as $3S_{x}\cos ^{2}\theta \sin \theta$.

### APT (Attached Proton Test)

Refer to § DEPT (Distortionless Enhancement by Polarisation Transfer) for the notation used in this example.
APT is similar to DEPT in that it detects carbon multiplicity. However, it has additional degeneracies: it gives identical positive signals for C and CH$_2$, and identical negative signals for CH and CH$_3$. One variation on the basic pulse sequence is shown below.
The key observation is that since we can again ignore the refocussed chemical shift, the only relevant dynamics occur in the interval with no hydrogen decoupling, where we can consider solely the $J$-coupling. By using an interval twice as long as in the DEPT case, we ensure that a density operator of $L_{y}$ at the start of the interval just has its sign inverted following the coupling (since this corresponds to $\alpha t=\pi$ in the general treatment, and $\cos \pi =-1,\,\sin \pi =0$). The Hamiltonians for the couplings to each of the $n$ separate neighbouring hydrogen atoms commute, so the overall effect is to multiply by a factor $(-1)^{n}$. This motivates the alternating sign of the signal mentioned above.