Principles of Superconducting Quantum Computers. Daniel D. Stancil

Чтение книги онлайн.

Читать онлайн книгу Principles of Superconducting Quantum Computers - Daniel D. Stancil страница 17

Principles of Superconducting Quantum Computers - Daniel D. Stancil

Скачать книгу

right-angle minus Math bar pipe bar symblom 1 mathematical right-angle right-bracket EndLayout"/> (1.66)

      Arranging for the amplitudes of the correct states to add and others to cancel is an example of quantum interference, another key principle underlying quantum computing. So we see that in a single function call, we are able to determine whether or not f(x) is balanced or constant—a feat that would only be possible classically with two function calls!

      Now let us turn our attention to how the gate U can be realized. First, we have to confess that the circuit in Figure 1.8 is hiding something: we need another qubit to implement the U gate.

      Consider the function f(x)=0. We want a unitary Uf that converts |x⟩ to |f(x)⟩, but this is clearly not reversible. Given an output of |0⟩, there’s no way to know whether the input is |1⟩ or |0⟩. To make the function reversible, we need to include both f(x) and x in the output, so that we can reconstruct the input when reversing the operation.

      Figure 1.9 Reversible circuit for calculating f(x).

       f1(x)=0, do nothing to y, equivalent to y⊕0.

       f2(x)=1, flip y using a NOT gate, equivalent to y⊕1.

       f3(x)=x, use a CNOT gate to flip y if x = 1, equivalent to y⊕x.

       f4(x)=x¯, flip x and then XOR with y using a CNOT gate, equivalent to y⊕x¯. We then use another NOT gate to restore x to its original value.

      Figure 1.10 Implementations of black-box function Uf for Deutsch’s problem. Top output is |yf(x)⟩, and bottom output is |x⟩.

      First, consider what happens if we flip |−⟩ using the X gate:

      StartLayout 1st Row 1st Column upper X Math bar pipe bar symblom minus mathematical right-angle 2nd Column equals StartFraction 1 Over StartRoot 2 EndRoot EndFraction upper X left-parenthesis Math bar pipe bar symblom 0 mathematical right-angle minus Math bar pipe bar symblom 1 mathematical right-angle right-parenthesis 2nd Row 1st Column Blank 2nd Column equals StartFraction 1 Over StartRoot 2 EndRoot EndFraction upper X left-parenthesis Math bar pipe bar symblom 1 mathematical right-angle minus Math bar pipe bar symblom 0 mathematical right-angle right-parenthesis 3rd Row 1st Column Blank 2nd Column equals minus Math bar pipe bar symblom minus mathematical right-angle period EndLayout (1.68)

      In the cases where Uf flips |y⟩, we have:

      upper U Subscript f Baseline Math bar pipe bar symblom x mathematical right-angle Math bar pipe bar symblom minus mathematical right-angle equals Math bar pipe bar symblom x mathematical right-angle left-parenthesis minus Math bar pipe bar symblom minus mathematical right-angle right-parenthesis equals left-parenthesis minus Math bar pipe bar symblom x mathematical right-angle right-parenthesis Math bar pipe bar symblom minus mathematical right-angle period (1.69)

      It might seem that we “magically” moved the minus sign from one qubit to the other, but remember that this is really a two-qubit state, not two individual qubits. And −1 is just a constant, so we can associate it with either part of the two-qubit state.

      Figure 1.11 Implementation of Deutsch’s algorithm. The dashed box is equivalent to U in Figure 1.8.

      If the notions of reversible logic and phase kickback seem strange, don’t worry. We’ll have a lot more to say about them in Chapters 11 and 12.

      1.9 Key Characteristics of Quantum Computing

       Results are (usually) statistical: When a classical program is executed, you obtain the same result each time. However, when a quantum circuit is executed, multiple results are possible with probabilities determined by the magnitude squared of the amplitudes of each state. Consequently, in general a circuit must be executed

Скачать книгу