# Two-state quantum system

In quantum mechanics, a two-state system (also known as a two-level system) is a quantum system that can exist in any quantum superposition of two independent (physically distinguishable) quantum states. The Hilbert space describing such a system is two-dimensional. Therefore, a complete basis spanning the space will consist of two independent states. Any two-state system can also be seen as a qubit.
Two-state systems are the simplest quantum systems that are of interest, since the dynamics of a one-state system is trivial (as there are no other states in which the system can exist). The mathematical framework required for the analysis of two-state systems is that of linear differential equations and linear algebra of two-dimensional spaces. As a result, the dynamics of a two-state system can be solved analytically without any approximation. The generic behavior of the system is that the wavefunction's amplitude oscillates between the two states.
A well known example of a two-state system is the spin of a spin-1/2 particle such as an electron, whose spin can have values +ħ/2 or −ħ/2, where ħ is the reduced Planck constant.
The two-state system cannot be used as a description of absorption or decay, because such processes require coupling to a continuum. Such processes would involve exponential decay of the amplitudes, but the solutions of the two-state system are oscillatory.

## Analytical solutions for stationary state energies and time-dependence
### Representation

Supposing the two available basis states of the system are $|1\rangle$ and $|2\rangle$, in general the state can be written as a superposition of these two states with probability amplitudes $c_{1},c_{2}$,$|\psi \rangle =c_{1}|1\rangle +c_{2}|2\rangle .$
Since the basis states are orthonormal, $\langle i|j\rangle =\delta _{ij}$ where $i,j\in {1,2}$ and $\delta _{ij}$ is the Kronecker delta, so $c_{i}=\langle i|\psi \rangle$. These two complex numbers may be considered coordinates in a two-dimensional complex Hilbert space. Thus the state vector corresponding to the state $|\psi \rangle$ is$|\psi \rangle \equiv {\begin{pmatrix}\langle 1|\psi \rangle \\\langle 2|\psi \rangle \end{pmatrix}}={\begin{pmatrix}c_{1}\\c_{2}\end{pmatrix}}=c_{1}{\begin{pmatrix}1\\0\end{pmatrix}}+c_{2}{\begin{pmatrix}0\\1\end{pmatrix}}=\mathbf {c} ,$ and the basis states correspond to the basis vectors, $|1\rangle \equiv {\begin{pmatrix}\langle 1|1\rangle \\\langle 2|1\rangle \end{pmatrix}}={\begin{pmatrix}1\\0\end{pmatrix}}$ and $|2\rangle \equiv {\begin{pmatrix}\langle 1|2\rangle \\\langle 2|2\rangle \end{pmatrix}}={\begin{pmatrix}0\\1\end{pmatrix}}.$
If the state $|\psi \rangle$ is normalized, the norm of the state vector is unity, i.e. ${|c_{1}|}^{2}+{|c_{2}|}^{2}=1$.
All observable physical quantities, such as energy, are associated with hermitian operators. In the case of energy and the corresponding Hamiltonian, H, this means$H_{ij}=\langle i|H|j\rangle =\langle j|H|i\rangle ^{*}=H_{ji}^{*},$ i.e. $H_{11}$ and $H_{22}$ are real, and $H_{12}=H_{21}^{*}$. Thus, these four matrix elements $H_{ij}$ produce a 2×2 hermitian matrix, $\mathbf {H} ={\begin{pmatrix}\langle 1|H|1\rangle &\langle 1|H|2\rangle \\\langle 2|H|1\rangle &\langle 2|H|2\rangle \end{pmatrix}}={\begin{pmatrix}H_{11}&H_{12}\\H_{12}^{*}&H_{22}\end{pmatrix}}.$
The time-independent Schrödinger equation states that $H|\psi \rangle =E|\psi \rangle$; substituting for $|\psi \rangle$ in terms of the basis states from above, and multiplying both sides by $\langle 1|$ or $\langle 2|$ produces a system of two linear equations that can be written in matrix form,${\begin{pmatrix}H_{11}&H_{12}\\H_{12}^{*}&H_{22}\end{pmatrix}}{\begin{pmatrix}c_{1}\\c_{2}\end{pmatrix}}=E{\begin{pmatrix}c_{1}\\c_{2}\end{pmatrix}},$ or $\mathbf {Hc} =E\mathbf {c}$ which is a 2×2 matrix eigenvalues and eigenvectors problem. As mentioned above, this equation comes from plugging a general state into the time-independent Schrödinger equation. Remember that the time-independent Schrödinger equation is a restrictive condition used to specify the eigenstates. Therefore, when plugging a general state into it, we are seeing what form the general state must take to be an eigenstate. Doing so, and distributing, we get $c_{1}H|1\rangle +c_{2}H|2\rangle =c_{1}E|1\rangle +c_{2}E|2\rangle$, which requires $c_{1}$ or $c_{2}$ to be zero ($E$ cannot be equal to both $\varepsilon _{1}$ and $\varepsilon _{2}$, the energies of the individual states, which are by definition different). Upon setting $c_{1}$ or $c_{2}$ to be 0, only one state remains, and $E$ is the energy of the surviving state. This result is a redundant reminder that the time-independent Schrödinger equation is only satisfied by eigenstates of H, which are (by definition of the state vector) the states where all except one coefficient are zero. Now, if we follow the same derivation, but before acting with the Hamiltonian on the individual states, we multiply both sides by $\langle 1|$ or $\langle 2|$, we get a system of two linear equations that can be combined into the above matrix equation. Like before, this can only be satisfied if $c_{1}$ or $c_{2}$ is zero, and when this happens, the constant $E$ will be the energy of the remaining state. The above matrix equation should thus be interpreted as a restrictive condition on a general state vector to yield an eigenvector of $H$, exactly analogous to the time-independent Schrödinger equation.
Of course, in general, commuting the matrix with a state vector will not result in the same vector multiplied by a constant E. For general validity, one has to write the equation in the form${\begin{pmatrix}H_{11}&H_{12}\\H_{12}^{*}&H_{22}\end{pmatrix}}{\begin{pmatrix}c_{1}\\c_{2}\end{pmatrix}}={\begin{pmatrix}\varepsilon _{1}c_{1}\\\varepsilon _{2}c_{2}\end{pmatrix}},$ with the individual eigenstate energies still inside the product vector. In either case, the Hamiltonian matrix can be derived using the method specified above, or via the more traditional method of constructing a matrix using boundary conditions; specifically, by using the requirement that when it acts on either basis state, it must return that state multiplied by the energy of that state. (There are no boundary conditions on how it acts on a general state.) This results in a diagonal matrix with the diagonal elements being the energies of the eigenstates and the off-diagonal elements being zero. The form of the matrix above that uses bra-ket-enclosed Hamiltonians is a more generalized version of this matrix.
One might ask why it is necessary to write the Hamiltonian matrix in such a general form with bra-ket-enclosed Hamiltonians, since $H_{ij},i\neq j$ should always equal zero and $H_{ii}$ should always equal $\varepsilon _{i}$. The reason is that, in some more complex problems, the state vectors may not be eigenstates of the Hamiltonian used in the matrix. One place where this occurs is in degenerate perturbation theory, where the off-diagonal elements are nonzero until the problem is solved by diagonalization.
Because of the hermiticity of $\mathbf {H}$ the eigenvalues are real; or, rather, conversely, it is the requirement that the energies are real that implies the hermiticity of $\mathbf {H}$. The eigenvectors represent the stationary states, i.e., those for whom the absolute magnitude of the squares of the probability amplitudes do not change with time.

### Eigenvalues of the Hamiltonian

The most general form of a 2×2 Hermitian matrix such as the Hamiltonian of a two-state system is given by$\mathbf {H} ={\begin{pmatrix}\varepsilon _{1}&\beta -i\gamma \\\beta +i\gamma &\varepsilon _{2}\end{pmatrix}},$ where $\varepsilon _{1},\varepsilon _{2},\beta$ and γ are real numbers with units of energy. The allowed energy levels of the system, namely the eigenvalues of the Hamiltonian matrix, can be found in the usual way.
Equivalently, this matrix can be decomposed as,$\mathbf {H} =\alpha \cdot \sigma _{0}+\beta \cdot \sigma _{1}+\gamma \cdot \sigma _{2}+\delta \cdot \sigma _{3}={\begin{pmatrix}\alpha +\delta &\beta -i\gamma \\\beta +i\gamma &\alpha -\delta \end{pmatrix}}.$ Here, α=1/2 (ε$_1$+ε$_2$){\textstyle \alpha ={\frac {1}{2}}\left(\varepsilon _{1}+\varepsilon _{2}\right)} and δ=1/2 (ε$_1$−ε$_2$){\textstyle \delta ={\frac {1}{2}}\left(\varepsilon _{1}-\varepsilon _{2}\right)} are real numbers. The matrix $\sigma _{0}$ is the 2×2 identity matrix and the matrices $\sigma _{k}$ with $k=1,2,3$ are the Pauli matrices. This decomposition simplifies the analysis of the system, especially in the time-independent case, where the values of $\alpha ,\beta ,\gamma$ and $\delta$ are constants.
The Hamiltonian can be further condensed as$\mathbf {H} =\alpha \cdot \sigma _{0}+\mathbf {r} \cdot {\boldsymbol {\sigma }}.$
The vector $\mathbf {r}$ is given by $(\beta ,\gamma ,\delta )$ and $\sigma$ is given by $(\sigma _{1},\sigma _{2},\sigma _{3})$. This representation simplifies the analysis of the time evolution of the system and is easier to use with other specialized representations such as the Bloch sphere.
If the two-state system's time-independent Hamiltonian H is defined as above, then its eigenvalues are given by $E_{\pm }=\alpha \pm |\mathbf {r} |$. Evidently, α is the average energy of the two levels, and the norm of $\mathbf {r}$ is the splitting between them. The corresponding eigenvectors are denoted as $|+\rangle$ and $|-\rangle$.

### Time dependence

We now assume that the probability amplitudes are time-dependent, though the basis states are not. The Time-dependent Schrödinger equation states iℏ∂$_t$|ψ⟩=H|ψ⟩{\textstyle i\hbar \partial _{t}|\psi \rangle =H|\psi \rangle }, and proceeding as before (substituting for $|\psi \rangle$ and premultiplying by $\langle 1|,\langle 2|$ again produces a pair of coupled linear equations, but this time they are first order partial differential equations: iℏ∂$_t$c=Hc{\textstyle i\hbar \partial _{t}\mathbf {c} =\mathbf {Hc} }. If $\mathbf {H}$ is time independent there are several approaches to find the time dependence of $c_{1},c_{2}$, such as normal modes. The result is that$\mathbf {c} (t)=e^{-i\mathbf {H} t/\hbar }\mathbf {c} _{0}=\mathbf {U} (t)\mathbf {c} _{0}.$ where $\mathbf {c} _{0}=\mathbf {c} (0)$ is the statevector at $t=0$. Here the exponential of a matrix may be found from the series expansion. The matrix $\mathbf {U} (t)$ is called the time evolution matrix (which comprises the matrix elements of the corresponding time evolution operator $U(t)$). It is easily proved that $\mathbf {U} (t)$ is unitary, meaning that $\mathbf {U} ^{\dagger }\mathbf {U} =1$.
It can be shown that$\mathbf {U} (t)=e^{-i\mathbf {H} t/\hbar }=e^{-i\alpha t/\hbar }\left(\cos \left({\frac {|\mathbf {r} |}{\hbar }}t\right)\sigma _{0}-i\sin \left({\frac {|\mathbf {r} |}{\hbar }}t\right){\hat {r}}\cdot {\boldsymbol {\sigma }}\right),$ where r$^^$=r/|r|.{\textstyle {\hat {r}}={\frac {\mathbf {r} }{|\mathbf {r} |}}.}
When one changes the basis to the eigenvectors of the Hamiltonian, in other words, if the basis states $|1\rangle ,|2\rangle$ are chosen to be the eigenvectors, then $\epsilon _{1}=H_{11}=\langle 1|H|1\rangle =E_{1}\langle 1|1\rangle =E_{1}$ and $\beta +i\gamma =H_{21}=\langle 2|H|1\rangle =E_{1}\langle 2|1\rangle =0$ and so the Hamiltonian is diagonal, i.e. $|\mathbf {r} |=\delta$ and is of the form,$\mathbf {H} ={\begin{pmatrix}E_{1}&0\\0&E_{2}\end{pmatrix}}.$
Now, the unitary time evolution operator $U$ is easily seen to be given by:$\mathbf {U} (t)=e^{-i\mathbf {H} t/\hbar }={\begin{pmatrix}e^{-iE_{1}t/\hbar }&0\\0&e^{-iE_{2}vt/\hbar }\end{pmatrix}}=e^{-i\alpha t/\hbar }{\begin{pmatrix}e^{-i\delta t/\hbar }&0\\0&e^{i\delta t/\hbar }\end{pmatrix}}=e^{-i\alpha t/\hbar }\left(\cos \left({\frac {\delta }{\hbar }}t\right)\sigma _{0}-i\sin \left({\frac {\delta }{\hbar }}t\right){\boldsymbol {\sigma }}_{3}\right).$The $e^{-i\alpha t/\hbar }$ factor merely contributes to the overall phase of the operator, and can usually be ignored to yield a new time evolution operator that is physically indistinguishable from the original operator. Moreover, any perturbation to the system (which will be of the same form as the Hamiltonian) can be added to the system in the eigenbasis of the unperturbed Hamiltonian and analysed in the same way as above. Therefore, for any perturbation the new eigenvectors of the perturbed system can be solved for exactly, as mentioned in the introduction.

### Rabi formula for a static perturbation

Suppose that the system starts in one of the basis states at $t=0$, say $|1\rangle$ so that c$_0$=(10){\textstyle \mathbf {c} _{0}={\begin{pmatrix}1\\0\end{pmatrix}}}, and we are interested in the probability of occupation of each of the basis states as a function of time when $\mathbf {H}$ is the time-independent Hamiltonian.$\mathbf {c} (t)=\mathbf {U} (t)\mathbf {c} _{0}={\begin{pmatrix}U_{11}(t)&U_{12}(t)\\U_{21}(t)&U_{22}(t)\end{pmatrix}}{\begin{pmatrix}1\\0\end{pmatrix}}={\begin{pmatrix}U_{11}(t)\\U_{21}(t)\end{pmatrix}}.$
The probability of occupation of state i is $P_{i}(t)=|c_{i}(t)|^{2}=|U_{i1}(t)|^{2}$. In the case of the starting state, $P_{1}(t)=|c_{1}(t)|^{2}=|U_{11}(t)|^{2}$, and from above, $U_{11}(t)=e^{\frac {-i\alpha t}{\hbar }}\left(\cos \left({\frac {|\mathbf {r} |}{\hbar }}t\right)-i\sin \left({\frac {|\mathbf {r} |}{\hbar }}t\right){\frac {\delta }{|\mathbf {r} |}}\right).$ Hence,$P_{1}(t)=\cos ^{2}(\Omega t)+\sin ^{2}(\Omega t){\frac {\Delta ^{2}}{\Omega ^{2}}}.$
Obviously, $P_{1}(0)=1$ due to the initial condition. The frequency $\Omega ={\frac {|\mathbf {r} |}{\hbar }}={\frac {1}{\hbar }}{\sqrt {\beta ^{2}+\gamma ^{2}+\delta ^{2}}}={\sqrt {|\Omega _{R}|^{2}+\Delta ^{2}}}$ is called the generalised Rabi frequency, $\Omega _{R}=(\beta +i\gamma )/\hbar$ is called the Rabi frequency, and $\Delta =\delta /\hbar$ is called the detuning.
At zero detuning, $P_{1}(t)=\cos ^{2}(|\Omega _{R}|t)$, i.e., there is Rabi flopping from guaranteed occupation of state 1, to guaranteed occupation of state 2, and back to state 1, etc., with frequency $|\Omega _{R}|$. As the detuning is increased away from zero, the frequency of the flopping increases (to Ω) and the amplitude of exciting the electron decreases to $\Omega ^{2}/\Delta ^{2}$.
For time dependent Hamiltonians induced by light waves, see the articles on Rabi cycle and rotating wave approximation.

## Some important two-state systems
### Precession in a field

Consider the case of a spin-1/2 particle in a magnetic field $\mathbf {B} =B\mathbf {\hat {n}}$. The interaction Hamiltonian for this system is$H=-{\boldsymbol {\mu }}\cdot \mathbf {B} =-\mu {\boldsymbol {\sigma }}\cdot \mathbf {B} ,$ where $\mu$ is the magnitude of the particle's magnetic moment and ${\boldsymbol {\sigma }}$ is the vector of Pauli matrices. Solving the time dependent Schrödinger equation $H\psi =i\hbar \partial _{t}\psi$ yields$\psi (t)=e^{i\omega t{\boldsymbol {\sigma }}\cdot \mathbf {\hat {n}} }\psi (0),$ where $\omega =\mu B/\hbar$ and $e^{i\omega t{\boldsymbol {\sigma }}\cdot \mathbf {\hat {n}} }=\cos {\left(\omega t\right)}I+i\;\mathbf {\hat {n}} \cdot {\boldsymbol {\sigma }}\sin {\left(\omega t\right)}$. Physically, this corresponds to the Bloch vector precessing around $\mathbf {\hat {n}}$ with angular frequency $2\omega$. Without loss of generality, assume the field is uniform and points in $\mathbf {\hat {z}}$, so that the time evolution operator is given as$e^{i\omega t{\boldsymbol {\sigma }}\cdot \mathbf {\hat {n}} }={\begin{pmatrix}e^{i\omega t}&0\\0&e^{-i\omega t}\end{pmatrix}}.$
It can be seen that such a time evolution operator acting on a general spin state of a spin-1/2 particle will lead to the precession about the axis defined by the applied magnetic field (this is the quantum mechanical equivalent of Larmor precession)
The above method can be applied to the analysis of any generic two-state system that is interacting with some field (equivalent to the magnetic field in the previous case) if the interaction is given by an appropriate coupling term that is analogous to the magnetic moment. The precession of the state vector (which need not be a physical spinning as in the previous case) can be viewed as the precession of the state vector on the Bloch sphere.
The representation on the Bloch sphere for a state vector $\psi (0)$ will simply be the vector of expectation values $\mathbf {R} =\left(\langle \sigma _{x}\rangle ,\langle \sigma _{y}\rangle ,\langle \sigma _{z}\rangle \right)$. As an example, consider a state vector $\psi (0)$ that is a normalized superposition of $\left|\uparrow \right\rangle$ and $\left|\downarrow \right\rangle$, that is, a vector that can be represented in the $\sigma _{z}$ basis as$\psi (0)={\frac {1}{\sqrt {2}}}{\begin{pmatrix}1\\1\end{pmatrix}}$
The components of $\psi (t)$ on the Bloch sphere will simply be $\mathbf {R} =\left(\cos {2\omega t},-\sin {2\omega t},0\right)$. This is a unit vector that begins pointing along $\mathbf {\hat {x}}$ and precesses around $\mathbf {\hat {z}}$ in a left-handed manner. In general, by a rotation around $\mathbf {\hat {z}}$, any state vector $\psi (0)$ can be represented as $a\left|\uparrow \right\rangle +b\left|\downarrow \right\rangle$ with real coefficients $a$ and $b$. Such a state vector corresponds to a Bloch vector in the xz-plane making an angle $\tan(\theta /2)=b/a$ with the z-axis. This vector will proceed to precess around $\mathbf {\hat {z}}$. In theory, by allowing the system to interact with the field of a particular direction and strength for precise durations, it is possible to obtain any orientation of the Bloch vector, which is equivalent to obtaining any complex superposition. This is the basis for numerous technologies including quantum computing and MRI.

### Evolution in a time-dependent field: Nuclear magnetic resonance

Nuclear magnetic resonance (NMR) is an important example in the dynamics of two-state systems because it involves the exact solution to a time dependent Hamiltonian. The NMR phenomenon is achieved by placing a nucleus in a strong, static field B$_0$ (the "holding field") and then applying a weak, transverse field B$_1$ that oscillates at some radiofrequency ω$_r$. Explicitly, consider a spin-1/2 particle in a holding field $B_{0}\mathbf {\hat {z}}$ and a transverse rf field B$_1$ rotating in the xy-plane in a right-handed fashion around B$_0$:$\mathbf {B} ={\begin{pmatrix}B_{1}\cos \omega _{\mathrm {r} }t\\B_{1}\sin \omega _{\mathrm {r} }t\\B_{0}\end{pmatrix}}.$
As in the free precession case, the Hamiltonian is $H=-\mu {\boldsymbol {\sigma }}\cdot \mathbf {B}$, and the evolution of a state vector $\psi (t)$ is found by solving the time-dependent Schrödinger equation $H\psi =i\hbar \,\partial \psi /\partial t$. After some manipulation (given in the collapsed section below), it can be shown that the Schrödinger equation becomes${\frac {\partial \psi }{\partial t}}=i\left(\omega _{1}\sigma _{x}+\left(w_{0}+{\frac {\omega _{r}}{2}}\right)\sigma _{z}\right)\psi ,$ where $\omega _{0}=\mu B_{0}/\hbar$ and $\omega _{1}=\mu B_{1}/\hbar$.
As per the previous section, the solution to this equation has the Bloch vector precessing around $(\omega _{1},0,\omega _{0}+\omega _{r}/2)$ with a frequency that is twice the magnitude of the vector. If $\omega _{0}$ is sufficiently strong, some proportion of the spins will be pointing directly down prior to the introduction of the rotating field. If the angular frequency of the rotating magnetic field is chosen such that $\omega _{r}=-2\omega _{0}$, in the rotating frame the state vector will precess around ${\hat {x}}$ with frequency $2\omega _{1}$, and will thus flip from down to up releasing energy in the form of detectable photons. This is the fundamental basis for NMR, and in practice is accomplished by scanning $\omega _{r}$ until the resonant frequency is found at which point the sample will emit light. Similar calculations are done in atomic physics, and in the case that the field is not rotating, but oscillating with a complex amplitude, use is made of the rotating wave approximation in deriving such results.
Here the Schrödinger equation reads $-\mu {\boldsymbol {\sigma }}\cdot \mathbf {B} \psi =i\hbar {\frac {\partial \psi }{\partial t}}.$
Expanding the dot product and dividing by $i\hbar$ yields ${\frac {\partial \psi }{\partial t}}=i\left(\omega _{1}\sigma _{x}\cos {\omega _{r}t}+\omega _{1}\sigma _{y}\sin {\omega _{r}t}+\omega _{0}\sigma _{z}\right)\psi .$
To remove the time dependence from the problem, the wave function is transformed according to $\psi \rightarrow e^{-i\sigma _{z}\omega _{r}t/2}\psi$. The time dependent Schrödinger equation becomes $-i\sigma _{z}{\frac {\omega _{r}}{2}}e^{-i\sigma _{z}\omega _{r}t/2}\psi +e^{-i\sigma _{z}\omega _{r}t/2}{\frac {\partial \psi }{\partial t}}=i\left(\omega _{1}\sigma _{x}\cos {\omega _{r}t}+\omega _{1}\sigma _{y}\sin {\omega _{r}t}+\omega _{0}\sigma _{z}\right)e^{-i\sigma _{z}\omega _{r}t/2}\psi ,$ which after some rearrangement yields ${\frac {\partial \psi }{\partial t}}=ie^{i\sigma _{z}\omega _{r}t/2}\left(\omega _{1}\sigma _{x}\cos {\omega _{r}t}+\omega _{1}\sigma _{y}\sin {\omega _{r}t}+\left(\omega _{0}+{\frac {\omega _{r}}{2}}\right)\sigma _{z}\right)e^{-i\sigma _{z}\omega _{r}t/2}\psi$
Evaluating each term on the right hand side of the equation $e^{i\sigma _{z}\omega _{r}t/2}\sigma _{x}e^{-i\sigma _{z}\omega _{r}t/2}={\begin{pmatrix}e^{i\omega _{r}t/2}&0\\0&e^{-i\omega _{r}t/2}\end{pmatrix}}{\begin{pmatrix}0&1\\1&0\end{pmatrix}}{\begin{pmatrix}e^{-i\omega _{r}t/2}&0\\0&e^{i\omega _{r}t/2}\end{pmatrix}}={\begin{pmatrix}0&e^{i\omega _{r}t}\\e^{-i\omega _{r}t}&0\end{pmatrix}}$ $e^{i\sigma _{z}\omega _{r}t/2}\sigma _{y}e^{-i\sigma _{z}\omega _{r}t/2}={\begin{pmatrix}e^{i\omega _{r}t/2}&0\\0&e^{-i\omega _{r}t/2}\end{pmatrix}}{\begin{pmatrix}0&-i\\i&0\end{pmatrix}}{\begin{pmatrix}e^{-i\omega _{r}t/2}&0\\0&e^{i\omega _{r}t/2}\end{pmatrix}}={\begin{pmatrix}0&-ie^{i\omega _{r}t}\\ie^{-i\omega _{r}t}&0\end{pmatrix}}$ $e^{i\sigma _{z}\omega _{r}t/2}\sigma _{z}e^{-i\sigma _{z}\omega _{r}t/2}={\begin{pmatrix}e^{i\omega _{r}t/2}&0\\0&e^{-i\omega _{r}t/2}\end{pmatrix}}{\begin{pmatrix}1&0\\0&-1\end{pmatrix}}{\begin{pmatrix}e^{-i\omega _{r}t/2}&0\\0&e^{i\omega _{r}t/2}\end{pmatrix}}=\sigma _{z}$
The equation now reads ${\frac {\partial \psi }{\partial t}}=i\left(\omega _{1}{\begin{pmatrix}0&e^{i\omega _{r}t}\left(\cos {\omega _{r}t}-i\sin {\omega _{r}t}\right)\\e^{-i\omega _{r}t}\left(\cos {\omega _{r}t}+i\sin {\omega _{r}t}\right)&0\end{pmatrix}}+\left(w_{0}+{\frac {\omega _{r}}{2}}\right)\sigma _{z}\right)\psi ,$ which by Euler's identity becomes ${\frac {\partial \psi }{\partial t}}=i\left(\omega _{1}\sigma _{x}+\left(w_{0}+{\frac {\omega _{r}}{2}}\right)\sigma _{z}\right)\psi$

### Relation to Bloch equations

The optical Bloch equations for a collection of spin-1/2 particles can be derived from the time dependent Schrödinger equation for a two level system. Starting with the previously stated Hamiltonian $i\hbar \partial _{t}\psi =-\mu {\boldsymbol {\sigma }}\cdot \mathbf {B} \psi$, it can be written in summation notation after some rearrangement as${\frac {\partial \psi }{\partial t}}=i{\frac {\mu }{\hbar }}\sigma _{i}B_{i}\psi$
Multiplying by a Pauli matrix $\sigma _{i}$ and the conjugate transpose of the wavefunction, and subsequently expanding the product of two Pauli matrices yields$\psi ^{\dagger }\sigma _{j}{\frac {\partial \psi }{\partial t}}=i{\frac {\mu }{\hbar }}\psi ^{\dagger }\sigma _{j}\sigma _{i}B_{i}\psi =i{\frac {\mu }{\hbar }}\psi ^{\dagger }\left(I\delta _{ij}-i\sigma _{k}\varepsilon _{ijk}\right)B_{i}\psi ={\frac {\mu }{\hbar }}\psi ^{\dagger }\left(iI\delta _{ij}+\sigma _{k}\varepsilon _{ijk}\right)B_{i}\psi$
Adding this equation to its own conjugate transpose yields a left hand side of the form$\psi ^{\dagger }\sigma _{j}{\frac {\partial \psi }{\partial t}}+{\frac {\partial \psi ^{\dagger }}{\partial t}}\sigma _{j}\psi ={\frac {\partial \left(\psi ^{\dagger }\sigma _{j}\psi \right)}{\partial t}}$
And a right hand side of the form${\frac {\mu }{\hbar }}\psi ^{\dagger }\left(iI\delta _{ij}+\sigma _{k}\varepsilon _{ijk}\right)B_{i}\psi +{\frac {\mu }{\hbar }}\psi ^{\dagger }\left(-iI\delta _{ij}+\sigma _{k}\varepsilon _{ijk}\right)B_{i}\psi ={\frac {2\mu }{\hbar }}\left(\psi ^{\dagger }\sigma _{k}\psi \right)B_{i}\varepsilon _{ijk}$
As previously mentioned, the expectation value of each Pauli matrix is a component of the Bloch vector, $\langle \sigma _{i}\rangle =\psi ^{\dagger }\sigma _{i}\psi =R_{i}$. Equating the left and right hand sides, and noting that ${\frac {2\mu }{\hbar }}$ is the gyromagnetic ratio $\gamma$, yields another form for the equations of motion of the Bloch vector${\frac {\partial R_{j}}{\partial t}}=\gamma R_{k}B_{i}\varepsilon _{kij}$ where the fact that $\varepsilon _{ijk}=\varepsilon _{kij}$ has been used. In vector form these three equations can be expressed in terms of a cross product${\frac {\partial \mathbf {R} }{\partial t}}=\gamma \mathbf {R} \times \mathbf {B}$ Classically, this equation describes the dynamics of a spin in a magnetic field. An ideal magnet consists of a collection of identical spins behaving independently, and thus the total magnetization $\mathbf {M}$ is proportional to the Bloch vector $\mathbf {R}$. All that is left to obtain the final form of the optical Bloch equations is the inclusion of the phenomenological relaxation terms.
As a final aside, the above equation can be derived by considering the time evolution of the angular momentum operator in the Heisenberg picture. $i\hbar {\frac {d\sigma _{j}}{dt}}=\left[\sigma _{j},H\right]=\left[\sigma _{j},-\mu \sigma _{i}B_{i}\right]=-\mu \left(\sigma _{j}\sigma _{i}B_{i}-\sigma _{i}\sigma _{j}B_{i}\right)=\mu [\sigma _{i},\sigma _{j}]B_{i}=2\mu i\varepsilon _{ijk}\sigma _{k}B_{i}$
When coupled with the fact that $\mathbf {R} _{i}=\langle \sigma _{i}\rangle$, this equation is the same equation as before.

## Validity

Two-state systems are the simplest non-trivial quantum systems that occur in nature, but the above-mentioned methods of analysis are not just valid for simple two-state systems. Any general multi-state quantum system can be treated as a two-state system as long as the observable one is interested in has two eigenvalues. For example, a spin-1/2 particle may in reality have additional translational or even rotational degrees of freedom, but those degrees of freedom are irrelevant to the preceding analysis. Mathematically, the neglected degrees of freedom correspond to the degeneracy of the spin eigenvalues.
Another case where the effective two-state formalism is valid is when the system under consideration has two levels that are effectively decoupled from the system. This is the case in the analysis of the spontaneous or stimulated emission of light by atoms and that of charge qubits. In this case it should be kept in mind that the perturbations (interactions with an external field) are in the right range and do not cause transitions to states other than the ones of interest.

## Significance and other examples

Pedagogically, the two-state formalism is among the simplest of mathematical techniques used for the analysis of quantum systems. It can be used to illustrate fundamental quantum mechanical phenomena such as the interference exhibited by particles of the polarization states of the photon, but also more complex phenomena such as neutrino oscillation or the neutral K-meson oscillation.
Two-state formalism can be used to describe simple mixing of states, which leads to phenomena such as resonance stabilization and other level crossing related symmetries. Such phenomena have a wide variety of application in chemistry. Phenomena with tremendous industrial applications such as the maser and laser can be explained using the two-state formalism.
The two-state formalism also forms the basis of quantum computing. Qubits, which are the building blocks of a quantum computer, are nothing but two-state systems. Any quantum computational operation is a unitary operation that rotates the state vector on the Bloch sphere.