The one-way quantum computer, also known as measurement-based quantum computer (MBQC), is a method of quantum computing that first prepares an entangled resource state, usually a cluster state or graph state, then performs single qubit measurements on it. It is "one-way" because the resource state is destroyed by the measurements. The outcome of each individual measurement is random, but they are related in such a way that the computation always succeeds. In general, the choices of basis for later measurements need to depend on the results of earlier measurements, and hence the measurements cannot all be performed at the same time. The implementation of MBQC is mainly considered for photonic devices, due to the difficulty of entangling photons without measurements, and the simplicity of creating and measuring them. However, MBQC is also possible with matter-based qubits. The process of entanglement and measurement can be described with the help of graph tools and group theory, in particular by the elements from the stabilizer group.
Definition The purpose of quantum computing focuses on building an information theory with the features of quantum mechanics: instead of encoding a binary unit of information (bit), which can be switched to 1 or 0, a quantum binary unit of information (qubit) can simultaneously turn to be 0 and 1 at the same time, thanks to the phenomenon called superposition. Another key feature for quantum computing relies on the entanglement between the qubits.
In the quantum logic gate model, a set of qubits, called register, is prepared at the beginning of the computation, then a set of logic operations over the qubits, carried by unitary operators, is implemented. A quantum circuit is formed by a register of qubits on which unitary transformations are applied over the qubits. In the measurement-based quantum computation, instead of implementing a logic operation via unitary transformations, the same operation is executed by entangling a number k {\displaystyle k} of input qubits with a cluster of a {\displaystyle a} ancillary qubits, forming an overall source state of a + k = n {\displaystyle a+k=n} qubits, and then measuring a number m {\displaystyle m} of them. The remaining k = n − a {\displaystyle k=n-a} output qubits will be affected by the measurements because of the entanglement with the measured qubits. The one-way computer has been proved to be a universal quantum computer, which means it can reproduce any unitary operation over an arbitrary number of qubits.
General procedure The standard process of measurement-based quantum computing consists of three steps: entangle the qubits, measure the ancillae (auxiliary qubits) and correct the outputs. In the first step, the qubits are entangled in order to prepare the source state. In the second step, the ancillae are measured, affecting the state of the output qubits. However, the measurement outputs are non-deterministic result, due to undetermined nature of quantum mechanics: in order to carry on the computation in a deterministic way, some correction operators, called byproducts, are introduced.
Preparing the source state
At the beginning of the computation, the qubits can be distinguished into two categories: the input and the ancillary qubits. The inputs represent the qubits set in a generic | ψ ⟩ = α | 0 ⟩ + β | 1 ⟩ {\displaystyle |\psi \rangle =\alpha |0\rangle +\beta |1\rangle } state, on which some unitary transformations are to be acted. In order to prepare the source state, all the ancillary qubits must be prepared in the | + ⟩ {\displaystyle |+\rangle } state:
| + ⟩ = | 0 ⟩ + | 1 ⟩ 2 , {\displaystyle |+\rangle ={\tfrac {|0\rangle +|1\rangle }{\sqrt {2}}},}
where | 0 ⟩ {\displaystyle |0\rangle } and | 1 ⟩ {\displaystyle |1\rangle } are the quantum encoding for the classical 0 {\displaystyle 0} and 1 {\displaystyle 1} bits:
| 0 ⟩ = ( 1 0 ) ; | 1 ⟩ = ( 0 1 ) {\displaystyle |0\rangle ={\begin{pmatrix}1\\0\end{pmatrix}};\quad |1\rangle ={\begin{pmatrix}0\\1\end{pmatrix}}} . A register with n {\displaystyle n} qubits will be therefore set as | + ⟩ ⊗ n {\displaystyle |+\rangle ^{\otimes n}} . Thereafter, the entanglement between two qubits can be performed by applying a (Controlled) C Z {\displaystyle CZ} gate operation. The matrix representation of such two-qubits operator is given by
C Z = [ 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 − 1 ] . {\displaystyle CZ={\begin{bmatrix}1&0&0&0\\0&1&0&0\\0&0&1&0\\0&0&0&-1\end{bmatrix}}.}
The action of a C Z {\displaystyle CZ} gate over two qubits can be described by the following system:
{ C Z | 0 + ⟩ = | 0 + ⟩ C Z | 0 − ⟩ = | 0 − ⟩ C Z | 1 + ⟩ = | 1 − ⟩ C Z | 1 − ⟩ = | 1 + ⟩ {\displaystyle {\begin{cases}CZ|0+\rangle =|0+\rangle \\CZ|0-\rangle =|0-\rangle \\CZ|1+\rangle =|1-\rangle \\CZ|1-\rangle =|1+\rangle \end{cases}}}
When applying a C Z {\displaystyle CZ} gate over two ancillae in the | + ⟩ {\displaystyle |+\rangle } state, the overall state
C Z | + + ⟩ = | 0 + ⟩ + | 1 − ⟩ 2 {\displaystyle CZ|++\rangle ={\frac {|0+\rangle +|1-\rangle }{\sqrt {2}}}}
turns to be an entangled pair of qubits. When entangling two ancillae, no importance is given about which is the control qubit and which one the target, as far as the outcome turns to be the same. Similarly, as the C Z {\displaystyle CZ} gates are represented in a diagonal form, they all commute each other, and no importance is given about which qubits to entangle first. Photons are the most common qubit system that is used in the context of one-way quantum computing. However, deterministic C Z {\displaystyle CZ} gates between photons are difficult to realize. Therefore, probabilistic entangling gates such as Bell state measurements are typically considered. Furthermore, quantum emitters such as atoms or quantum dots can be used to create deterministic entanglement between photonic qubits.
Measuring the qubits
The process of measurement over a single-particle state can be described by projecting the state on the eigenvector of an observable. Consider an observable O {\displaystyle O} with two possible eigenvectors, say | o 1 ⟩ {\displaystyle |o_{1}\rangle } and | o 2 ⟩ {\displaystyle |o_{2}\rangle } , and suppose to deal with a multi-particle quantum system | Ψ ⟩ {\displaystyle |\Psi \rangle } . Measuring the i {\displaystyle i} -th qubit by the O {\displaystyle O} observable means to project the | Ψ ⟩ {\displaystyle |\Psi \rangle } state over the eigenvectors of O {\displaystyle O} :
| Ψ ′ ⟩ = | o i ⟩ ⟨ o i | Ψ ⟩ {\displaystyle |\Psi '\rangle =|o_{i}\rangle \langle o_{i}|\Psi \rangle } . The actual state of the i {\displaystyle i} -th qubit is now | o i ⟩ {\displaystyle |o_{i}\rangle } , which can turn to be | o 1 ⟩ {\displaystyle |o_{1}\rangle } or | o 2 ⟩ {\displaystyle |o_{2}\rangle } , depending on the outcome from the measurement (which is probabilistic in quantum mechanics). The measurement projection can be performed over the eigenstates of the M ( θ ) = cos ( θ ) X + sin ( θ ) Y {\displaystyle M(\theta )=\cos(\theta )X+\sin(\theta )Y} observable:
M ( θ ) = cos ( θ ) [ 0 1 1 0 ] + sin ( θ ) [ 0 − i i 0 ] = [ 0 e − i θ e i θ 0 ] {\displaystyle M(\theta )=\cos(\theta ){\begin{bmatrix}0&1\\1&0\end{bmatrix}}+\sin(\theta ){\begin{bmatrix}0&-i\\i&0\end{bmatrix}}={\begin{bmatrix}0&e^{-i\theta }\\e^{i\theta }&0\end{bmatrix}}} , where X {\displaystyle X} and Y {\displaystyle Y} belong to the Pauli matrices. The eigenvectors of M ( θ ) {\displaystyle M(\theta )} are | θ ± ⟩ = | 0 ⟩ ± e i θ | 1 ⟩ {\displaystyle |\theta _{\pm }\rangle =|0\rangle \pm e^{i\theta }|1\rangle } . Measuring a qubit on the X {\displaystyle X} - Y {\displaystyle Y} plane, i.e. by the M ( θ ) {\displaystyle M(\theta )} observable, means to project it over | θ + ⟩ {\displaystyle |\theta _{+}\rangle } or | θ − ⟩ {\displaystyle |\theta _{-}\rangle } . In the one-way quantum computing, once a qubit has been measured, there is no way to recycle it in the flow of computation. Therefore, instead of using the | o i ⟩ ⟨ o i | {\displaystyle |o_{i}\rangle \langle o_{i}|} notation, it is common to find ⟨ o i | {\displaystyle \langle o_{i}|} to indicate a projective measurement over the i {\displaystyle i} -th qubit.
Correcting the output After all the measurements have been performed, the system has been reduced to a smaller number of qubits, which form the output state of the system. Due to the probabilistic outcome of measurements, the system is not set in a deterministic way: after a measurement on the X {\displaystyle X} - Y {\displaystyle Y} plane, the output may change whether the outcome had been | θ + ⟩ {\displaystyle |\theta _{+}\rangle } or | θ − ⟩ {\displaystyle |\theta _{-}\rangle } . In order to perform a deterministic computation, some corrections must be introduced. The correction operators, or byproduct operators, are applied to the output qubits after all the measurements have been performed. The byproduct operators which can be implemented are X {\displaystyle X} and Z {\displaystyle Z} . Depending on the outcome of the measurement, a byproduct operator can be applied or not to the output state: a X {\displaystyle X} correction over the j {\displaystyle j} -th qubit, depending on the outcome of the measurement performed over the i {\displaystyle i} -th qubit via the M ( θ ) {\displaystyle M(\theta )} observable, can be described as X j s i {\displaystyle X_{j}^{s_{i}}} , where s i {\displaystyle s_{i}} is set to be 0 {\displaystyle 0} if the outcome of measurement was | θ + ⟩ {\displaystyle |\theta _{+}\rangle } , otherwise is 1 {\displaystyle 1} if it was | θ − ⟩ {\displaystyle |\theta _{-}\rangle } . In the first case, no correction will occur, in the latter one a X {\displaystyle X} operator will be implemented on the j {\displaystyle j} -th qubit. Eventually, even though the outcome of a measurement is not deterministic in quantum mechanics, the results from measurements can be used in order to perform corrections, and carry on a deterministic computation.
CME pattern
The operations of entanglement, measurement and correction can be performed in order to implement unitary gates. Such operations can be performed time by time for any logic gate in the circuit, or rather in a pattern which allocates all the entanglement operations at the beginning, the measurements in the middle and the corrections at the end of the circuit. Such pattern of computation is referred to as CME standard pattern. In the CME formalism, the operation of entanglement between the i {\displaystyle i} and j {\displaystyle j} qubits is referred to as E i j {\displaystyle E_{ij}} . The measurement on the i {\displaystyle i} qubit, in the X {\displaystyle X} - Y {\displaystyle Y} plane, with respect to a θ {\displaystyle \theta } angle, is defined as M i θ {\displaystyle M_{i}^{\theta }} . At last, the X {\displaystyle X} byproduct over a i {\displaystyle i} qubit, with respect to the measurement over a j {\displaystyle j} qubit, is described as X i s j {\displaystyle X_{i}^{s_{j}}} , where s j {\displaystyle s_{j}} is set to 0 {\displaystyle 0} if the outcome is the | θ + ⟩ {\displaystyle |\theta _{+}\rangle } state, 1 {\displaystyle 1} when the outcome is | θ − ⟩ {\displaystyle |\theta _{-}\rangle } . The same notation holds for the Z {\displaystyle Z} byproducts. When performing a computation following the CME pattern, it may happen that two measurements M i θ 1 {\displaystyle M_{i}^{\theta _{1}}} and M j θ 2 {\displaystyle M_{j}^{\theta _{2}}} on the X {\displaystyle X} - Y {\displaystyle Y} plane depend one on the outcome from the other. For example, the sign in front of the angle of measurement on the j {\displaystyle j} -th qubit can be flipped with respect to the measurement over the i {\displaystyle i} -th qubit: in such case, the notation will be written as [ M j θ 2 ] s i M i θ 1 {\displaystyle [M_{j}^{\theta _{2}}]^{s_{i}}M_{i}^{\theta _{1}}} , and therefore the two operations of measurement do commute each other no more. If s i {\displaystyle s_{i}} is set to 0 {\displaystyle 0} , no flip on the θ 2 {\displaystyle \theta _{2}} sign will occur, otherwise (when s i = 1 {\displaystyle s_{i}=1} ) the θ 2 {\displaystyle \theta _{2}} angle will be flipped to − θ 2 {\displaystyle -\theta _{2}} . The notation [ M j θ 2 ] s i {\displaystyle [M_{j}^{\theta _{2}}]^{s_{i}}} can therefore be rewritten as M j ( − ) s i θ 2 {\displaystyle M_{j}^{(-)^{s_{i}}\theta _{2}}} .
An example: Euler rotations As an illustrative example, consider the Euler rotation in the X Z X {\displaystyle XZX} basis: such operation, in the gate model of quantum computation, is described as
e i γ R X ( ϕ ) R Z ( θ ) R X ( λ ) {\displaystyle e^{i\gamma }R_{X}(\phi )R_{Z}(\theta )R_{X}(\lambda )} , where ϕ , θ , λ {\displaystyle \phi ,\theta ,\lambda } are the angles for the rotation, while γ {\displaystyle \gamma } defines a global phase which is irrelevant for the computation. To perform such operation in the one-way computing frame, it is possible to implement the following CME pattern:
Z 5 s 1 + s 3 X 5 s 2 + s 4 [ M 4 − ϕ ] s 1 + s 3 [ M 3 − θ ] s 2 [ M 2 − λ ] s 1 M 1 0 E 4 , 5 E 3 , 4 E 2 , 3 E 1 , 2 {\displaystyle Z_{5}^{s_{1}+s_{3}}X_{5}^{s_{2}+s_{4}}[M_{4}^{-\phi }]^{s_{1}+s_{3}}[M_{3}^{-\theta }]^{s_{2}}[M_{2}^{-\lambda }]^{s_{1}}M_{1}^{0}E_{4,5}E_{3,4}E_{2,3}E_{1,2}} , where the input state | ψ ⟩ = α | 0 ⟩ + β | 1 ⟩ {\displaystyle |\psi \rangle =\alpha |0\rangle +\beta |1\rangle } is the qubit 1 {\displaystyle 1} , all the other qubits are auxiliary ancillae and therefore have to be prepared in the | + ⟩ {\displaystyle |+\rangle } state. In the first step, the input state | ψ ⟩ {\displaystyle |\psi \rangle } must be entangled with the second qubits; in turn, the second qubit must be entangled with the third one and so on. The entangling operations E i j {\displaystyle E_{ij}} between the qubits can be performed by the C Z {\displaystyle CZ} gates. In the second place, the first and the second qubits must be measured by the M ( θ ) {\displaystyle M(\theta )} observable, which means they must be projected onto the eigenstates | θ ⟩ {\displaystyle |\theta \rangle } of such observable. When the θ {\displaystyle \theta } is zero, the | θ ± ⟩ {\displaystyle |\theta _{\pm }\rangle } states reduce to | ± ⟩ {\displaystyle |\pm \rangle } ones, i.e. the eigenvectors for the X {\displaystyle X} Pauli operator. The first measurement M 1 0 {\displaystyle M_{1}^{0}} is performed on the qubit 1 {\displaystyle 1} with a θ = 0 {\displaystyle \theta =0} angle, which means it has to be projected onto the ⟨ ± | {\displaystyle \langle \pm |} states. The second measurement [ M 2 − λ ] s 1 {\displaystyle [M_{2}^{-\lambda }]^{s_{1}}} is performed with respect to the − λ {\displaystyle -\lambda } angle, i.e. the second qubit has to be projected on the ⟨ 0 | ± e i λ ⟨ 1 | {\displaystyle \langle 0|\pm e^{i\lambda }\langle 1|} state. However, if the outcome from the previous measurement has been ⟨ − | {\displaystyle \langle -|} , the sign of the λ {\displaystyle \lambda } angle has to be flipped, and the second qubit will be projected to the ⟨ 0 | + e − i λ ⟨ 1 | {\displaystyle \langle 0|+e^{-i\lambda }\langle 1|} state; if the outcome from the first measurement has been ⟨ + | {\displaystyle \langle +|} , no flip needs to be performed. The same operations have to be repeated for the third [ M 3 θ ] s 2 {\displaystyle [M_{3}^{\theta }]^{s_{2}}} and the fourth [ M 4 ϕ ] s 1 + s 3 {\displaystyle [M_{4}^{\phi }]^{s_{1}+s_{3}}} measurements, according to the respective angles and sign flips. The sign over the ϕ {\displaystyle \phi } angle is set to be ( − ) s 1 + s 3 {\displaystyle (-)^{s_{1}+s_{3}}} . Eventually the fifth qubit (the only one not to be measured) figures out to be the output state. At last, the corrections Z 5 s 1 + s 3 X 5 s 2 + s 4 {\displaystyle Z_{5}^{s_{1}+s_{3}}X_{5}^{s_{2}+s_{4}}} over the output state have to be performed via the byproduct operators. For instance, if the measurements over the second and the fourth qubits turned to be ⟨ ϕ + | {\displaystyle \langle \phi _{+}|} and ⟨ λ + | {\displaystyle \langle \lambda _{+}|} , no correction will be conducted by the X 5 {\displaystyle X_{5}} operator, as s 2 = s 4 = 0 {\displaystyle s_{2}=s_{4}=0} . The same result holds for a ⟨ ϕ − | {\displaystyle \langle \phi _{-}|} ⟨ λ − | {\displaystyle \langle \lambda _{-}|} outcome, as s 2 = s 4 = 1 {\displaystyle s_{2}=s_{4}=1} and thus the squared Pauli operator X 2 {\displaystyle X^{2}} returns the identity. As seen in such example, in the measurement-based computation model, the physical input qubit (the first one) and output qubit (the third one) may differ each other.
Equivalence between quantum circuit model and MBQC The one-way quantum computer allows the implementation of a circuit of unitary transformations through the operations of entanglement and measurement. At the same time, any quantum circuit can be in turn converted into a CME pattern: a technique to translate quantum circuits into a MBQC pattern of measurements has been formulated by V. Danos et al. Such conversion can be carried on by using a universal set of logic gates composed by the C Z {\displaystyle CZ} and the J ( θ ) {\displaystyle J(\theta )} operators: therefore, any circuit can be decomposed into a set of C Z {\displaystyle CZ} and the J ( θ ) {\displaystyle J(\theta )} gates. The J
