This application claims priority under 35 U.S.C. § 119 to Korean Patent Application No. 10-2023-0125090 filed on Sep. 19, 2023, in the Korean Intellectual Property Office, the disclosures of which are incorporated by reference herein in their entireties.
Embodiments of the present disclosure described herein relate to an electronic device, and more particularly, relate to a method of efficiently mapping a quantum Fourier transform circuit.
The physical characteristics of a quantum computer are different from those of a conventional computer. Therefore, a logically organized quantum algorithm to run on a quantum computer should be converted into a quantum circuit based on the physical characteristics of the quantum computer. The process of converting a quantum algorithm into a quantum circuit is called quantum circuit mapping.
The computation times of gates of the quantum circuit may be different to each other. When quantum algorithms are optimized to complete operations in a shorter amount of time, the computation time of the mapped quantum circuit may also be shortened.
Embodiments of the present disclosure provide a method for efficiently mapping a quantum Fourier transform circuit with shorter computation time.
According to an embodiment of the present disclosure, a quantum circuit includes input qubit lines, auxiliary qubit lines, and an R(θ) gate layer connected to the input qubit lines and the auxiliary qubit lines, and the R(θ) gate layer performs a plurality of R(θ) gate operations at once based on input qubits of the input qubit lines and auxiliary qubits of the auxiliary qubit lines, and the quantum circuit outputs Fourier transform results with respect to the input qubits as output qubits, based on a result of the plurality of R(θ) gate operations, without additional R(θ) gate operations.
According to an embodiment, zero qubits may be received as the auxiliary qubits.
According to an embodiment, the R(θ) gate layer may perform the plurality of R(θ) gate operations on both the input qubits and the auxiliary qubits, respectively.
According to an embodiment, first auxiliary qubits among the auxiliary qubits may be used to convert a CRn gate of a quantum Fourier transform circuit to an Rn gate.
According to an embodiment, second auxiliary qubits among the auxiliary qubits may be used to move the Rn gate located on a specific qubit line among the input qubit lines and first auxiliary qubit lines to some of second auxiliary qubit lines.
According to an embodiment, the quantum circuit may further include a gate group that receives the input qubits of the input qubit lines, one qubit of the first auxiliary qubits of the first auxiliary qubit lines, and at least two second auxiliary qubits of at least two of the second auxiliary qubit lines, and outputs an operation result qubit corresponding to the one qubit.
According to an embodiment, the gate group may include: a first CNOT gate coupled to a qubit line of the one qubit and controlled by a qubit line of one second auxiliary qubit of the at least two second auxiliary qubits, a second CNOT gate connected to the qubit line of the one second auxiliary qubit and controlled by the qubit line of the one qubit, a third CNOT gate connected to a qubit line of another second auxiliary qubit of the at least two second auxiliary qubits and controlled by the qubit line of the one second auxiliary qubit, a first Mz gate connected to the one qubit, an Mx gate that operates based on a measurement result of the first Mz gate and is connected to the another second auxiliary qubit, a second Mz gate that operates based on the measurement result of the first Mz gate and is connected to the another second auxiliary qubit, a first Z gate that operates based on a measurement result of the Mx gate and is connected to the one second auxiliary qubit, and a second Z gate that operates based on a measurement result of the second Mz gate and is connected to the one second auxiliary qubit.
According to an embodiment, the gate group, a first Hadamard gate connected to the one second auxiliary qubit, an R(θ3) gate of the gate layer connected to the one second auxiliary qubit, a second Hadamard gate connected to the another second auxiliary qubit, and an R(θ2) gate of the gate layer connected to the another second auxiliary qubit may correspond to an R(θ3) gate connected to the one qubit.
According to an embodiment, the gate group may include a first CNOT gate coupled to a qubit line of the one qubit and controlled by a qubit line of one second auxiliary qubit of the at least two second auxiliary qubits, a second CNOT gate connected to the qubit line of the one second auxiliary qubit and controlled by the qubit line of the one qubit, a third CNOT gate connected to a qubit line of another second auxiliary qubit of the at least two second auxiliary qubits and controlled by the qubit line of the one second auxiliary qubit, a fourth CNOT gate connected to a qubit line of the other second auxiliary qubit of the at least two second auxiliary qubits and controlled by the qubit line of the one second auxiliary qubit, a first Mz gate connected to the one qubit, a first Mx gate that operates based on a measurement result of the first Mz gate and is connected to the another second auxiliary qubit, a second Mx gate that operates based on the measurement result of the first Mz gate and is connected to the other second auxiliary qubit, a first Z gate that operates based on a measurement result of the first Mx gate and is connected to the one second auxiliary qubit, a second Z gate that operates based on a measurement result of the second Mx gate and is connected to the one second auxiliary qubit, a second Mz gate that operates based on the measurement result of the first Mz gate and is connected to the another second auxiliary qubit, a third Mx gate that operates based on the measurement result of the second Mz gate and is connected to the other second auxiliary qubit, a third Z gate that operates based on a measurement result of the third Mx gate and is connected to the one second auxiliary qubit, a third Mz gate that operates based on the measurement result of the second Mz gate and is connected to the other second auxiliary qubit, and a fourth Z gate that operates based on the measurement result of the second Mz gate and is connected to the one second auxiliary qubit.
According to an embodiment, the gate group, a first Hadamard gate connected to the one second auxiliary qubit, an R(θ4) gate of the gate layer connected to the one second auxiliary qubit, a second Hadamard gate connected to the another second auxiliary qubit, an R(θ3) gate of the gate layer connected to the another second auxiliary qubit, a third Hadamard gate connected to the other second auxiliary qubit, and an R(θ2) gate of the gate layer connected to the other second auxiliary qubit may correspond to an R(θ4) gate connected to the one qubit.
According to an embodiment, the gate group, a first Hadamard gate connected to the one second auxiliary qubit, an R(θ34) gate of the gate layer connected to the one second auxiliary qubit, a second Hadamard gate connected to the another second auxiliary qubit, an R(θ23) gate of the gate layer connected to the another second auxiliary qubit, a third Hadamard gate connected to the other second auxiliary qubit, and an R(θ12) gate of the gate group connected to the other second auxiliary qubit may correspond to an R(θ34) gate connected to the one qubit.
According to an embodiment of the present disclosure, a method of mapping a quantum Fourier transform circuit includes replacing first circuits with second circuits by adding first auxiliary qubits to the quantum Fourier transform circuit, integrating R(θ) gates into one layer by adding second auxiliary qubits to the replaced quantum Fourier transform circuit, and performing a quantum circuit transformation, and the integrating of into the one layer includes generating an R(θ) gate layer that performs a plurality of R(θ) gate operations at once based input qubits of input qubit lines and auxiliary qubits of second auxiliary qubit lines.
According to an embodiment, a depth of the R(θ) gate of the quantum Fourier transform circuit in which the quantum circuit transformation is performed may be 1.
According to an embodiment, the method may further include receiving zero qubits as the first auxiliary qubits.
According to an embodiment, the method may further include receiving zero qubits as the second auxiliary qubits.
According to an embodiment, the method may further include outputting operation results of output qubits and the first auxiliary qubits through operations of the quantum Fourier transform circuit in which the quantum circuit transformation is performed.
According to an embodiment, the method may further include exhausting the second auxiliary qubits in operations of the quantum Fourier transform circuit in which the quantum circuit transformation is performed.
According to an embodiment, the method may further include performing the plurality of R(θ) gate operations on all of the input qubits, the first auxiliary qubits, and the second auxiliary qubits, respectively, using the R(θ) gate layer.
According to an embodiment, the first circuits may include CRn gates, and the second circuits may include Rn gates and CNOT gates.
The above and other objects and features of the present disclosure will become apparent by describing in detail embodiments thereof with reference to the accompanying drawings.
Hereinafter, embodiments of the present disclosure will be described in detail and clearly to such an extent that an ordinary one in the art easily implements the present disclosure.
By way of example, quantum circuit data generated and managed on a digital computer before being mapped into an actual quantum circuit may be called a ‘quantum algorithm’. After being mapped into an actual quantum circuit, the quantum circuit may be called a ‘quantum circuit’. However, in embodiments of the present disclosure, a strict distinction between the ‘quantum algorithm’ and the ‘quantum circuit’ may be unnecessary. For brevity of description, below, the ‘quantum algorithm’ may refer to the ‘quantum algorithm’ or the ‘quantum circuit’, and as in the above description, the ‘quantum circuit’ may refer to the ‘quantum algorithm’ or the ‘quantum circuit’.
In addition, the term ‘circuit’ may be used to distinguish the components of a quantum circuit from each other, but the term ‘circuit’ will also refer to the components of the quantum circuit (or the quantum algorithm).
The first quantum circuit QC1 may include a first Hadamard gate HG01 connected to a qubit line of the first qubit |Ψ1> as a Hadamard gate ‘H’.
Subsequent to the first Hadamard gate HG01, the first quantum circuit QC1 may further include a first partial quantum circuit PT1 connected to qubit lines of the first qubit |Ψ1>, the second qubit |Ψ222 , the third qubit |Ψ3>, and the fourth qubit |Ψ4>. The first partial quantum circuit PT1 may include a CR2 gate (a controlled gate filled with R2) that is controlled by the qubit line of the second qubit |Ψ2>, a CR3 gate (a controlled gate filled with R3) that is controlled by the qubit line of the third qubit |Ψ3>, and a CR4 gate (a controlled gate filled with R4) that is controlled by the qubit line of the fourth qubit |Ψ4>.
Subsequent to the first partial quantum circuit PT1, the first quantum circuit QC1 may further include a second Hadamard gate HG02 connected to the qubit line of the second qubit |Ψ2>.
Subsequent to the second Hadamard gate HG02, the first quantum circuit QC1 may further include a second partial quantum circuit PT2 connected to the qubit lines of the second qubit |Ψ2>, the third qubit |Ψ3>, and the fourth qubit |Ψ4>. The second partial quantum circuit PT2 may include the CR2 gate (the controlled gate filled with R2) that is controlled by the qubit line of the third qubit |Ψ3>, and the CR3 gate (the controlled gate filled with R3) that is controlled by the qubit line of the fourth qubit |Ψ4>.
Subsequent to the second partial quantum circuit PT2, the first quantum circuit QC1 may further include a third Hadamard gate HG03 connected to the qubit line of the third qubit |Ψ3>.
A third partial quantum circuit PT3 may include the CR2 gate (the controlled gate filled with R2) that is controlled by the qubit line of the fourth qubit |Ψ4>.
Subsequent to the third partial quantum circuit PT3, the first quantum circuit QC1 may further include a fourth Hadamard gate HG04 connected to the qubit line of the fourth qubit |Ψ4>.
The third circuit CKT3 may include an Rn+1 gate connected to the first qubit line QL1, an Rn+1 gate connected to the second qubit line QL2, a CNOT gate (a controlled gate connected to ⊕) connected to the second qubit line QL2 and controlled by the first qubit line QL1 subsequent to the Rn+1 gate of the first qubit line QL1 and the Rn+1 gate of the second qubit line QL2, an Rn+1† gate connected to the second qubit line QL2 subsequent to the CNOT gate (the controlled gate connected to ⊕), and a CNOT gate (the controlled gate connected to ⊕) connected to the second qubit line QL2 and controlled by first qubit line QL1 subsequent to the Rn+1† gate.
The fourth circuit CKT4 may include an R(θn+1) gate connected to the first qubit line QL1, an R(θn+1) gate connected to the second qubit line QL2, a CNOT gate (the controlled gate connected to ⊕) connected to the second qubit line QL2 and controlled by the first qubit line QL1 subsequent to the R(θn+1) gate of the first qubit line QL1 and the R(θn+1) gate of the second qubit line QL2, an R(−θn+1) gate connected to the second qubit line QL2 subsequent to the CNOT gate (the controlled gate connected to ⊕), and a CNOT gate (the controlled gate connected to ⊕) connected to the second qubit line QL2 and controlled by the first qubit line QL1 subsequent to the R(−θn+1) gate.
As illustrated in the third circuit CKT3 and the fourth circuit CKT4, the Rn+1 gate and the R(θn+1) gate (or Rz(θn+1) gate) may be equivalent circuits to each other. In addition, the. ** gate and R(−θn+1) gate (or Rz(−θn+1) gate) may be equivalent circuits to each other.
The first partial quantum circuit PT1 may include an R(θ3) gate connected to the qubit line of the second qubit |Ψ2>, an R(θ34) gate connected to the qubit line of the third qubit |Ψ3>, and an R(θ345) gate connected to the qubit line of the fourth qubit |Ψ4>. The ‘θ34’ may be ‘θ3+θ4’. The ‘θ345’ may be ‘θ3+θ4+θ5’.
The first partial quantum circuit PT1 may further include a CNOT gate (the controlled gate connected to ⊕) connected to ⊕) the qubit line of the second qubit |Ψ2> and controlled by the qubit line of the first qubit |Ψ1>, a CNOT gate (the controlled gate connected to ⊕) connected to ⊕) the qubit line of the third qubit |Ψ3> and controlled by the qubit line of the first qubit |Ψ1>, and a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the fourth qubit |Ψ4> and controlled by the qubit line of the first qubit |Ψ1>.
The first partial quantum circuit PT1 may further include an R(θ345) gate connected to the qubit line of the first qubit |Ψ1>, an R(−θ3) gate connected to the qubit line of the second qubit |Ψ2>, an R(−θ4) gate connected to the qubit line of the third qubit |Ψ3>, and an R(−θ5) gate connected to the qubit line of the fourth qubit |Ψ4>.
The first partial quantum circuit PT1 may further include a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the second qubit |Ψ2> and controlled by the qubit line of the first qubit |Ψ1>, a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the third qubit |Ψ3> and controlled by the qubit line of the first qubit |Ψ1>, and a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the fourth qubit |Ψ4> and controlled by the qubit line of the first qubit |Ψ1>.
The second partial quantum circuit PT2 may include a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the third qubit |Ψ3> and controlled by the qubit line of the second qubit |Ψ2>, and a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the fourth qubit |Ψ4> and controlled by the qubit line of the second qubit |Ψ2>.
The second partial quantum circuit PT2 may further include an R(θ34) gate connected to the qubit line of the second qubit |Ψ2>, an R(−θ3) gate connected to the qubit line of the third qubit |Ψ3>, and an R(−θ4) gate connected to the qubit line of the fourth qubit |Ψ4>.
The second partial quantum circuit PT2 may further include a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the third qubit |Ψ3> and controlled by the qubit line of the second qubit |Ψ2>, and a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the fourth qubit |Ψ4> and controlled by the qubit line of the second qubit |Ψ2>.
The third partial quantum circuit PT3 may include a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the fourth qubit |Ψ4> and controlled by the qubit line of the third qubit |Ψ3>.
The third partial quantum circuit PT3 may further include an R(θ3) gate connected to the qubit line of the third qubit |Ψ3>, and an R(−θ3) gate connected to the qubit line of the fourth qubit |Ψ4>.
The third partial quantum circuit PT3 may include a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the fourth qubit |Ψ4> and controlled by the qubit line of the third qubit |13>.
In the second quantum circuit QC2, a depth of the R(θn+1) gates (or (Rz(θn+1) gates) may refer to the maximum number of the R(θn+1) gates (or (Rz(θn+1) gates) through which each of the input qubits (e.g., the first qubit |Ψ1>, the second qubit |Ψ2>, the third qubit |Ψ3>, and the fourth qubit |Ψ4>) passes until the each of the input qubits is output to a corresponding output qubit among the output qubits (e.g., the fifth qubit |Ψ5>, the sixth qubit |Ψ6>, the seventh qubit |Ψ7>, and the eighth qubit |Ψ8>). In the second quantum circuit QC2, the depth of R(θn+1) gates (or (Rz(θn+1) gates)) may be ‘4’.
The R(θn+1) gate (or Rz(θn+1) gate) among quantum gates may have a relatively long computation time. To reduce the computation time of the R(θn+1) gate (or Rz(θn+1) gate), a method of approximating the R(θn+1) gate (or Rz(θn+1) gate) may be used. For example, the R(θ4) gate may be approximated as Rz(π/8), for example with gates including ‘HTHTSHTHTSHTSHTHTHTHTHTSHTSHTSHTHTSHTSHTSHTSHTHTSHTS HTSHTHTHTSHTSHTSHTHTHTHTHTHTSHTSHTHTHTSHTSHTSHTSHTSHT SHTSHTSHTHTHTHTSHTSHTHTSHTSHTHTHTHTSHTSHTSHTHTSHTSHTH THTHTHTSHTHTSHTHTHTSHTSHTSHTSHTHTHTSHTHTSHTSHTHTHTHTS HTSHTHTSHTSHTHTSHTSHTSHTSHTHTSHTHTHTSHTH’. Likewise, the R(θn+1) gate (or Rz(θn+1) gate) requires the operations of multiple gates. Therefore, to reduce the calculation time of the quantum Fourier transform circuit, it is necessary to reduce the depth of the R(θn+1) gate (or Rz(θn+1) gate).
The sixth circuit CKT6 may include a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the auxiliary qubit AQ and controlled by the first qubit line QL1, and a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the auxiliary qubit AQ and controlled by the second qubit line QL2. The sixth circuit CKT6 may further include an Rn+1 gate connected to the first qubit line QL1, an Rn+1 gate connected to the second qubit line QL2, and a gate connected to the auxiliary qubit line. The sixth circuit CKT6 may include a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the auxiliary qubit AQ and controlled by the first qubit line QL1, and a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the auxiliary qubit AQ and controlled by the second qubit line QL2.
In the equivalent circuits of
In operation S120, as illustrated in
In operation S130, as illustrated in
In operation S140, as illustrated in
By performing the method of
A first auxiliary qubit AQ01, a second auxiliary qubit AQ02, and a third auxiliary qubit AQ03, which are zero qubits |0>, may be used to replace each of the CRn gates with two Rn+1 gates (or the R(θn+1) gates or the Rz(θn+1) gates) of depth ‘1’ and one gate Rn+1† (or the R(−θn+1) gate or the Rz(−θn+1) gate).
The third quantum circuit QC3 may include the first Hadamard gate HG01 connected to the qubit line of the first qubit |Ψ1> as the Hadamard gate ‘H’.
Subsequent to the first Hadamard gate HG01, the third quantum circuit QC3 may further include the first partial quantum circuit PT1 connected to the qubit lines of the first qubit |Ψ1>, the second qubit |Ψ2>, the third qubit |Ψ3>, and the fourth qubit |Ψ4>.
Subsequent to the first partial quantum circuit PT1, the third quantum circuit QC3 may further include the second Hadamard gate HG02 connected to the qubit line of the second qubit |Ψ2>.
Subsequent to the second Hadamard gate HG02, the third quantum circuit QC3 may further include the second partial quantum circuit PT2 connected to the qubit lines of the second qubit |Ψ2>, the third qubit |Ψ3>, and the fourth qubit |Ψ4>.
Subsequent to the second partial quantum circuit PT2, the third quantum circuit QC3 may further include the third Hadamard gate HG03 connected to the qubit line of the third qubit |Ψ3>.
Subsequent to the third Hadamard gate HG03, the third quantum circuit QC3 may further include the third partial quantum circuit PT3 connected to the qubit lines of the third qubit |Ψ3> and the fourth qubit |Ψ4>.
Subsequent to the third partial quantum circuit PT3, the third quantum circuit QC3 may further include the fourth Hadamard gate HG04 connected to the qubit line of the fourth qubit |Ψ4>.
The CR3 gate (the controlled gate filled with R3) of the first partial quantum circuit PT1 may be replaced with a fifth CNOT gate CN05 connected to the qubit line of the second auxiliary qubit AQ02 and controlled by the qubit line of the first qubit |Ψ1>, a sixth CNOT gate CN06 connected to the qubit line of the second auxiliary qubit AQ02 and controlled by the qubit line of the third qubit |Ψ3> subsequent to the fifth CNOT gate CN05, an R(θ4) gate G04 connected to the qubit line of the first qubit |Ψ1> subsequent to the sixth CNOT gate CN06, an R(θ4) gate G05 connected to the qubit line of the third qubit |Ψ3> in parallel with the R(θ4) gate G04 and subsequent to the sixth CNOT gate CN06, an R(−θ4) gate G06 connected to the qubit line of the second auxiliary qubit AQ02 in parallel with the R(θ4) gate G04 and the R(θ4) gate G05 and subsequent to the sixth CNOT gate CN06, a seventh CNOT gate CN07 connected to the qubit line of the second auxiliary qubit AQ02 and controlled by the qubit line of the first qubit |Ψ1> subsequent to the R(θ4) gate G05 and the R(−θ4) gate G06, and an eighth CNOT gate CN08 connected to the qubit line of the second auxiliary qubit AQ02 and controlled by the qubit line of the third qubit |Ψ3> subsequent to the seventh CNOT gate CN07.
The CR4 gate (the controlled gate filled with R4) of the first partial quantum circuit PT1 may be replaced with a ninth CNOT gate CN09 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the first qubit |Ψ1>, a tenth CNOT gate CN10 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the fourth qubit |Ψ4> subsequent to the ninth CNOT gate CN09, an R(θ5) gate G07 connected to the qubit line of the first qubit |Ψ1> subsequent to the tenth CNOT gate CN10, an R(θ5) gate G08 connected to the qubit line of the fourth qubit |Ψ4> in parallel with the R(θ5) gate G07 and subsequent to the tenth CNOT gate CN10, an R(−θ5) gate G09 connected to the qubit line of the third auxiliary qubit AQ03 in parallel with the R(θ5) gate G07 and the R(θ5) gate G08 and subsequent to the tenth CNOT gate CN10, an eleventh CNOT gate CN11 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the first qubit |Ψ1> subsequent to the R(θ5) gate G07, the R(θ5) gate G08, and the R(−θ5) gate G09, and a twelfth CNOT gate CN12 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the fourth qubit |Ψ4> subsequent to the eleventh CNOT gate CN11.
Illustratively, the first partial quantum circuit PT1 may output operation results of the first qubit |Ψ1>, the second qubit |Ψ2>, the third qubit |Ψ3>, and the fourth qubit |Ψ4> as a first intermediate qubit IQ1, a second intermediate qubit IQ2, a third intermediate qubit IQ3, and a fourth intermediate qubit IQ4, respectively.
The CR3 gate (the controlled gate filled with R3) of the second partial quantum circuit PT2 may be replaced with a seventeenth CNOT gate CN17 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the second intermediate qubit IQ2, an eighteenth CNOT gate CN18 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the fourth intermediate qubit IQ4 subsequent to the seventeenth CNOT gate CN17, an R(θ4) gate G13 connected to the qubit line of the second intermediate qubit IQ2 subsequent to the eighteenth CNOT gate CN18, an R(θ4) gate G14 connected to the qubit line of the fourth intermediate qubit IQ4 in parallel with the R(θ4) gate G13 and subsequent to the eighteenth CNOT gate CN18, an R(−θ4) gate G15 connected to the qubit line of the third auxiliary qubit AQ03 in parallel with the R(θ4) gate G13 and the R(θ4) gate G14 and subsequent to the eighteenth CNOT gate CN18, a nineteenth CNOT gate CN19 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the second intermediate qubit IQ2 subsequent to the R(θ4) gate G13, the R(θ4) gate G14, and the R(−θ4) gate G15, and a twentieth CNOT gate CN20 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the fourth intermediate qubit IQ4 subsequent to the nineteenth CNOT gate CN19.
The third partial quantum circuit PT3 may be replaced with a twenty first CNOT gate CN21 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the third intermediate qubit IQ3, a twenty-second CNOT gate CN22 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the fourth intermediate qubit IQ4 subsequent to the twenty first CNOT gate CN21, an R(θ3) gate G16 connected to the qubit line of the third intermediate qubit IQ3 subsequent to the twenty-second CNOT gate CN22, an R(θ3) gate G17 connected to the qubit line of the fourth intermediate qubit IQ4 in parallel with the R(θ3) gate G16 and subsequent to the twenty-second CNOT gate CN22, an R(−θ3) gate G18 connected to the qubit line of the third auxiliary qubit AQ03 in parallel with the R(θ3) gate G16 and the R(θ3) gate G17 and subsequent to the twenty-second CNOT gate CN22, a twenty-third CNOT gate CN23 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the third intermediate qubit IQ3 subsequent to the R(θ3) gate G16, the R(θ3) gate G17, and the R(−θ3) gate G18, and a twenty-fourth CNOT gate CN24 connected to the qubit line of the third auxiliary qubit AQ03 and controlled by the qubit line of the fourth intermediate qubit IQ4 subsequent to the twenty-third CNOT gate CN23.
The ninth CNOT gate CN09 and the tenth CNOT gate CN10 of the first partial quantum circuit PT1 of
The R(θ3) gate G01 of the CR2 gate (the controlled gate filled with R2) of the first partial quantum circuit PT1 in
The R(θ4) gate G05 of the CR3 gate (the controlled gate filled with R3) of the first partial quantum circuit PT1 of
The R(θ5) gate G08 of the CR4 gate (the controlled gate filled with R4) of the first partial quantum circuit PT1 of
The third CNOT gate CN03 and the fourth CNOT gate CN04 of the first partial quantum circuit PT1 in
The seventh CNOT gate CN07 and the eighth CNOT gate CN08 of the first partial quantum circuit PT1 in
The seventeenth CNOT gate CN17 and the eighteenth CNOT gate CN18 of the second partial quantum circuit PT2 of
The R(θ3) gate G10 of the CR2 gate (the controlled gate filled with R2) of the second partial quantum circuit PT2 of
The fifteenth CNOT gate CN15 and the sixteenth CNOT gate CN16 of the second partial quantum circuit PT2 in
As described with reference to
The qubit line of the input qubit |Ψ> may be connected to a first gate group GG1. The qubit line of one zero qubit |0> may be connected to the first gate group GG1 through the Hadamard gate ‘H’ and R(θ2) gate. For example, the output of the R(θ2) gate may be |R2>. The qubit line of another one zero qubit |0> may be connected to the first gate group GG1 through the Hadamard gate ‘H’ and R(θ3) gate. For example, the output of the R(θ3) gate may be |R3>.
The first gate group GG1 may include a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of the input qubit |Ψ> and controlled by the qubit line of |R3>, a CNOT gate (the controlled gate connected to connected to the qubit line of |R3> and controlled by the qubit line of the input qubit |Ψ>, and a CNOT gate (the controlled gate connected to ⊕) connected to the qubit line of |R2> and controlled by the qubit line of |R3>.
The first gate group GG1 may include an Mz gate connected to the qubit line of the input qubit |Ψ> subsequent to the CNOT gates, and a first gate block B1 and a second gate block B2 that are connected to the qubit line of |R2> and the qubit line of |R3> and controlled by a measurement result of the Mz gate subsequent to the CNOT gates.
The first gate block B1 may include an Mx gate connected to the qubit line of |R2>, and a Z gate that is connected to the qubit line of |R3> and operates depending on a measurement result of the Mx gate.
The second gate block B2 may include an M2 gate connected to the qubit line of |R2>, and a Z gate that is connected to the qubit line of |R3> subsequent to the Z gate of the first gate block B1 and operates depending on a measurement result of the Mz gate of the second gate block B2.
The output of the Z gate of the second gate block B2 may be an output qubit R(θ3)Ψ>. Illustratively, as with the R(θ3) gate, the equivalent circuit of the R(θ3) gate internally exhausts the qubit lines (or auxiliary qubits) of the two auxiliary qubits, and may be connected to the qubit line of one output qubit R(θ3)Ψ>.
According to the equivalent circuit of the R(θ3) gate in
The qubit line of the input qubit |Ψ> may be connected to a second gate group GG2. The qubit line of one zero qubit |0> may be connected to the second gate group GG2 through the Hadamard gate ‘H’ and R(θ3) gate. For example, the output of the R(θ3) gate may be |R3>. The qubit line of another one zero qubit |0> may be connected to the second gate group GG2 through the Hadamard gate ‘H’ and R(θ2) gate. For example, the output of the R(θ2) gate may be |R2>. The qubit line of another one zero qubit |0> may be connected to the second gate group GG2 through the Hadamard gate ‘H’ and R(θ4) gate. For example, the output of the R(θ4) gate may be |R4>.
The second gate group GG2 may include a CNOT gate (the controlled gate connected to
The second gate group GG2 may include an Mz gate connected to the qubit line of the input qubit |Ψ> subsequent to the CNOT gates, and a third gate block B3 and a fourth gate block B4 that are connected to the qubit line of |R3>, the qubit line of |R2>, and the qubit line of |R4> and are controlled by a measurement result of the Mz gate subsequent to the CNOT gates.
The third gate block B3 may include an Mx gate connected to the qubit line of |R3>, an Mx gate connected to the qubit line of |R2>, a Z gate that is connected to the qubit line of |R4> and operates depending on a measurement result of the Mx gate of the third gate block B3 connected to the qubit line of |R3>, and a Z gate that is connected to the qubit line of |R4> subsequent to the Z gate of the third gate block B3 and operates depending on a measurement result of the Mx gate of the third gate block B3 connected to the qubit line of |R2>.
The fourth gate block B4 may include an Mz gate connected to the qubit line of |R3>, and a fifth gate block B5 and a sixth gate block B6 that are connected to the qubit line of |R2> and the qubit line of |R4> subsequent to the third gate block B3.
The fifth gate block B5 may include an Mx gate connected to the qubit line of |R2>, and a Z gate that is connected to the qubit line of |R4> and operates depending on a measurement result of the Mx gate of the fifth gate block B5.
The sixth gate block B6 may include an Mz gate connected to the qubit line of |R2>, and a Z gate that is connected to the qubit line of |R4> subsequent to the Z gate of the fifth gate block B5 and operates depending on a measurement result of the Mz gate of the sixth gate block B6.
The output of the Z gate of the sixth gate block B6 may be an output qubit R(θ4)|Ψ>. Illustratively, as with the R(θ4) gate, the equivalent circuit of the R(θ4) gate internally exhausts the qubit lines (or auxiliary qubits) of the three auxiliary qubits, and may be connected to the qubit line of one output qubit R(θ4)|Ψ>.
According to the equivalent circuit of the R(θ4) gate in
The qubit line of the input qubit |Ψ> may be connected to the second gate group GG2. The qubit line of one zero qubit |0> may be connected to the second gate group GG2 through the Hadamard gate ‘H’ and R(θ23) gate. For example, the output of the R(θ23) gate may be |R2R3>. The qubit line of another one zero qubit |0> may be connected to the second gate group GG2 through the Hadamard gate ‘H’ and the R(θ12) gate. For example, the output of the R(θ12) gate may be |R1R2>. The qubit line of another one zero qubit |0> may be connected to the second gate group GG2 through the Hadamard gate ‘H’ and the R(θ34) gate. For example, the output of the R(θ34) gate may be |R3R4>.
The second gate group GG2 may be configured the same as the second gate group GG2 described with reference to
The output of the Z gate of the sixth gate block B6 may be the output qubit R(θ34)|Ψ>. Illustratively, as with the R(θ34) gate, the equivalent circuit of the R(θ34) gate internally exhausts the qubit lines (or auxiliary qubits) of the three auxiliary qubits, and may be connected to the qubit line of one output qubit R(θ34)|Ψ>.
According to the equivalent circuit of the R(θ34) gate in
By way of example, ‘−θ’ is not described in detail, but it will be understood by those skilled in the art that the description of ‘0’ may be equally applied to ‘−θ’. For example, when the replacement target is the R(−θ3) gate, the R(−θ2) gate and the R(−θ3) gate may be provided to the qubit lines of the auxiliary qubits (refer to
When the replacement target is the R(−θ4) gate, the R(−θ3) gate, the R(−θ2) gate, and the R(−θ4) gate may be provided to the qubit lines of the auxiliary qubits (refer to
When the replacement of
The first qubit |Ψ1>, the second qubit |Ψ2>, the third qubit |Ψ3>, and the fourth qubit |Ψ4> may be qubits on which the Fourier transform is performed. The first auxiliary qubit AQ01, the second auxiliary qubit AQ02, and the third auxiliary qubit AQ03 may be auxiliary qubits (e.g., auxiliary qubits of a first type) used to convert the CRn gates to the R(θn+1) gates as described with reference to
The fourth auxiliary qubit AQ04, the fifth auxiliary qubit AQ05, the sixth auxiliary qubit AQ06, the seventh auxiliary qubit AQ07, the eighth auxiliary qubit AQ08, the ninth auxiliary qubit AQ09, the tenth auxiliary qubit AQ10, the eleventh auxiliary qubit AQ11, the twelfth auxiliary qubit AQ12, the thirteenth auxiliary qubit AQ13, the fourteenth auxiliary qubit AQ14, and the fifteenth auxiliary qubit AQ15 may be auxiliary qubits (e.g., auxiliary qubits of a second type) used to move some of the R(θn+1) gates to the fourth auxiliary qubit AQ04, the fifth auxiliary qubit AQ05, the sixth auxiliary qubit AQ06, the seventh auxiliary qubit AQ07, the eighth auxiliary qubit AQ08, the ninth auxiliary qubit AQ09, the tenth auxiliary qubit AQ10, the eleventh auxiliary qubit AQ11, the twelfth auxiliary qubit AQ12, the thirteenth auxiliary qubit AQ13, the fourteenth auxiliary qubit AQ14, and the fifteenth auxiliary qubit AQ15, as described with reference to
The R(θn+1) gates of
The 4b quantum circuit QC4b may not have an R(θ) gate. The 4b quantum circuit QC4b may include the second gate group GG2 of a twenty-second gate G22, the first gate group GG1 of a twelfth gate G12, the second gate group GG2 of a fifteenth gate G15, the first gate group GG1 of a sixteenth gate G16, and the first gate group GG1 of an eighteenth gate G18.
The 4a quantum circuit QC4a and the 4b quantum circuit QC4b may be quantum Fourier transform circuits.
The gate layer RL may complete the operations of all CRn gates of the Fourier transform of the first quantum circuit QC1 of
In operation S220, the digital computer may integrate R(θ) gates into one gate layer RL. In operation S230, the digital computer may produce the quantum Fourier transform circuit by performing a quantum circuit transformation.
The computing device 100 may perform quantum circuit mapping based on a fault-tolerant constraint (FTC), quantum algorithm information (QA) (or quantum protocol information), and quantum chip information (QCI), thereby generating a quantum circuit QC and an initial qubit mapping IM. The initial qubit mapping IM may include qubit positions on a quantum chip 210 and mapping information of qubits for an operation. The computing device 100 may include a constraint storage unit 110 and a circuit mapping unit 120.
The constraint storage unit 110 is configured to store the fault-tolerance constraint (FTC). For example, the fault-tolerance constraint (FTC) may be transferred to the constraint storage unit 110 of the computing device 100 by a user or by an external computing device. The fault-tolerant constraint (FTC) may support the circuit mapping unit 120 to map a fault-tolerant quantum circuit.
The circuit mapping unit 120 may generate the quantum circuit QC and the initial qubit mapping IM based on the fault-tolerant constraint (FTC), the quantum algorithm information (QA), and the quantum chip information (QCI).
The quantum computing device 200 may perform quantum computing. The quantum computing device 200 may be implemented based on semiconductors such as superconductors, quantum dots, etc. The quantum computing device 200 may include the quantum chip 210 including a plurality of qubits. For example, the quantum chip 210 may include the 4a quantum circuit QC4a and the 4b quantum circuit QC4b.
In the above embodiments, components according to the present disclosure are described by using the terms “first”, “second”, “third”, and the like. However, the terms “first”, “second”, “third”, and the like may be used to distinguish components from each other and do not limit the present disclosure. For example, the terms “first”, “second”, “third”, and the like do not involve an order or a numerical meaning of any form.
In the above embodiments, components according to embodiments of the inventive concept are described by using blocks. The blocks may be implemented with various hardware devices, such as an integrated circuit, an application specific IC (ASIC), a field programmable gate array (FPGA), and a complex programmable logic device (CPLD), firmware driven in hardware devices, software such as an application, or a combination of a hardware device and software. In addition, the blocks may include circuits composed of semiconductor devices in the IC or circuits registered as an IP (Intellectual Property).
According to an embodiment of the present disclosure, the quantum Fourier transform circuit may be implemented with an Rn gate having a depth of 1. Accordingly, a quantum Fourier transform circuit with a shorter computation time and a method for mapping the quantum Fourier transform circuit are provided.
The above descriptions are specific embodiments for carrying out the present disclosure. Embodiments in which a design is changed simply or which are easily changed may be included in the present disclosure as well as an embodiment described above. In addition, technologies that are easily changed and implemented by using the above embodiments may be included in the present disclosure. Therefore, the scope of the present disclosure should not be limited to the above-described embodiments and should be defined by not only the claims to be described later, but also those equivalent to the claims of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
10-2023-0125090 | Sep 2023 | KR | national |