• Tetra Quark

On this page

  • Introduction
  • Single qubit operations
  • Two-qubit operations

Other Formats

  • PDF

Nuclear Magnetic Resonance Based Quantum computer

Quantum Computation
Published

September 9, 2020

Abstract
This article presents the theoretical foundations of Nuclear Magnetic Resonance (NMR) quantum computers, one of the earliest experimental implementations of quantum computation. We derive the complete Hamiltonian for spin-1/2 nuclei in magnetic fields and demonstrate how radiofrequency pulses can implement arbitrary single-qubit rotations through the rotating wave approximation. The analysis extends to two-qubit systems, showing how spin-spin coupling enables the implementation of controlled-NOT gates and other essential quantum operations. These theoretical developments establish NMR as a viable platform for quantum computation, capable of executing any quantum algorithm through a combination of single-qubit rotations and two-qubit interactions.
Keywords

NMR, qubit, quantum computer

\(\require{cancel}\) \(\def\oot{\frac{1}{2}}\)

Introduction

Alanine is one of the simplest amino acids, consisting of a central carbon atom bonded to an amino group, a carboxyl group, a hydrogen atom, and a methyl group side chain. This molecular simplicity makes alanine an ideal candidate for NMR quantum computing experiments, as its nuclear spins can be easily manipulated and measured. The methyl group provides additional qubit states through its three equivalent hydrogen nuclei, while the central carbon-13 nucleus offers another quantum degree of freedom. Figure 1 shows the 3D structure of alanine used in NMR quantum computing experiments.

Code
alanineViewer = {
  const element = DOM.element('div');
  element.style.width = "100%";
  element.style.height = "500px";
  element.style.border = "1px solid #ddd";
  element.style.borderRadius = "5px";
  element.id = "alanine-viewer";
  return element;
}
Figure 1: Interactive 3D structure of alanine (C₃H₇NO₂) showing the molecular geometry used in NMR quantum computing experiments. Alanine is the simplest chiral amino acid, containing a central carbon atom bonded to an amino group, a carboxyl group, a hydrogen atom, and a methyl group. This molecular structure makes alanine particularly suitable for NMR quantum computing applications, as its nuclear spins can be precisely controlled and measured. The structure displays both stick and sphere representations with proper 3D coordinates from DrugBank (DB01786).

A spin \(1/2\) nucleus or an electron placed in a magnetic field of strength \(B\) can be described by the Hamiltonian \[\begin{equation} H=-\frac{\hbar w_0}{2} \sigma_z, \label{eq:hamiltonian} \end{equation}\] where \(\sigma_z\) is the \(3^{rd}\) Pauli matrix and \(w_0= \mu B\), \(\mu\) being the magnetic dipole moment of the particle. In this representation the eigenstates can be written explicitly as \[\begin{equation} |\downarrow\rangle=\left( \begin{array}{c} 0 \\ 1 \\ \end{array} \right), \;\; |\uparrow\rangle=\left( \begin{array}{c} 1 \\ 0 \\ \end{array} \right). \label{eq:eigenstates} \end{equation}\] Let us now introduce a magnetic field in the \(x\) direction, \[\begin{equation}\label{magnetic field x direction} \vec{B_1}=-B_1\cos(\omega_{rf} t-\phi)\hat x. \end{equation}\] The full Hamiltonian becomes \[\begin{equation} H=-\frac{\hbar w_0}{2} \sigma_z+2\hbar w_1 \cos(\omega_{rf} t-\phi) \sigma_x, \label{eq:fullhamiltonian} \end{equation}\] where \(w_1=\gamma B_1/2\). Here we assume that \(w_0\ll w_1\). The Schrödinger Equation reads \[\begin{equation} i\frac{\partial}{\partial t} |\psi(t)\rangle=H(t)|\psi(t)\rangle. \label{eq:SE} \end{equation}\] Since the Hamiltonian is time dependent, it is convenient to describe the problem in a rotating frame such that the Hamiltonian in that frame becomes time independent. Let us define \[\begin{equation} |\psi(t)\rangle=U_R(t)|\psi_R(t)\rangle, \label{eq:stateinrotatingframe} \end{equation}\] where \[\begin{equation} U_R(t)=e^{-i \frac{w}{2}t \sigma_z }. \end{equation}\] Inserting Eq. \(\ref{eq:stateinrotatingframe}\) into Eq. \(\ref{eq:SE}\) yields \[\begin{equation} i\frac{\partial}{\partial t} |\psi_R(t)\rangle=\left(U_R H(t) U_R^\dagger-i\hbar U_R\frac{d}{dt}U_R^\dagger\right)|\psi_R(t)\rangle, \label{eq:rotationu} \end{equation}\] which shows that the Hamiltonian in the rotating frame is \[\begin{equation} \tilde{H}=U_R H U_R^\dagger-i\hbar U_R\frac{d}{dt}U_R^\dagger, \label{eq:htilde} \end{equation}\] and we also used \[\begin{equation} \frac{d}{dt}U_RU_R^\dagger=-U_R\frac{d}{dt}U_R^\dagger \label{eq:reorder}. \end{equation}\] We can calculate Eq. \(\ref{eq:htilde}\) explicitly as \[\begin{eqnarray} \tilde{H}&=&U_R H U_R^\dagger-i\hbar U_R\frac{d}{dt}U_R^\dagger\nonumber\\ &=&-(w-w_1)\sigma_z/2\nonumber\\ &+&w_1\cos(w_{rf} t-\phi)e^{-i w t\sigma_z t/2}\sigma_x e^{i w t\sigma_z t/2} \label{eq:htildeexp}. \end{eqnarray}\] We can use the following property of the Pauli matrices \[\begin{equation} e^{-i w t\sigma_z t/2}\sigma_x e^{i w t\sigma_z t/2}=\sigma_x\cos(w t)+\sigma_y \sin(w t). \label{eq:rotation} \end{equation}\] Inserting this into Eq. \(\ref{eq:htildeexp}\) we get, \[\begin{eqnarray} \tilde{H}&=&\left( \begin{array}{cc} -\frac{w-w_1}{2} & w_1e^{-iw t}\cos(w_{rf} t-\phi) \\ w_1e^{iw t}\cos(w_{rf} t-\phi) & \frac{w-w_1}{2} \\ \end{array} \right)\nonumber\\ &=&\frac{w_1}{2}\left( \begin{array}{cc} -\frac{w-w_1}{w_1} & e^{-i\left(\Delta t+\phi\right)}e^{-i\left(\Sigma t-\phi\right)} \\ e^{i\left(\Delta t+\phi\right)}+e^{i\left(\Sigma t-\phi\right)} & \frac{w-w_1}{w_1} \end{array} \right) \label{eq:matrix} \end{eqnarray}\] where we define \(\Sigma=w+w_{rf}\) and \(\Delta=w-w_{rf}\). It is important to note that \(w_{rf}\) is the frequency of the magnetic field, therefore we can choose it such that \(w_{rf}=w_0\). In this case \(\Sigma=2 w_{rf}\) and \(\Delta=0\). Furthermore the terms with \(\Sigma\) are rapidly oscillating and their average becomes zero over the time scale \(1/w_1\), which is the time scale for rotations. This approximation is called the rotating wave approximation. In this limit \(\tilde{H}\) becomes time independent, and reads \[\begin{eqnarray} \tilde{H}&=&\frac{\hbar\omega_1}{2}(\cos\phi\sigma_x+\sin\phi \sigma_y)=\hbar \omega_1\left( \begin{array}{cc} 0 & e^{-i\phi} \\ e^{i\phi} & 0 \\ \end{array} \right) \label{eq:matrixrotatingwave} \end{eqnarray}\] This completes the simplification of the Hamiltonian. We now discuss how this Hamiltonian can implement single qubit operations.

\(\nextSection\)

Single qubit operations

It is obvious that Hamiltonian in Eq. \(\ref{eq:matrixrotatingwave}\) can easily generate rotations around \(x\) and \(y\)-axis. If one chooses \(\phi=0\) or \(\phi=\pi\), the time development operator reads \[\begin{equation} U(t)=e^{-i \tilde{H}t/\hbar}=e^{\mp i\frac{ w_1 t}{2}\sigma_x}, \label{eq:ufinal} \end{equation}\] which clearly generates rotations around \(\pm x\)-axis. Similarly if one chooses \(\phi=\pm\pi/2\), the time development operator reads

\[\begin{eqnarray} U(t)=e^{-i \tilde{H}t/\hbar}&=&e^{\mp i\frac{ w_1 t}{2}\sigma_y}, \label{eq:ufinaly} \end{eqnarray}\] which generates rotations around \(\pm y\)-axis. Although Eq. \(\ref{eq:matrixrotatingwave}\) lacks \(\sigma_z\), the rotations around \(z\)-axis can be generated as a series of rotations around \(x\) and \(y\) axes. This follows from the identity \[\begin{equation} e^{-i \alpha \sigma_z/2}=e^{-i \frac{\pi}{2} \sigma_x/2}e^{-i \alpha \sigma_y/2}e^{-i \frac{\pi}{2} \sigma_x/2}. \label{eq:ufinalz} \end{equation}\] Therefore we conclude that the nuclear spin can be rotated to any point in the Bloch Sphere.

\(\nextSection\)

Two-qubit operations

Now we need to describe two qubits using the Hamiltonian of individual qubits and their interactions. Let split the Hamiltonian into three pieces: \[\begin{equation} H=H_0+H_{rf,1}+H_{rf,2} \label{eq:twoqH}. \end{equation}\] The first term is the time independent part that includes interaction of the qubits with the external magnetic field along \(z\)-axis and the inter-qubit interaction: \[\begin{equation} H_0=-w_{0,1}I_z\otimes I-w_{0,2}I\otimes I_z+J\sum_k I_k\otimes I_k, \label{eq:twoqHbackground} \end{equation}\] where the last term is the interaction of the magnetic dipoles of the qubits. The second and the third terms in Eq. \(\ref{eq:twoqH}\) are the interactions of the qubits with the time varying control field along the \(x\)-axis, \[\begin{equation} H_{rf,1}=2\hbar w_{1,1} \cos(\omega_{rf,1} t-\phi_1) (I_x\otimes I+g I\otimes I_x), \label{eq:twoqHrf} \end{equation}\] and \[\begin{equation} H_{rf,2}=2\hbar w_{1,2} \cos(\omega_{rf,2} t-\phi_2) (g^{-1}I_x\otimes I+I\otimes I_x), \label{eq:twoqrf2} \end{equation}\] where \[\begin{equation} 2 w_{1,i}=\gamma_i B_{1,i}\;\;\; and\;\;\; g=\gamma_2/\gamma_1 \label{eq:twoqHw}. \end{equation}\] We will employ the same trick of transforming into the rotating frame using the following operator: \[\begin{equation} U_R(t)=e^{-i w_{0,1} I_z t}\otimes e^{-i w_{0,2} I_z t} \label{eq:rot2} \end{equation}\] In this frame, the transformed Hamiltonian reads \[\begin{eqnarray} \tilde H=J I_z\otimes I_z&+&\hbar w_{1,1} [\cos\phi_1 I_x\otimes I +\sin \phi_1 I_y\otimes I]\nonumber\\ &+&\hbar w_{1,2} [\cos\phi_2 I\otimes I_x +\sin \phi_2 I\otimes I_y], \label{eq:htilde2} \end{eqnarray}\] which is basically the final form of the Hamiltonian. Keep in mind that \(w_{1,i}\) is tied to the external field along the \(x\)-axis, which we can turn on and off. When that control field is turned off, the dynamics of the qubits is simply driven by the interaction term1; therefore, the time evolution operator corresponding to the Hamiltonian in Eq. \(\ref{eq:htilde2}\) simplifies to:

\[\begin{eqnarray} U_R(t)=e^{-i J I_z\otimes I_z t}=\left( \begin{array}{cccc} e^{-i \frac{J t}{4}} & 0 & 0 & 0 \\ 0 & e^{i \frac{J t}{4}} & 0 & 0\\ 0 & 0 & e^{i \frac{J t}{4}} & 0 \\ 0 & 0 & 0 & e^{-i \frac{J t}{4}} \\ \end{array} \right) \label{eq:uf2} \end{eqnarray}\]

Before we proceed, let’s take a look at the values of these frequencies for a couple of molecules:

molecule \(w_{0,1}\) \(w_{0,2}\) \(J\)
Chloroform 500 Mhz 100 Mhz 200 Hz
Cytosine 500 Mhz 500 Mhz 7.1 Hz

Note how small are the frequencies corresponding to the qubit interaction term \(J\). This implies that the time evolution operator in Eq. \(\ref{eq:uf2}\) is very slow. For Cytosine it will take \(1/7.1\) seconds to complete a full period!

If we let the system evolve for a period of time \(\tau=\pi/J\), we get

\[\begin{eqnarray} U_R(\frac{\pi}{J})=e^{-i \pi I_z\otimes I_z }=\left( \begin{array}{cccc} e^{-i \frac{\pi}{4}} & 0 & 0 & 0 \\ 0 & e^{i \frac{\pi}{4}} & 0 & 0\\ 0 & 0 & e^{i \frac{\pi}{4}} & 0 \\ 0 & 0 & 0 & e^{-i \frac{\pi}{4}} \\ \end{array} \right) \label{eq:ufcnotbase}, \end{eqnarray}\] which is a particularly useful transformation matrix. Let’s do a very special series of transformations as follows: \[\begin{eqnarray} Z_1\bar{Z}_2 X_2 U_R(\frac{\pi}{J})Y_2= e^{-i \frac{\pi}{4}}\left( \begin{array}{cccc} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0\\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \\ \end{array} \right). \label{eq:ufcnot} \end{eqnarray}\] The operator in Eq. \(\ref{eq:ufcnot}\) is the Holy Grail of quantum operations: it is \(U_{CNOT}\), which flips the second qubit only if the first qubit is \(1\). It is necessary and sufficient to create all possible 2-qubit operations. This completes the derivation that the NMR computer can create any possible single qubit or two-qubit operations. And it is rather straightforward to extend this to multi-qubit case by simply generalizing Eq. \(\ref{eq:htilde2}\) as follows:

\[\begin{eqnarray} \tilde H=\sum_{i=1}^{n-1} J_{i,i+1} I_{z,i}\otimes I_{z,i+1} +\sum_{i=1}^{n}\hbar w_{1,i} [\cos\phi_i I_x +\sin \phi_i I_y] \label{eq:htilde2gen} \end{eqnarray}\] which shows that it is possible to execute \(U_{CNOT}\) operations for any qubit pairs.

No matching items

Footnotes

  1. Keep in mind that we are in the rotating frame and the effect of the external field along \(z\)-axis is taken care of.↩︎