The present embodiment relates to a quantum circuit design apparatus, a quantum circuit design program, and a quantum circuit design method.
There is a quantum computer that performs calculation at a higher speed than a classical computer by using the quantum property. The quantum gate type quantum computer performs quantum computation by performing gate operations on quantum bits in an order indicated by a quantum circuit.
Related art is disclosed Japanese Laid-open Patent Publication No. 2005-250563, U.S. Pat. No. 7,028,275 and U.S. Patent Application Publication No. 2004/0162640.
In one aspect of the embodiment, a quantum circuit design apparatus includes: a memory; and a processor coupled to the memory and configured to: detect a first gate indicating a predetermined operation on a plurality of first quantum bits among a plurality of quantum bits included in a first quantum circuit, which includes a plurality of elements and indicates an operation order on the plurality of quantum bits by an arrangement of each of the plurality of elements, and a second gate which indicates the predetermined operation; and generate a second quantum circuit by converting the first gate into a first equivalent circuit in the first quantum circuit and converting the second gate into a second equivalent circuit in which the plurality of elements are symmetrically moved in an arrangement direction of the plurality of first quantum bit.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention.
As a quantum algorithm executed by the quantum gate type quantum computer, for example, there is Grover's algorithm for searching data. For example, when one data is searched from N pieces of data, a search can be performed by N1/2 times of arithmetic operations according to the Grover algorithm, while an average of a number of times of arithmetic operations by the classical computer is N/2 times.
As a technique related to the quantum computer, for example, a quantum algorithm execution apparatus capable of causing the classical computer to directly execute the quantum algorithm has been proposed. Also, for example, quantum circuit design with the Grover's algorithm has been proposed, in which inversion and computation steps are repeated to determine a search result corresponding to a target quantum state according to Grover's algorithm. Further, for example, a quantum gate that executes a Grover's quantum algorithm using a two variable function having a vector basis of n quantum bits has been proposed.
The quantum bit is realized by using, for example, superconductivity, an ion trap or the like. In a gate operation on the quantum bit, the quantum computer irradiates the quantum bit with microwaves, for example. Such noise included in the gate operation on the quantum bit may cause an error in a quantum computation.
In one aspect, the present disclosure is directed to reducing errors in the quantum computation.
Hereinafter, the present embodiments will be described with reference to the drawings. Note that each of the embodiments may be implemented by combining a plurality of embodiments within a consistent range.
First, a first embodiment will be described. The first embodiment is a quantum circuit design method capable of reducing errors in the quantum computation.
The quantum circuit design apparatus 10 includes a processing unit 11. The processing unit 11 is, for example, a processor or an arithmetic circuit included in the quantum circuit design apparatus 10. The processing unit 11 generates a second quantum circuit by converting elements included in the first quantum circuit 1. The first quantum circuit 1 is a quantum circuit including a plurality of elements, and indicates an operation order on the respective quantum bits q0, q1, and q2 by the arrangement of the respective elements in the quantum circuit. For example, the first quantum circuit 1 includes lines corresponding to the respective quantum bits q0, q1, and q2. In the first quantum circuit 1, a line corresponding to the quantum bit q0, a line corresponding to the quantum bit q1, and a line corresponding to the quantum bit q2 are arranged in order from the top. On each line of the first quantum circuit 1, an element indicating an operation on the quantum state of the corresponding quantum bit is arranged. In the first quantum circuit 1, an element indicating an operation performed earlier is arranged more to the left.
The elements disposed in the first quantum circuit 1 include, for example, an H gate, an X gate, a CCZ gate, an measurement and the like. Here, the CCZ gate is arranged by setting two control bits and one target bit. The CCZ gate indicates that the Z gate is operated (a phase is inverted) on the one target bit when the two control bits are “1”. Note that the CCZ gate is equivalent to a case where the two control bits and the one target bit are set in any combination from three quantum bits.
The processing unit 11 detects a first gate indicating a predetermined operation on a plurality of first quantum bits among the quantum bits q0, q1, and q2 included in the first quantum circuit 1 and a second gate indicating the predetermined operation. Here, the predetermined operation is an operation of inverting the phase of the one target bit of the quantum bits q0, q1, and q2 in accordance with the two control bits of the three quantum bits q0, q1, and q2. For example, the processing unit 11 detects two CCZ gates for the quantum bits q0, q1, and q2.
Then, the processing unit 11 generates a second quantum circuit by converting the first gate in the first quantum circuit into a first equivalent circuit 2 and converting the second gate into a second equivalent circuit 3 in which elements of the first equivalent circuit 2 are symmetrically moved in an arrangement direction of the plurality of first quantum bits. For example, the processing unit 11 converts the CCZ gate for the quantum bits q0, q1, and q2 included in the first quantum circuit 1 into the first equivalent circuit 2 that is a combination of the CX gate, the T gate and the r gate and is equivalent to the CCZ gate for the quantum bits q0, q1, and q2. Further, the processing unit 11 converts the CCZ gate for the quantum bits q0, q1, and q2, which is included in the first quantum circuit 1 and is different from the CCZ gate converted into the first equivalent circuit 2, into the second equivalent circuit 3 having an arrangement in which the elements of the first equivalent circuit 2 are symmetrically moved with respect to the line corresponding to the qubit q1 as an axis.
Like this, the processing unit 11 detects the first gate and the second gate indicating the predetermined operation on the plurality of first quantum bits among the quantum bits q0, q1, and q2 included in the first quantum circuit 1 indicating the operation order on each of the quantum bits q0, q1, and q2 by the arrangement of the elements. Then, the processing unit 11 converts the first gate in the first quantum circuit 1 into the first equivalent circuit 2, and generates the second quantum circuit in by converting the first gate in the first quantum circuit into the first equivalent circuit 2 and converting the second gate into the second equivalent circuit 3 in which the elements of the first equivalent circuit 2 are symmetrically moved in the arrangement direction of the plurality of first quantum bits.
In the quantum computation, an error may occur easily in each quantum bit due to a noise included in a gate operation on the quantum bit. Therefore, if a number of gate operations on each quantum bit is biased, an error is likely to occur in a quantum bit having a large number of gate operations. In the second quantum circuit, the second equivalent circuit 3 is arranged by symmetrically moving the elements of the first equivalent circuit 2 in the arrangement direction of the plurality of first quantum bits, and thus the number of gate operations on each quantum bit is less biased. Therefore, the quantum computer operates the quantum bits according to the second quantum circuit, and thus it is possible to reduce the bias of the quantum bits which are influenced by the noise. Therefore, the quantum circuit design apparatus 10 may reduce errors in the quantum computation.
Further, the predetermined operation is an operation of inverting the phase of the one target bit of the three first quantum bits in accordance with the two control bits of the three first quantum bits. Thus, the quantum circuit design apparatus 10 may reduce errors in the quantum computation including the CCZ gate.
Note that the processing unit 11 may convert a third gate that inverts a bit of the one target bit of the first quantum bits in accordance with the two control bits of the first quantum bits into a third equivalent circuit including the predetermined operation. Thus, the quantum circuit design apparatus 10 may reduce errors in the quantum computation including the CCX gate.
Further, the processing unit 11 may convert a fourth gate that inverts a bit of one target bit of the second quantum bit in accordance with three or more control bits of the second quantum bit including the first quantum bit into a fourth equivalent circuit including the third gate. Thus, the quantum circuit design apparatus 10 may reduce errors in the quantum computation including the CnNOT gate.
Next, a second embodiment will be described. The second embodiment is a system in which a quantum computer performs quantum computation in accordance with a quantum circuit.
The control computer 100 instructs the quantum bit control apparatus 200 to control the quantum bit according to the quantum circuit received from the terminal devices 31, 32, . . . . Further, the control computer 100 acquires measurement result of each quantum bit from the quantum bit control apparatus 200.
The quantum bit control apparatus 200 includes a plurality of quantum bits and a device for operating each of the plurality of quantum bits. The plurality of quantum bits included in the quantum bit control apparatus 200 may be, for example, superconducting quantum bits or quantum bits using an ion trap. Further, the quantum bit control apparatus 200 may include a refrigerator for cooling the quantum bit.
The device for operating each of the plurality of quantum bits included in the quantum bit control apparatus 200 irradiates the quantum bit with a microwave, for example, in response to an instruction from the control computer 100. Further, the device for operating each of the plurality of quantum bits measures the state of each of the plurality of quantum bits and transmits the state to the control computer 100.
RAM 102 is a main storage device of the control computer 100. The RAM 102 temporarily stores at least a part of a program of an Operating System (OS) and an application program to be executed by the CPU 101. Further, the RAM 102 stores various kinds of information used for processing by the CPU 101. Note that the control computer 100 may include a memory of a type other than the RAM, and may include a plurality of memories.
The peripheral devices coupled to the bus 110 include a hard disk drive (HDD) 103, a graphics processing unit (GPU) 104, an input interface 105, an optical drive device 106, a device connection interface 107,108, and a network interface 109.
HDD 103 is an auxiliary storage device of the control computer 100. The HDD 103 magnetically writes and reads data to and from a magnetic disc incorporated therein. The HDD 103 stores the program of the OS, the application program, and various types of data. Note that the control computer 100 may include another type of an auxiliary storage device such as a flash memory or a solid state drive (SSD), or may include a plurality of auxiliary storage devices.
A monitor 21 is coupled to the GPU 104. The GPU 104 displays an image on a screen of the monitor 21 in accordance with an instruction from the CPU 101. The monitor 21 may be a display device using organic electroluminescence (EL), a liquid crystal display device or the like.
The input interface 105 is coupled to a keyboard 22 and a mouse 23. The input interface 105 transmits signals sent from the keyboard 22 and the mouse 23 to the CPU 101. Note that the mouse 23 is an example of a pointing device, and other pointing devices may be used. The other pointing devices include a touch panel, a tablet, a touch pad, a trackball and the like.
The optical drive device 106 reads data recorded on an optical disc 24 by using a laser beam or the like. The optical disk 24 is a portable recording medium on which data is recorded so as to be readable by reflection of light. The optical disc 24 may be a digital versatile disc (DVD), a DVD-RAM, a compact disc read only memory (CD-ROM), a CD-recordable (R)/ReWritable (RW), or the like.
The device connection interface 107 is a communication interface for coupling the peripheral devices to the control computer 100. For example, the memory device 25 and the memory reader/writer 26 may be coupled to the device connection interface 107. The memory device 25 is a recording medium having a function of communicating with the device connection interface 107. The memory reader/writer 26 is a device that writes data to a memory card 27 or reads data from the memory card 27. The memory card 27 is a card-type recording medium.
The device connection interface 108 is a communication interface for coupling the quantum bit control apparatus 200 to the control computer 100. The control computer 100 transmits an instruction for controlling the quantum bit to the quantum bit control apparatus 200 via the device connection interface 108.
The network interface 109 is coupled to the network 20. The network interface 109 transmits and receives data to and from another computer or a communication device via the network 20.
The control computer 100 may realize the processing functions of the second embodiment by the hardware configuration described above. Note that the quantum circuit design apparatus 10 according to the first embodiment may also be implemented by the same hardware as the control computer 100 illustrated in
The control computer 100 realizes the processing functions of the second embodiment by executing a program recorded in a computer-readable recording medium, for example. The program describing processing contents to be executed by the control computer 100 may be recorded in various recording medium. For example, the program to be executed by the control computer 100 may be stored in a HDD 103. The CPU 101 loads at least a part of the program in the HDD 103 into the RAM 102 and executes the program. Further, the program to be executed by the control computer 100 may be recorded in a portable recording medium such as the optical disk 24, the memory device 25, or the memory card 27. The program stored in the portable recording medium is installed in the HDD 103 and then becomes executable, under the control of the CPU 101, for example. Alternatively, the CPU 101 may directly read the program from the portable recording medium and execute the program.
In the second embodiment, the quantum computer 300 performs the quantum computation. As a quantum algorithm executable by the quantum computer 300, for example, there is the Grover's algorithm.
A graph 41 illustrates the probability amplitude of each of ground states x1 to x4 in the superposition state of the ground states x1, x2, x3, and x4. Note that the ground states x1 to x4 correspond to data to be searched, respectively. In the graph 41, the probability amplitude of each of the ground states x1 to x4 is N−1/2.
In the inversion process of the Grover's algorithm, the oracle Uf is applied. The oracle Uf is expressed by the following Equation (1).
The x in Equation (1) represents each ground state. In addition, v in Equation (1) is a ground state corresponding to the correct answer data. Further, f(x) in Equation (1) is a function that satisfies f(v)=1, and f(x)=0 at x other than v. In addition, I in Equation (1) is a unit matrix of N rows and N columns.
A graph 42 indicates the probability amplitude of each of the ground states x1 to x4 when the oracle Uf is applied to the superposition states of the ground states x1 to x4 indicated by the graph 41. Note that it is assumed that the ground state corresponding to the correct answer data is the ground state x3. In the graph 42, only the probability amplitude of the ground state x3 among the ground states x1 to x4 has a reversed sign with respect to the graph 41.
In the amplification process of the Grover's algorithm, −W represented by the following Equation (2) is applied.
[Equation 2]
−W=2|ww|−1 (2)
The symbol w in Equation (2) represents a state of superposition of all states. A graph 43 indicates the probability amplitude of the respective ground states x1 to x4 when −W is applied to the state indicated by the graph 42. In the graph 43, the probability amplitudes of the ground states x1 to x4 are inverted around an average value with respect to the graph 42. By such an inversion amplification process, the probability magnitude of the ground state x3 corresponding to the correct answer data becomes larger than those of the ground states x1, x2, and x4.
Next, a specific example of executing the Grover's algorithm described above with three quantum bits will be described. The state |ψ> of the superposition of the states represented by the three quantum bits is represented by the following Equation (3).
Equation (3) indicates that the probability amplitude of the state “0” and the probability amplitude of the state “1” are 2−1/2 for each of the three quantum bits. In addition, Equation (3) indicates that the probability amplitude of each of the states “000” to “111” indicated by three quantum bits is 8−1/2. Here, it is assumed that the state “010” corresponds to the correct answer data, and the state Uf|ψ> to which the oracle Uf is applied is represented by the following Equation (4).
Equation (4) indicates that the probability amplitude of the state “010” among the states “000” to “111” is −8−1/2, and the probability amplitude of the states other than the state “010” is 8−1/2. For example, Equation (4) indicates a state in which the sign of the probability amplitude of the state “010” is inverted from the state indicated by Equation (3). Further, the average value of the probability amplitude in the state Uf|ψ> is expressed by the following Equation (5).
A state −WUf|ψ> in which −W is applied to state Uf|ψ> is expressed by the following Equation (6).
Equation (6) represents a state in which the probability amplitudes of the states “000” to “111” are inverted around the average value of the probability amplitudes represented by Equation (5) from the state represented by Equation (4). The probability of becoming the state “010” in the state −WUf|ψ> is the square of the probability amplitude, and is therefore expressed by the following Equation (7).
As described above, −WUf is applied to the state |ψ> of the superposition of the states “000” to “111”, and thus the probability of becoming the state “010” increases from 0.125, which is the probability of randomly becoming one state of eight states, to 0.781. Note that when −WUf; is applied to the state |ψ> twice, the probability of becoming the state “010” is 0.945.
Next, a quantum circuit for causing the quantum computer 300 to execute the Grover's algorithm will be described.
A block which is denoted by H and is arranged on a line corresponding to each of the quantum bits q0, q1, and q2 in the quantum circuit 50 indicates an H gate. The H gate indicates an operation for creating a state of superposition. In addition, a block which is denoted by X and is arranged X on the line corresponding to each of the qubits q0, q1, and q2 in the quantum circuit 50 indicates an X gate. The X gate indicates an operation of inverting a bit of the quantum bit corresponding to the arranged line.
Further, a block which is denoted by Z and is arranged on the line corresponding to each of the quantum bits q0, q1, and q2 and two points of arranged on the line corresponding to each of the quantum bits q0, q1, and q2 which are coupled to the block denoted by Z by a line indicate a CCZ gate. Note that the block denoted by Z is arranged on a line corresponding to a quantum bit serving as a target bit of the CCZ gate, and the two points are arranged on lines corresponding to each of quantum bits serving as two control bits of the CCZ gate. The CCZ gate indicates that the Z gate is operated (the phase is inverted) on one target bit when the two control bits are “1”.
Note that the CCZ gate is equivalent to a case where two control bits and one target bit are set in any combination from three quantum bits. For example, a CCZ gate in which the quantum bits q1 and q2 are set as the control bits and the qubit q0 is set as the target bit may be replaced with a CCZ gate in which the quantum bits q0 and q2 are set as the control bits and the quantum bit q1 is set as the target bit. Further, a CCZ gate in which the quantum bits q1 and q2 are set as the control bits and the quantum bit q0 is set as the target bit may be replaced with a CCZ gate in which the quantum bits q0 and q1 are set as the control bits and the quantum bit q2 is set as the target bit. Hereinafter, a CCZ gate in which the two control bits and the one target bit are set from the quantum bits q0, q1, and q2 may be referred to as a CCZ gate for the quantum bits q0, q1, and q2.
A block in which a figure, which is obtained by combining a semicircular arc and a straight line and is arranged on the line corresponding to each of the quantum bits q0, q1, and q2 of quantum circuit 50, is described indicates a measurement. The measurement determines the quantum bits q0, q1, and q2 to be in the state of “0” or “1”.
At the left end of the quantum circuit 50, the H gates for the respective quantum bits q0, q1, and q2 are arranged. As the first operation illustrated in the quantum circuit 50, the H gate is operated on each of the quantum bits q0, q1, and q2, and thus the quantum bits q0, q1, and q2 become the superposition state illustrated in Equation (3) (initialized). Further, in the quantum circuit 50, a combination of the X gate and the CCZ gate indicating a process of applying an oracle is arranged on the right side of the H gate indicating an initialization. Further, in the quantum circuit 50, a combination of the H gate, the X gate, and the CCZ gate indicating the amplification process is arranged on the right side of the combination of gates indicating the oracle. Further, in the quantum circuit 50, observations for the respective quantum bits q0, q1, and q2 are arranged on the right side of the combination of the gates indicating the amplification process. The observation illustrated in the quantum circuit 50 outputs a result obtained by performing the inversion amplification process of the Grover's algorithm once.
Note that the quantum computer 300 may include an apparatus that performs a gate operation on two or less quantum bits and may not include an apparatus that may perform the gate operation on three or more quantum bits. Therefore, a gate for three quantum bits such as a CCZ gate is converted into an equivalent circuit in which gates for two quantum bits or one quantum bit are combined.
Further, a symbol obtained by combining a circle and + and arranged on the lines corresponding to the respective quantum bits q0, q1, and q2 and a point arranged on the lines corresponding to the respective quantum bits q0, q1, and q2 and coupled to the symbol by lines indicate a CNOT gate. Note that the symbol obtained by combining the circle and the + is arranged on a line corresponding to a quantum bit serving as a target bit of the CNOT gate, and the point is arranged on a line corresponding to a quantum bit serving as a control bit of the CNOT gate. The CNOT gate indicates that the bit of the target bit is inverted when the control bit is “1”.
In this way, the CCZ gate may be converted into the equivalent circuit 51 in which the gates for the two quantum bits or the one quantum bit are combined. Therefore, when the quantum computer 300 executes the process indicated by the quantum circuit 50, it is conceivable that the control computer 100 may generate a quantum circuit in which each of the two CCZ gates included in the quantum circuit 50 is converted into the equivalent circuit 51. Then, the control computer 100 may instruct the quantum bit control apparatus 200 to control the quantum bit according to the generated quantum circuit.
Here, in the quantum computation by the quantum computer 300, an error may occur in each quantum bit due to noise included in the gate operation. Therefore, when the two CCZ gates included in the quantum circuit 50 are converted into the equivalent circuit 51, the error is likely to occur in a quantum bit having a large number of gate operations in the equivalent circuit 51. Therefore, in the second embodiment, when a plurality of CCZ gates are included in the quantum circuit, the control computer 100 converts some of the CCZ gates into the equivalent circuit 51 and converts the remaining CCZ gates into an equivalent circuit having an arrangement in which each element of the equivalent circuit 51 is symmetrically moved up and down.
Next, the functions of the control computer 100 will be described in detail.
The quantum computation control unit 130 controls the quantum computation. First, the quantum computation control unit 130 acquires a quantum circuit. For example, the quantum computation control unit 130 receives a request for the quantum computation by the quantum computer 300 and the quantum circuit from the terminal devices 31,32, . . . . Then, the quantum computation control unit 130 controls the quantum bit control apparatus 200 in accordance with the quantum circuit converted by the gate conversion unit 150.
The gate detection unit 140 detects a CCZ gate from the quantum circuit acquired by the quantum computation control unit 130. Further, when a CCZ gate is detected from the quantum circuit, the gate detection unit 140 detects a CCZ gate for the same combination of quantum bits as the detected CCZ gate.
The gate conversion unit 150 converts gates for three or more quantum bits included in the quantum circuit into an equivalent circuit. For example, the gate conversion unit 150 converts the CnNOT gate included in the quantum circuit into a combination of a CCX gate and a CNOT gate. Note that the CCX gate is a gate that inverts a bit of one target bit when two control bits are “1”. Further, the CnNOT gate is a gate that inverts a bit of one target bit when the n control bits are “1”. Further, the gate conversion unit 150 converts the CCX gate included in the quantum circuit into a combination of the CCZ gate and the H gate.
The gate conversion unit 150 converts the CCZ gate detected by the gate detection unit 140 into an equivalent circuit that is a combination of operations on one or two quantum bits. For example, the gate conversion unit 150 converts the CCZ gate detected by the gate detection unit 140 into the equivalent circuit 51. Further, the gate conversion unit 150 converts the CCZ gate for the same combination of quantum bits as the CCZ gate converted into the equivalent circuit into an equivalent circuit obtained by symmetrically moving the elements of the converted equivalent circuit. For example, the gate conversion unit 150 converts the CCZ gate into an equivalent circuit having an arrangement in which each of the elements of the equivalent circuit 51 is symmetrically moved up and down.
Note that lines coupling between each of the elements illustrated in
Next, the conversion information 121 stored in the storage unit 120 will be described in detail.
Next, a conversion process of the CCX gate by the gate conversion unit 150 will be described.
The equivalent circuit 61 is a quantum circuit equivalent to a CCX gate in which the quantum bits q1 and q2 are used as control bits and the quantum bit q0 is used as a target bit. In the equivalent circuit 61, an H gate for the quantum bit q0, CCZ gates for the quantum bits q0, q1, and q2, and an H gate for the quantum bit q0 are arranged side by side. The gate conversion unit 150 converts the CCZ gate included in the equivalent circuit 61 so as to convert the equivalent circuit 61 into the equivalent circuit 62,63.
The equivalent circuit 62 is obtained by converting the CCZ gate included in the equivalent circuit 61 into the equivalent circuit 51. Further, the equivalent circuit 63 is obtained by converting the CCZ gate included in the equivalent circuit 61 into an equivalent circuit having an arrangement in which each of the elements of the equivalent circuit 51 is symmetrically moved up and down.
In this way, the gate conversion unit 150 may convert the CCX gate included in the quantum circuit into an equivalent circuit including the CCZ gate. Then, the gate conversion unit 150 converts the CCZ gate into an equivalent circuit, and thus may suppress the gate operation from being biased to a specific quantum bit in the quantum circuit including the CCX gate.
Next, a conversion process of the CnNOT gate by the gate conversion unit 150 will be described.
The equivalent circuit 71 is a quantum circuit equivalent to a CSNOT gate in which the quantum bits q0, q1, q2, q3, and q4 are used as control bits and the quantum bit q5 is used as a target bit. The equivalent circuit 71 includes a CCX gate in which any two of the quantum bits q0 to q4, a0, a1, a2, and a3 are set as control bits, and any one of the quantum bits q0 to q4 and a0 to a3 is set as a target bit. Note that the quantum bits a0 to a3 are ancilla bits. The conversion of the CnNOT gate uses n−1 ancilla bits.
The equivalent circuit 71 includes two CCX gates in which the quantum bits q0 and q1 are set as control bits and the quantum bit a0 is set as a target bit. Further, the equivalent circuit 71 includes two CCX gates in which the quantum bits q2 and a0 are set as control bits and the quantum bit a1 is set as a target bit. Further, the equivalent circuit 71 includes two CCX gates in which the quantum bits q3 and al are set as control bits and the quantum bit a2 is set as a target bit. Further, the equivalent circuit 71 includes two CCX gates in which the quantum bits q4 and a2 are set as control bits and the quantum bit a3 is set as a target bit. Further, The equivalent circuit 71 includes one CNOT gate in which the quantum bit a3 is set as a control bit and the quantum bit q5 is set as a target bit.
The gate conversion unit 150 may convert the CCX gate included in the equivalent circuit 71 into an equivalent circuit in which the CCZ gate and the H gate are combined.
The gate conversion unit 150 converts one of the two CCZ gates for the combination of the same quantum bits included in the equivalent circuit 72 into the equivalent circuit 51, and converts the other into an equivalent circuit having an arrangement in which each of the elements of the equivalent circuit 51 is symmetrically moved up and down. Thus, the gate conversion unit 150 may suppress the gate operation from being biased to a specific quantum bit in the quantum circuit including the CnNOT gate.
Next, the procedure of a quantum circuit conversion process will be described in detail.
[Step S107] The gate detection unit 140 detects one CCZ gate for the combination of the same quantum bits as the CCZ gate detected in step S104 from the quantum circuit.
Note that the gate conversion unit 150 converts the CnNOT gate into a combination of the CCX gate and the CNOT gate, converts the CCX gate into a combination of the CCZ gate and the H gate, and then converts the CCZ gate. Thus, the gate converter 150 may suppress the gate operation from being biased to a specific quantum bit even when the quantum circuit includes the CCX gate or the CnNOT gate.
Next, the quantum circuit after conversion will be described.
When the quantum computation control unit 130 acquires the quantum circuit 50, the quantum computation control unit 130 controls the quantum bit control apparatus 200 according to the quantum circuit 50a converted by the gate conversion unit 150. The quantum bit control apparatus 200 performs gate operations on each of the quantum bits in an order indicated in the quantum circuit 50a. Accordingly, the bias of the gate operation to a specific quantum bit is suppressed compared to a case where the two CCZ gates included in the quantum circuit 50 are converted into the equivalent circuit 51.
Next, the influence of noise included in the gate operation on the quantum computation will be described.
A graph 82 illustrates a result of simulating the quantum computation by a quantum circuit in which one of the two CCZ gates included in the Grover's algorithm of three quantum bits is converted into the equivalent circuit 51 and the other is converted into the equivalent circuit 52, while changing the noise amount of the gate operation. The vertical axis, the horizontal axis, and the lines of the graph 82 have the same meanings as those of the graph 81.
The graphs 81 and 82 indicate that, when there is no noise of the gate operation, the output probability of the state corresponding to the correct answer data is the theoretical value 0.781 indicated in Equation (7). Further, the graphs 81 and 82 indicate that the output probability of the state corresponding to the correct answer data decreases as the noise amount of the gate operation increases. Here, in the graph 82, the amount of decrease in the output probability with respect to the increase in the amount of noise is smaller than that in the graph 81. For example, the graphs 81 and 82 indicate that the influence of noise may be reduced more when the quantum computation is performed with a quantum circuit in which one of the two CCZ gates is converted into the equivalent circuit 51 and the other is converted into the equivalent circuit 52 than when the quantum calculation is performed with a quantum circuit in which the two CCZ gates are converted into the equivalent circuit 51.
In this way, the gate conversion unit 150 converts one of the CCZ gates for the combination of the same quantum bits into the equivalent circuit 51 and converts the other into the equivalent circuit 52, and thus it is possible to reduce an error that occurs due to the influence of noise included in the gate operation being biased to a specific quantum bit. Therefore, the gate conversion unit 150 may reduce errors in the quantum computation.
Note that the CCZ gate may be converted into an equivalent circuit other than the equivalent circuits 51 and 52 illustrated in the above example. The gate conversion unit 150 may convert the CCZ gate into an equivalent circuit other than the equivalent circuits 51 and 52.
The equivalent circuit 54 is equivalent to the CCZ gate for the quantum bits q0, q1, and q2, and is an equivalent circuit having an arrangement in which each of the elements of the equivalent circuit 53 is symmetrically moved up and down. In the equivalent circuit 54, the arrangement of each of the elements of the equivalent circuit 53 is reversed with respect to the line corresponding to the quantum bit q1. The gate conversion unit 150 may convert one of the CCZ gates for the combination of the same quantum bits into the equivalent circuit 53 and convert the other into the equivalent circuit 54.
The graphs 83 and 84 indicate that the output probability of the state corresponding to the correct answer data decreases when the amount of noise of the gate operation increases, similarly to the graphs 81 and 82. Further, in the graph 84, the amount of decrease in the output probability with respect to the increase in the amount of noise is smaller than that in the graph 83. Therefore, the graphs 83 and 84 indicate that the influence of noise may be reduced by performing the quantum calculation using a quantum circuit in which one of the two CCZ gates is converted into the equivalent circuit 53 and the other is converted into the equivalent circuit 54, compared to performing the quantum calculation using a quantum circuit in which the two CCZ gates are converted into the equivalent circuit 53.
The equivalent circuit 56 is equivalent to the CCZ gate for the quantum bits q0, q1, and q2, and is an equivalent circuit having an arrangement in which each of the elements of the equivalent circuit 55 is symmetrically moved up and down. In the equivalent circuit 56, the arrangement of each of the elements of the equivalent circuit 55 is reversed with respect to the line corresponding to the quantum bit q1. The gate conversion unit 150 may convert one of the CCZ gates for the combination of the same quantum bits into the equivalent circuit 55 and convert the other into the equivalent circuit 56.
The graphs 85 and 86 indicate that the output probability of the state corresponding to the correct answer data decreases when the amount of noise of the gate operation increases, similarly to the graphs 81 and 82. Further, in the graph 86, the amount of decrease in the output probability with respect to the increase in the amount of noise is smaller than that in the graph 85. Therefore, the graphs 85 and 86 indicate that the influence of noise may be reduced more when the quantum computation is performed by a quantum circuit in which one of the two CCZ gates is converted into the equivalent circuit 55 and the other is converted into the equivalent circuit 56 than when the quantum computation is performed by a quantum circuit in which the two CCZ gates are converted into the equivalent circuit 55.
The graph 87 indicates that the output probability is higher when the quantum computation is executed by the quantum circuit in which the two CCZ gates are converted into two types of equivalent circuits than when the quantum computation is executed by the quantum circuit in which the two CCZ gates are converted into one type of equivalent circuit. Therefore, the gate conversion unit 150 may reduce errors in the quantum computation by converting two CCZ gates into two types of equivalent circuits.
Note that, although the Grover's algorithm for three quantum bits has been described above as an example, the Grover's algorithm can be executed for four or more quantum bits.
At the left end of the quantum circuit 70, H gates for the respective quantum bits q0 to q5 are arranged. As the first operation indicated by the quantum circuit 70, the H gate is operated on each of the quantum bits q0 to q5, and thus the quantum bits q0 to q5 become a superimposed state (being initialized). Further, in the quantum circuit 70, a combination of an X gate, an H gate, and a CnNOT gate indicating a process of applying an oracle is arranged on the right side of the H gate indicating an initialization. Further, in the quantum circuit 70, a combination of an H gate, an X gate, and a CnNOT gate indicating an amplification process is arranged on the right side of the combination of the gates indicating the oracle. Further, in the quantum circuit 70, observations for the respective quantum bits q0 to q5 are arranged on the right side of the combination of the gates indicating the amplification process. By the observation illustrated in the quantum circuit 70, a result of performing the inversion amplification process of the Grover's algorithm of six quantum bits once is output.
The gate conversion unit 150 converts the CnNOT gate included in the quantum circuit 70 into a combination of the CCX gate and the CNOT gate, and converts the CCX gate into a combination of the CCZ gate and the H gate. Then, the gate conversion unit 150 converts one of the two CCZ gates for the combination of the same quantum bits converted from the CnNOT gate into the equivalent circuit 51 and converts the other into the equivalent circuit 52.
The graph 91 indicates a result of simulating the quantum computation by a quantum circuit (one type of equivalent circuit) in which the two CCZ gates for the combination of the same quantum bits converted from CnNOT gates are converted into the equivalent circuit 51. Further, the graph 91 indicates a result of simulating the quantum computation by a quantum circuit (two types of equivalent circuits) in which one of the two CCZ gates for the combination of the same quantum bits converted from the CnNOT gate is converted into the equivalent circuit 51 and the other is converted into the equivalent circuit 52.
According to the graph 91, the amount of decrease in the output probability is smaller in the case where the quantum computation is executed by the quantum circuit in which the two CCZ gates are converted into the two types of equivalent circuits than in the case where the quantum computation is executed by the quantum circuit in which the two CCZ gates are converted into the one type of equivalent circuit. For example, the graph 91 indicates that the influence of noise may be reduced more in the case where quantum computation is executed by the quantum circuit in which the two CCZ gates are converted into the two types of equivalent circuits than in the case where the quantum computation is executed by the quantum circuit in which the two CCZ gates are converted into the one type of equivalent circuit.
In this way, the gate converter 150 may reduce errors that occur when the influence of noise included in the gate operation is biased to a specific quantum bit even in the quantum computation executed by the quantum circuit including the CnNOT gate.
The embodiments have been described above, but the configurations of the respective units described in the embodiments may be replaced with other configurations having the same functions. Further, any other component or process may be added. Furthermore, two or more arbitrary configurations (features) of the above-described embodiments may be combined.
The foregoing merely illustrates the principles of the disclosure. Further, since numerous modifications and changes will readily occur to those skilled in the art, it is not desired to limit the disclosure to the exact construction and application illustrated and described, and accordingly, all corresponding modifications and equivalents may be regarded to fall within the scope of the disclosure defined by the appended claims and equivalents thereto.
All examples and conditional language provided herein are intended for the pedagogical purposes of aiding the reader in understanding the invention and the concepts contributed by the inventor to further the art, and are not to be construed as limitations to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although one or more embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
This application is a continuation application of International Application PCT/JP2021/030184 filed on Aug. 18,2021 and designated the U.S., the entire contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/JP21/30184 | Aug 2021 | US |
Child | 18411087 | US |