Information processing device, quantum circuit generation method, and quantum circuit generation program
The information processing device optimizes quantum circuit generation by diagonalizing matrices based on qubit connection constraints, resulting in efficient quantum circuits with fewer gates and reduced error probability.
Patent Information
- Application Number
- JP2023542136
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-08-19
- Publication Date
- 2024-10-24
- Estimated Expiration
- 2041-08-19
AI Technical Summary
Conventional techniques for generating quantum circuits face challenges in efficiently connecting qubits due to physical constraints, leading to inefficient circuits with many gates when swap operations are inserted to meet connection relationships.
An information processing device that generates quantum circuits by storing projection operator information and qubit connection relationships, performing diagonalization to convert matrices into diagonal form, and optimizing gate operations based on these constraints to reduce the number of quantum gates.
The method produces highly efficient quantum circuits with fewer gates, reducing execution time and error probability, and ensures quantum computations are completed within qubit coherence time.
Smart Images

Figure 0007572655000009 
Figure 0007572655000010 
Figure 0007572655000011
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing device, a quantum circuit generation method, and a quantum circuit generation program. [Background technology]
[0002] One of the applications of quantum computers is quantum chemical calculations called variational quantum eigensolver (VQE). Quantum chemical calculations are molecular simulations that estimate molecular states based on the Schrödinger equation. VQE calculates optimal eigenvalues for molecular states based on the variational principle and quantum mechanics.
[0003] VQE reproduces a specific quantum state using multiple quantum bits contained in a quantum device. VQE obtains measurements such as energy in that quantum state by performing gate operations equivalent to specific projection operators on multiple quantum bits. VQE may obtain multiple measurements corresponding to multiple projection operators in parallel from a single quantum state.
[0004] A series of gate operations to be executed by a quantum device is specified by a quantum circuit. A quantum circuit corresponds to a program that indicates the procedure of quantum operations. A quantum circuit includes quantum gates such as a controlled NOT (CNOT) gate and a controlled Z (CZ) gate. A quantum circuit used in VQE may include a generation circuit that generates a quantum state and a measurement circuit that calculates multiple measurements from the generated quantum state.
[0005] The structure of the measurement circuit is determined based on the specification of multiple projection operators. Each projection operator can be decomposed into two or more Pauli operators. Pauli operators are unit operators applied to quantum bits, and include the Pauli X operator, the Pauli Y operator, and the Pauli Z operator. Therefore, a technique has been proposed to generate quantum gates of the measurement circuit from the specification of multiple projection operators.
[0006] In addition, a computer has been proposed that generates a Pauli graph from multiple Pauli strings included in a quantum Hamiltonian, generates an integrated Pauli graph by integrating some nodes based on simultaneous observability, and designs a quantum circuit based on the integrated Pauli graph. Also, a hybrid system has been proposed that includes a classical computer that outputs initial values of parameters representing a quantum circuit, and a quantum computer that performs quantum calculations using VQE according to the initial values and generates parameters representing a quantum circuit for energy calculation. [Prior art documents] [Patent documents]
[0007] [Patent Document 1] JP 2020-144400 A [Patent Document 2] JP 2020-187451 A [Non-patent literature]
[0008] [Non-Patent Document 1] Wakaki Hattori and Shigeru Yamashita, "Quantum Circuit Optimization by Changing the Gate Order for 2D Nearest Neighbor Architectures", Proc. of the 10th International Conference on Reversible Computation (RC 2018), pp. 228-243, September 2018 [Non-Patent Document 2] Pranav Gokhale, Olivia Angiuli, Yongshan Dign, Kaiwen Gui, Teague Tomesh, Martin Suchara, Margaret Martonosi and Frederic T. Chong, "Minimizing State Preparations in Variational Quantum Eigensolver by Partitioning into Commuting Families", arXiv:1907.13623, July 2019 Summary of the Invention [Problem to be solved by the invention]
[0009] In quantum devices, due to physical constraints, each qubit is not necessarily connected to all other qubits. Therefore, two-input quantum gates such as the CNOT gate and the CZ gate may not be directly applicable to two unconnected qubits. In this regard, conventional techniques that generate quantum circuits from the specifications of the projection operator may have difficulty generating highly efficient quantum circuits under the constraints of the qubit connection relationships.
[0010] For example, one possible method is to first generate a quantum circuit without considering the connection relationship of the quantum bits, and then insert a swap gate that swaps the values of two quantum bits into the quantum circuit so as to satisfy the constraints of the connection relationship. However, the method of inserting the swap gate later may generate an inefficient quantum circuit with many quantum gates. Therefore, in one aspect, the present invention aims to generate a highly efficient quantum circuit. [Means for solving the problem]
[0011] In one embodiment, an information processing device is provided that includes a storage unit and a processing unit. The storage unit stores operator information indicating a plurality of projection operators, each of which is indicated by a combination of a plurality of Pauli operators, and arrangement information indicating a connection relationship of a plurality of quantum bits included in a quantum device. The processing unit generates a matrix including a plurality of rows corresponding to a plurality of quantum bits and a plurality of columns corresponding to a plurality of projection operators, based on the plurality of projection operators indicated by the operator information. The processing unit performs diagonalization to convert the matrix into a diagonal matrix by row operations, the row operations including selecting two rows from among the plurality of rows and updating the other row using one of the two rows, based on the connection relationship indicated by the arrangement information. The processing unit generates a quantum circuit indicating a gate operation for the quantum device, based on the row operations performed in the diagonalization.
[0012] In one embodiment, a quantum circuit generation method executed by a computer is provided. In another embodiment, a quantum circuit generation program executed by a computer is provided. Effect of the Invention
[0013] On the one hand, highly efficient quantum circuits are generated. The above and other objects, features and advantages of the present invention will become apparent from the following description taken in conjunction with the accompanying drawings illustrating preferred embodiments of the present invention. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a diagram illustrating an information processing device according to a first embodiment. [Diagram 2] FIG. 11 illustrates an example of an information processing system according to a second embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an example of a software structure of the information processing device. [Figure 4] FIG. 1 illustrates an example of a quantum circuit including a measurement circuit. [Diagram 5] FIG. 13 is a diagram showing a first design example of a measurement circuit using a stabilizer matrix. [Figure 6]FIG. 2 is a diagram illustrating a first example of a measurement circuit. [Figure 7] FIG. 13 is a diagram showing a second example of a measurement circuit. [Figure 8] FIG. 13 is a diagram showing a second design example of a measurement circuit using a stabilizer matrix. [Figure 9] FIG. 13 is a diagram illustrating a third example of a measurement circuit. [Figure 10] 1 is a flowchart showing an example of a procedure for generating a quantum circuit. [Figure 11] 13 is a flowchart illustrating an example of a procedure for matrix diagonalization. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] The present embodiment will be described below with reference to the drawings. [First embodiment] A first embodiment will be described.
[0016] FIG. 1 is a diagram illustrating an information processing apparatus according to a first embodiment. The information processing device 10 of the first embodiment generates a quantum circuit that defines a series of gate operations to be executed by a quantum computer. The quantum computer is, for example, a Noisy Intermediate-Scale Quantum Computer (NISQ), which is a medium-scale quantum computer without error correction. The information processing device 10 may be a so-called classical computer. The information processing device 10 may be a client device or a server device. The information processing device 10 may be called a computer, a quantum circuit generation device, or a design device.
[0017] The information processing device 10 has a storage unit 11 and a processing unit 12. The storage unit 11 may be a volatile semiconductor memory such as a random access memory (RAM), or may be a non-volatile storage such as a hard disk drive (HDD) or a flash memory. The processing unit 12 is a processor such as a central processing unit (CPU), a graphics processing unit (GPU), or a digital signal processor (DSP). However, the processing unit 12 may include an electronic circuit for a specific purpose such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). The processor executes a program stored in a memory such as a RAM (which may be the storage unit 11). A set of processors may be called a multiprocessor or simply a "processor".
[0018] The storage unit 11 stores operator information 13 and arrangement information 14. The operator information 13 indicates a plurality of projection operators that calculate different measurement values from the same quantum state. The quantum circuit generated by the information processing device 10 may be used for VQE. The VQE applies a plurality of projection operators in parallel to a certain quantum state to calculate a plurality of measurement values, and calculates the sum of the plurality of measurement values weighted by coefficients as the energy in that quantum state. The VQE calculates the energy while changing the quantum state, and searches for a quantum state that minimizes the energy.
[0019] Each of the multiple projection operators is expressed by combining multiple Pauli operators. The Pauli operators are identity operators for quantum bits, and include the Pauli X operator, the Pauli Y operator, and the Pauli Z operator. The Pauli X operator corresponds to bit inversion. The Pauli Y operator corresponds to a combination of bit inversion and phase inversion. The Pauli Z operator corresponds to phase inversion.
[0020] Each of the multiple projection operators may be represented by a Pauli string, which indicates a sequence of Pauli operators. Each character of the Pauli string is X, Y, or Z. The length of the Pauli string may be the same as the number of qubits. To adjust the length, the Pauli string may include an identity matrix I that indicates an identity map. For example, the projection operator O1 is XXXX, the projection operator O2 is XXYY, the projection operator O3 is XYXY, and the projection operator O4 is YXXY.
[0021] The configuration information 14 indicates the connection relationships of multiple quantum bits included in a quantum device. Due to physical constraints, each quantum bit included in a quantum device is not necessarily connected to all other quantum bits, and may be connected only to some quantum bits. A two-input quantum gate may be executable for two connected quantum bits, but may be inexecutable for two unconnected quantum bits.
[0022] The multiple qubits may be arranged in a lattice in a quantum device. For example, a quantum device may include qubits q0, q1, q2, and q3 arranged in a lattice. Qubits q0 and q1 are connected to each other, qubits q1 and q2 are connected to each other, qubits q2 and q3 are connected to each other, and qubits q0 and q3 are connected to each other. Qubits q0 and q2 are unconnected, and qubits q1 and q3 are unconnected.
[0023] The configuration information 14 may be represented by an undirected graph with nodes corresponding to qubits and edges corresponding to connections, or by an adjacency matrix with rows and columns corresponding to qubits, with unconnected qubit pairs being 0 and connected qubit pairs being 1.
[0024] The processing unit 12 generates a matrix 15 based on the multiple operators indicated by the operator information 13. The matrix 15 may be an X matrix included in a so-called stabilizer matrix. The matrix 15 includes multiple rows corresponding to multiple quantum bits and multiple columns corresponding to multiple projection operators. For example, the matrix 15 includes four rows corresponding to quantum bits q0, q1, q2, and q3, and four columns corresponding to projection operators O1, O2, O3, and O4. Each element included in the matrix 15 is, for example, a flag of 0 or 1 derived from a Pauli string.
[0025] The processing unit 12 performs diagonalization to convert the matrix 15 into a diagonal matrix 16 through one or more row operations. The diagonal matrix 16 is a matrix whose diagonal elements are non-zero and whose off-diagonal elements are zero. For example, the diagonal matrix 16 is an identity matrix whose diagonal elements are one and whose off-diagonal elements are zero. The row operations performed in the diagonalization include selecting two rows based on the connection relationship indicated by the configuration information 14, and using one of the two selected rows to update the other row.
[0026] The row operation, for example, adds one row to another row. When each element is a flag of 0 or 1, the addition of two elements corresponds to an exclusive OR. The diagonalization may be performed according to an algorithm called Gaussian elimination or sweep. However, the two rows on which the row operation is performed are selected under the constraint of the connection relationship between the multiple quantum bits. For example, the processing unit 12 selects two rows corresponding to two quantum bits that are connected to each other, and does not select two rows corresponding to two quantum bits that are not connected.
[0027] For example, the processing unit 12 updates (0,1,1,1) in row #3 corresponding to the quantum bit q3 to (1,0,0,0) using (1,1,1,1) in row #0 corresponding to the quantum bit q0. Then, the processing unit 12 updates (1,1,1,1) in row #0 to (0,1,1,1) using (1,0,0,0) in row #3. By repeating such row operations according to a specific algorithm, the matrix 15 is transformed into a diagonal matrix 16.
[0028] Here, row #0 corresponding to quantum bit q0 and row #2 corresponding to quantum bit q2 may include nonzero elements in the same column. Even in this case, since quantum bits q0 and q2 are not connected, direct row operations between rows #0 and #2 may be restricted. In that case, processing unit 12 may combine row operations on rows #0 and #1 corresponding to quantum bits q0 and q1 with row operations on rows #1 and #2 corresponding to quantum bits q1 and q2 to realize an operation result equivalent to the row operations on rows #0 and #2.
[0029] Also, a row corresponding to the reference quantum bit and two or more other rows corresponding to two or more other quantum bits may include a nonzero element in the same column. In this case, processing unit 12 may calculate the number of hops from the reference quantum bit for each of the two or more quantum bits, and preferentially select the row corresponding to the quantum bit with the largest number of hops. The quantum bit with the largest number of hops is the quantum bit farthest from the reference quantum bit. Processing unit 12 may perform a row operation to preferentially eliminate nonzero elements from the row corresponding to the quantum bit with the largest number of hops.
[0030] The processing unit 12 generates a quantum circuit 17 representing one or more gate operations for a quantum device based on one or more row operations performed in the diagonalization. The quantum circuit 17 includes a plurality of lines corresponding to a plurality of quantum bits, and includes one or more quantum gates arranged on the lines. The gate operations represented by the quantum gates are executed in order from left to right.
[0031] The quantum gate includes a CNOT gate. For example, the processing unit 12 generates a CNOT gate in which the quantum bit q0 is a control bit and the quantum bit q3 is a target bit from a row operation that updates row #3 using row #0. Similarly, the processing unit 12 generates a CNOT gate in which the quantum bit q3 is a control bit and the quantum bit q0 is a target bit from a row operation that updates row #0 using row #3. The CNOT gate does not change the target bit when the control bit is 0, and performs bit inversion of the target bit when the control bit is 1. Bit inversion corresponds to applying an X gate to the target bit.
[0032] The processing unit 12 outputs the generated quantum circuit 17. The processing unit 12 may store the quantum circuit 17 in a non-volatile storage, may display it on a display device, or may transmit it to another information processing device. Furthermore, the processing unit 12 may perform a gate operation on a quantum device connected to the information processing device 10 based on the quantum circuit 17.
[0033] As described above, the information processing device 10 of the first embodiment generates the quantum circuit 17 for calculating multiple measurement values from a quantum state based on multiple projection operators. As a result, the information processing device 10 supports the design of the quantum circuit 17, reducing the burden of designing the quantum circuit 17. In addition, the information processing device 10 generates a matrix 15 from multiple projection operators, and determines the quantum circuit 17 through diagonalization that converts the matrix 15 into a diagonal matrix 16. As a result, the information processing device 10 can generate the quantum circuit 17 in a uniform manner for various projection operators, and can generate the quantum circuit 17 at high speed.
[0034] Furthermore, the information processing device 10 can optimize the quantum circuit 17 through optimization of the diagonalization process of the matrix 15. This generates a highly efficient quantum circuit 17 with fewer quantum gates. Furthermore, the information processing device 10 selects two rows for performing row operations in accordance with the constraints on the connection relationships of multiple quantum bits during the diagonalization of the matrix 15. This speeds up the generation of the quantum circuit 17 compared to the case where the quantum gates for satisfying the specifications of the projection operator and the quantum gates for satisfying the constraints on the connection relationships are determined separately.
[0035] Moreover, a highly efficient quantum circuit 17 with fewer quantum gates is generated. In particular, the number of quantum gates in the quantum circuit 17 is reduced compared to the case where a quantum circuit satisfying the specifications of the projection operator is generated and then a swap gate is inserted later to satisfy the constraints of the connection relationship. As a result, the execution time for executing the quantum circuit 17 is shortened. Furthermore, even if the size of the projection operator is large, the quantum computation is completed within the duration (coherence time) of the quantum bit. Furthermore, the smaller number of quantum gates reduces the probability of error occurrence.
[0036] [Second embodiment] Next, a second embodiment will be described. FIG. 2 illustrates an example of an information processing system according to the second embodiment.
[0037] An information processing device 100 of the second embodiment generates a quantum circuit used in VQE. A quantum device 30 is connected to the information processing device 100. The quantum device 30 corresponds to a quantum computer. The information processing device 100 corresponds to a so-called classical computer. The information processing device 100 may be a client device or a server device. The information processing device 100 may be called a computer, a quantum circuit generation device, or a design device. The information processing device 100 corresponds to the information processing device 10 of the first embodiment.
[0038] The information processing device 100 has a CPU 101, a RAM 102, a HDD 103, a GPU 104, an input interface 105, a medium reader 106, a communication interface 107, and a device interface 108, all connected via a bus. The CPU 101 corresponds to the processing unit 12 described above. The RAM 102 or the HDD 103 corresponds to the storage unit 11 described above.
[0039] The CPU 101 is a processor that executes instructions of a program. The CPU 101 loads at least a part of the program and data stored in the HDD 103 into the RAM 102 and executes the program. The information processing device 100 may have multiple processors. A collection of processors may be called a multiprocessor or simply a "processor."
[0040] The RAM 102 is a volatile semiconductor memory that temporarily stores programs executed by the CPU 101 and data used in calculations by the CPU 101. The information processing device 100 may have a type of volatile memory other than a RAM.
[0041] The HDD 103 is a non-volatile storage that stores software programs such as an OS (Operating System), middleware, and application software, and data. The information processing device 100 may have other types of non-volatile storage, such as a flash memory or an SSD (Solid State Drive).
[0042] The GPU 104 cooperates with the CPU 101 to generate an image and outputs the image to a display device 111 connected to the information processing device 100. The display device 111 is, for example, a CRT (Cathode Ray Tube) display, a liquid crystal display, an organic EL (Electro Luminescence) display, or a projector. Note that other types of output devices such as a printer may be connected to the information processing device 100.
[0043] The input interface 105 receives an input signal from an input device 112 connected to the information processing device 100. The input device 112 is, for example, a mouse, a touch panel, or a keyboard. A plurality of input devices may be connected to the information processing device 100.
[0044] The medium reader 106 is a reading device that reads the program and data recorded on the recording medium 113. The recording medium 113 is, for example, a magnetic disk, an optical disk, or a semiconductor memory. The magnetic disk includes a flexible disk (FD) and a HDD. The optical disk includes a compact disc (CD) and a digital versatile disc (DVD). The medium reader 106 copies the program and data read from the recording medium 113 to another recording medium such as the RAM 102 or the HDD 103. The read program may be executed by the CPU 101.
[0045] The recording medium 113 may be a portable recording medium. The recording medium 113 may be used for distributing programs and data. The recording medium 113 and the HDD 103 may be called computer-readable recording media.
[0046] The communication interface 107 is connected to a network 114 and communicates with other information processing devices via the network 114. The communication interface 107 may be a wired communication interface connected to a wired communication device such as a switch or a router, or a wireless communication interface connected to a wireless communication device such as a base station or an access point.
[0047] The device interface 108 is connected to the quantum device 30. The device interface 108 instructs the quantum device 30 to perform a gate operation. The quantum device 30 includes a plurality of quantum bits. Among the plurality of quantum bits, there are pairs of quantum bits that are connected and pairs of quantum bits that are not connected based on their physical arrangement. A two-input quantum gate (two-quantum gate) is executable for a pair of quantum bits that are connected, and is not executable for a pair of quantum bits that are not connected.
[0048] Quantum device 30 includes quantum bits 31, 32, 33, and 34 (q0, q1, q2, q3). Quantum bits 31, 32, 33, and 34 are arranged in a lattice pattern. Quantum bits 31 and 32 are connected, quantum bits 32 and 33 are connected, quantum bits 33 and 34 are connected, and quantum bits 31 and 34 are connected. Quantum bits 31 and 33 are not connected, and quantum bits 32 and 34 are not connected.
[0049] Here, we will explain VQE, which is a quantum chemical calculation. Quantum chemical calculation is a molecular simulation that estimates the molecular state based on the Schrodinger equation. VQE calculates the optimal eigenvalues for the molecular state based on the variation principle and quantum mechanics. VQE measures the energy of various quantum states and finds the quantum state that minimizes the energy.
[0050] The energy is calculated by applying the Hamiltonian H shown in formula (1) to the quantum state as a projection operator. In formula (1), O i is the generalized Pauli matrix as a partitioned projection operator. The generalized Pauli matrix O i is expressed as a Pauli string, which is a sequence of Pauli operators, which are identity operators. The length (number of characters) of a Pauli string is the same as the number of quantum bits. A Pauli string may contain an identity matrix I to adjust the length. i O i is the weighting coefficient of the generalized Pauli matrices. N is the number of generalized Pauli matrices, which is the same as the number of quantum bits. Therefore, the Hamiltonian H is the generalized Pauli matrix O i In VQE, the generalized Pauli matrix O i and coefficient h i is specified by the user.
[0051]
number
[0052] VQE creates a quantum state ψ(θ) using N quantum bits and measures the energy E. Different quantum states ψ(θ) are generated by changing the parameter θ. The energy E is the expectation value obtained by applying the Hamiltonian H to the quantum state ψ(θ), as shown in formula (2). From formula (1), the energy E is calculated by applying the generalized Pauli matrix O i The expected value of applying the coefficient h i VQE is a weighted sum of quantum states ψ(θ) repeatedly generated and N generalized Pauli matrices O i For each, the measurement value <ψ(θ)|O i |ψ(θ)> is calculated repeatedly and the average is calculated as the expectation value. VQE is a set of N generalized Pauli matrices O i The energy E is defined as the weighted sum of the N expectation values corresponding to
[0053]
number
[0054] From the quantum state ψ(θ) to the generalized Pauli matrix O i In order to calculate the measured value of , the information processing device 100 instructs the quantum device 30 to perform a gate operation. Here, various quantum gates that can be used in a quantum circuit will be described.
[0055] Quantum gates include the Pauli X gate, Pauli Y gate, and Pauli Z gate shown in formula (3). The Pauli X gate, Pauli Y gate, and Pauli Z gate are single quantum gates that act on one quantum bit. The Pauli X gate is a 180-degree rotation around the X axis, which corresponds to a bit inversion. The Pauli Y gate is a 180-degree rotation around the Y axis, which corresponds to a combination of bit inversion and phase inversion. The Pauli Z gate is a 180-degree rotation around the Z axis, which corresponds to a phase inversion. The Pauli Y gate combines the properties of both the Pauli X gate and the Pauli Z gate.
[0056]
number
[0057] The quantum gates include the Hadamard gate H and the phase shift gate S shown in formula (4). The Hadamard gate H and the phase shift gate S are single quantum gates that act on one quantum bit. The Hadamard gate H is a 180-degree rotation around a 45-degree axis between the X-axis and the Z-axis. The phase shift gate S is a 90-degree phase rotation.
[0058]
number
[0059] Quantum gates also include the CNOT gate and the CZ gate shown in Equation (5). The CNOT gate and the CZ gate are two-quantum gates that act on two quantum bits. The CNOT gate applies a Pauli X gate to one quantum bit, called the target bit, when the other quantum bit, called the control bit, is 1. The CNOT gate is equivalent to the exclusive OR of two quantum bits, which is equivalent to the addition of two quantum bits. The CZ gate applies a Pauli Z gate to the target bit when the control bit is 1.
[0060]
number
[0061] Next, the software structure of the information processing device 100 will be described. FIG. 3 is a diagram illustrating an example of a software structure of the information processing device. The information processing device 100 has a physical arrangement storage unit 121, a projection operator storage unit 122, and a quantum circuit storage unit 123. These storage units are realized, for example, by using a RAM 102 or a HDD 103. The information processing device 100 also has a quantum circuit generation unit 124, a gate operation unit 125, and a quantum chemistry calculation unit 126. These processing units are realized, for example, by using a CPU 101 and a program.
[0062] The physical layout storage unit 121 stores physical layout information of the quantum device 30. The physical layout information indicates the connection relationships of the quantum bits of the quantum device 30. The physical layout information may be an undirected graph including nodes corresponding to the quantum bits and edges corresponding to the connections. Alternatively, the physical layout information may be an adjacency matrix including rows and columns corresponding to the quantum bits, in which pairs of unconnected quantum bits are 0 and pairs of connected quantum bits are 1.
[0063] The projection operator storage unit 122 stores projection operator information. The projection operator information includes N generalized Pauli matrices O i and N coefficients h i Contains the generalized Pauli matrix O i Each is represented by a Pauli string of length N. Each character in a Pauli string is X, Y, or Z, except that a Pauli string may contain an I to adjust its length.
[0064] The quantum circuit storage unit 123 stores the quantum circuit generated by the information processing device 100. The quantum circuit corresponds to a program that defines the procedure of gate operations executed by the quantum device 30. The quantum circuit generated by the information processing device 100 includes a plurality of quantum gates for VQE. As described later, this quantum circuit includes an Ansatz circuit that generates a quantum state and a measurement circuit that performs observations in parallel based on N generalized Pauli matrices.
[0065] The quantum circuit generation unit 124 generates a quantum circuit based on the physical arrangement information stored in the physical arrangement storage unit 121 and the projection operator information stored in the projection operator storage unit 122. The quantum circuit generation unit 124 stores the generated quantum circuit in the quantum circuit storage unit 123. As described later, the quantum circuit generation unit 124 generates a stabilizer matrix from N Pauli strings indicating N generalized Pauli matrices, and determines a quantum gate of the measurement circuit using the stabilizer matrix. At this time, the quantum circuit generation unit 124 determines an efficient procedure for diagonalizing the stabilizer matrix, and generates a quantum gate corresponding to the determined procedure.
[0066] The gate operation unit 125 instructs the quantum device 30 on the gate operation indicated by the quantum circuit stored in the quantum circuit storage unit 123. The gate operation unit 125 reads out the measurement value from the quantum device 30 and reports it to the quantum chemistry calculation unit 126.
[0067] The quantum chemistry calculation unit 126 executes VQE. The quantum chemistry calculation unit 126 requests the gate operation unit 125 to execute a quantum circuit by specifying a parameter θ of the quantum state ψ(θ), and obtains N measurement values corresponding to N generalized Pauli matrices. A single measurement value of one generalized Pauli matrix has a binary value of 0 or 1. The quantum chemistry calculation unit 126 repeats the execution of the quantum circuit to average the measurement values, and calculates N expectation values corresponding to the N generalized Pauli matrices.
[0068] The quantum chemistry calculation unit 126 calculates the energy E corresponding to the quantum state ψ(θ) by a weighted sum of N expectation values. The quantum chemistry calculation unit 126 calculates the energy E while changing the parameter θ, and searches for the quantum state ψ(θ) where the energy E is minimum. The quantum chemistry calculation unit 126 outputs the execution result of VQE. The quantum chemistry calculation unit 126 may store the execution result in a non-volatile storage such as the HDD 103, may display it on the display device 111, or may transmit it to another information processing device.
[0069] Next, the quantum circuit generated by the information processing device 100 will be described. FIG. 4 is a diagram illustrating an example of a quantum circuit including a measurement circuit. In the second embodiment, for ease of explanation, an example where N=4 is taken. The quantum circuit includes an Ansatz circuit 131, a measurement circuit 132, and measurement gates 133, 134, 135, and 136. The Ansatz circuit 131 initializes quantum bits 31, 32, 33, and 34 (q0, q1, q2, and q3) to represent a quantum state ψ(θ) according to a parameter θ.
[0070] The measurement circuit 132 performs parallel observations of the quantum state ψ(θ) based on the generalized Pauli matrices O1, O2, O3, and O4. The measurement circuit 132 performs gate operations on the quantum bits 31, 32, 33, and 34 according to the specifications of the generalized Pauli matrices O1, O2, O3, and O4. As a result, the quantum bits 31, 32, 33, and 34 hold the measurement values of the generalized Pauli matrices O1, O2, O3, and O4. For example, the quantum bit 31 holds the measurement value of the generalized Pauli matrix O1, the quantum bit 32 holds the measurement value of the generalized Pauli matrix O2, the quantum bit 33 holds the measurement value of the generalized Pauli matrix O3, and the quantum bit 34 holds the measurement value of the generalized Pauli matrix O4. However, depending on the design of the measurement circuit 132, the correspondence between the quantum bits 31, 32, 33, and 34 and the generalized Pauli matrices O1, O2, O3, and O4 may change.
[0071] Measurement gates 133, 134, 135, and 136 each read out a binary value of 0 or 1 from the quantum bit. Measurement gate 133 reads out the value of quantum bit 31, measurement gate 134 reads out the value of quantum bit 32, measurement gate 135 reads out the value of quantum bit 33, and measurement gate 136 reads out the value of quantum bit 34.
[0072] Here, the measurement circuit 132 is automatically generated from the specifications of the generalized Pauli matrix. However, even from the same generalized Pauli matrix, the number of quantum gates in the measurement circuit 132 varies depending on the generation algorithm. Usually, the more quantum gates in the measurement circuit, the greater the number of quantum gates arranged in series (which can also be called the depth or length of the quantum circuit).
[0073] The execution time for each quantum gate ranges from a few nanoseconds to a few hundred nanoseconds, and the deeper the quantum circuit, the longer the computation time. In addition, since a single quantum computation must be completed within the duration of a quantum bit, if the depth of the quantum circuit is too large, the quantum computation may not be completed. In addition, since there is a certain probability that an error will occur in each quantum gate, the deeper the quantum circuit, the greater the probability of an error in the output of the quantum circuit.
[0074] For this reason, it is preferable that the quantum circuit generation unit 124 generates an efficient measurement circuit 132 with fewer quantum gates. Below, an example of a generation algorithm for generating the measurement circuit 132 using a stabilizer matrix will be described, and then another generation algorithm for further reducing the number of quantum gates in the measurement circuit 132 will be described. The generation algorithm using a stabilizer matrix is also described in, for example, Non-Patent Document 2 mentioned above.
[0075] FIG. 5 is a diagram showing a first design example of a measurement circuit using a stabilizer matrix. Here, the quantum circuit generation unit 124 generates a measurement circuit corresponding to the projection operator information 40. The projection operator information 40 includes Pauli strings of generalized Pauli matrices O1, O2, O3, and O4, where O1=XXXX, O2=XXYY, O3=XYXY, and O4=YXXY.
[0076] The quantum circuit generation unit 124 generates a 2N×N stabilizer matrix 41. The upper half N rows of the stabilizer matrix 41 form a Z matrix, and the lower half N rows of the stabilizer matrix 41 form an X matrix. The N columns of the stabilizer matrix 41 correspond to N Pauli strings. The N rows of the Z matrix and the N rows of the X matrix correspond to N quantum bits.
[0077] Therefore, stabilizer matrix 41 generated here has columns #0, #1, #2, #3 corresponding to generalized Pauli matrices O1, O2, O3, O4. Also, the Z matrix and X matrix included in stabilizer matrix 41 have rows #0, #1, #2, #3 corresponding to quantum bits 31, 32, 33, 34 (q0, q1, q2, q3).
[0078] Each element of the stabilizer matrix 41 is a flag of 0 or 1. The quantum circuit generation unit 124 calculates the generalized Pauli matrix O j Based on the i-th character in the matrix, determine the value of (i,j) in the Z matrix and the value of (i,j) in the X matrix. j If the i-th element of is X, then Z(i,j) = 0, X(i,j) = 1. jIf the i-th element of is Y, then Z(i,j) = 1, X(i,j) = 1. j If the i-th element of is Z, then Z(i,j) = 1, X(i,j) = 0. Note that the generalized Pauli matrix O j If the i-th element is I, then Z(i,j)=0 and X(i,j)=0 may be true.
[0079] Next, the quantum circuit generation unit 124 calculates the ranks of the Z matrix and the X matrix, and swaps row #i of the Z matrix with row #i of the X matrix so that the rank of the Z matrix or the X matrix is maximized. Here, the quantum circuit generation unit 124 swaps rows #1, #2, and #3 of the Z matrix with rows #1, #2, and #3 of the X matrix. This generates the stabilizer matrix 42. The swapping of row #i is carried out by the quantum bit q i This corresponds to implementing a Hadamard gate on
[0080] Next, the quantum circuit generation unit 124 converts the X matrix into a diagonal matrix by Gaussian elimination. Gaussian elimination is also called sweeping. Since each element is a binary value of 0 or 1, the diagonalized X matrix is an identity matrix. That is, the diagonalized X matrix is a matrix whose diagonal elements are 1 and whose off-diagonal elements are 0.
[0081] Gaussian elimination for the X matrix involves repeated row operations of adding one row to another row as a basic transformation. Since each element is a binary value of 0 or 1, the sum of two rows corresponds to the exclusive OR of the two rows. At this time, the quantum circuit generation unit 124 performs addition on the Z matrix in the opposite direction to that of the X matrix. When the quantum circuit generation unit 124 adds row #i of the X matrix to row #j, it adds row #j of the Z matrix to row #i. The row operation of adding row #i of the X matrix to row #j is a quantum bit q i Based on the qubit q j This corresponds to a CNOT gate that updates
[0082] During Gaussian elimination, the quantum circuit generation unit 124 may rearrange the columns of the stabilizer matrix. The rearrangement of the columns does not affect the structure of the measurement circuit. However, the rearrangement of the columns changes the correspondence between the quantum bits q0, q1, q2, and q3 at the output of the measurement circuit and the generalized Pauli matrices O1, O2, O3, and O4.
[0083] If we swap columns #i and #j, the quantum bit q i is the generalized Pauli matrix O j corresponds to the qubit q j is the generalized Pauli matrix O i Therefore, when the columns of the stabilizer matrix are interchanged, the quantum circuit generation unit 124 records the order of the generalized Pauli matrices O1, O2, O3, and O4. When the quantum chemistry calculation unit 126 reads out the four measurement values from the quantum device 30, it interprets the correspondence between the generalized Pauli matrices O1, O2, O3, and O4 and the four measurement values based on the above information, and rearranges the four measurement values.
[0084] Here, the quantum circuit generation unit 124 adds row #1 of the X matrix to row #2, adds row #2 of the X matrix to row #1, and adds row #1 of the X matrix to row #2. During this time, the quantum circuit generation unit 124 adds row #2 of the Z matrix to row #1, adds row #1 of the Z matrix to row #2, and adds row #2 of the Z matrix to row #1. This generates the stabilizer matrix 43.
[0085] Furthermore, the quantum circuit generation unit 124 adds row #1 of the X matrix to row #3. During this time, the quantum circuit generation unit 124 adds row #3 of the Z matrix to row #1. This generates a stabilizer matrix 44. Furthermore, the quantum circuit generation unit 124 adds row #2 of the X matrix to row #3. During this time, the quantum circuit generation unit 124 adds row #3 of the Z matrix to row #2. This generates a stabilizer matrix 45.
[0086] Furthermore, the quantum circuit generation unit 124 adds row #3 of the X matrix to row #1, adds row #2 of the X matrix to row #1, and adds row #1 of the X matrix to row #0. During this time, the quantum circuit generation unit 124 adds row #0 of the Z matrix to row #3, adds row #0 of the Z matrix to row #2, and adds row #0 of the Z matrix to row #1. This generates the stabilizer matrix 46. The X matrix included in the stabilizer matrix 46 is a diagonal matrix.
[0087] Next, the quantum circuit generation unit 124 converts the Z matrix into a zero matrix. To convert into a zero matrix, an operation of setting the diagonal element Z(i,i) to 0 and an operation of setting the non-diagonal elements Z(i,j) and Z(j,i) to 0 are used. Z(i,i)=0 means that the quantum bit q i Z(i,j)=0 and Z(j,i)=0 correspond to the implementation of a phase-shift gate on the qubit q i ,q j This corresponds to the implementation of a CZ gate on the Z matrix. Note that the effect of the phase shift gate and the CZ gate on the Z matrix is based on the assumption that the X matrix is diagonalized.
[0088] Here, the quantum circuit generation unit 124 executes the operations Z(0,3)=0,Z(3,0)=0, Z(1,3)=0,Z(3,1)=0, and Z(2,3)=0,Z(3,2)=0. This generates the stabilizer matrix 47. The Z matrix included in the stabilizer matrix 47 is a zero matrix.
[0089] Next, the quantum circuit generation unit 124 swaps all rows of the Z matrix and the X matrix. As described above, the swapping of row #i results in the quantum bit q i This corresponds to performing a Hadamard gate on the matrix x, where y is a diagonal matrix, and y is a zero matrix.
[0090] FIG. 6 is a diagram illustrating a first example of a measurement circuit. The quantum circuit generation unit 124 generates a measurement circuit by generating quantum gates corresponding to the above operation of diagonalizing the stabilizer matrix 41. The measurement circuit generated by the algorithm of FIG.
[0091] Quantum gates 50, 51, and 52 are Hadamard gates to qubits q1, q2, and q3. Quantum gate 53 is a CNOT gate from qubit q1 to q2. Quantum gate 54 is a CNOT gate from qubit q2 to q1. Quantum gate 55 is a CNOT gate from qubit q1 to q2. Quantum gate 56 is a CNOT gate from qubit q1 to q3. Quantum gate 57 is a CNOT gate from qubit q2 to q3. Quantum gate 58 is a CNOT gate from qubit q3 to q0. Quantum gate 59 is a CNOT gate from qubit q2 to q0. Quantum gate 60 is a CNOT gate from qubit q1 to q0. Quantum gate 61 is a CZ gate to qubits q0 and q3. Quantum gate 62 is a CZ gate to qubits q1 and q3. Quantum gate 63 is a CZ gate to qubits q2 and q3. Quantum gates 64, 65, 66, and 67 are Hadamard gates to qubits q0, q1, q2, and q3.
[0092] However, this measurement circuit does not satisfy the constraints on the connection relationships between quantum bits in quantum device 30, and is not executable in quantum device 30. For example, quantum gates 56 and 62 are not executable because quantum bits q1 and q3 are not connected. Quantum gate 59 is not executable because quantum bits q0 and q2 are not connected.
[0093] Therefore, the quantum circuit generation unit 124 modifies the measurement circuit generated based on the stabilizer matrix by referring to the physical arrangement information. Here, the quantum circuit generation unit 124 inserts a swap gate that swaps the values of two quantum bits into the measurement circuit. The swap gate may be implemented using three CNOT gates. i ,q jThe swap gate of qubit q i From q j and the qubit q j From q i and the qubit q i From q j is equivalent to a CNOT gate to
[0094] Here, the quantum circuit generation unit 124 inserts a quantum gate 68 between quantum gate 55 and quantum gate 56. Moreover, the quantum circuit generation unit 124 inserts a quantum gate 69 between quantum gate 57 and quantum gate 58. Moreover, the quantum circuit generation unit 124 inserts a quantum gate 70 between quantum gate 58 and quantum gate 59. Moreover, the quantum circuit generation unit 124 inserts a quantum gate 71 between quantum gate 59 and quantum gate 60. Moreover, the quantum circuit generation unit 124 inserts a quantum gate 72 between quantum gate 61 and quantum gate 62.
[0095] Quantum gates 68, 69, 70, 71, and 72 are swap gates. Note that, since the effective positions of the quantum bits change due to the insertion of the swap gates, the lines on which other quantum gates are arranged also change in the quantum circuit diagram.
[0096] This generates a measurement circuit corresponding to the projection operator information 40. However, a swap gate is inserted after the fact into the measurement circuit generated based on the stabilizer matrix. Therefore, even if the diagonalization of the stabilizer matrix is optimized, the measurement circuit finally generated may not be an efficient quantum circuit with fewer quantum gates. In the example of FIG. 6, the number of CNOT gates in the diagonalized part of the X matrix is 20.
[0097] FIG. 7 is a diagram showing a second example of the measurement circuit. Here, we present an example of a measurement circuit generated using the generation algorithm of the aforementioned Non-Patent Document 1. In this measurement circuit, swap gates 73, 74, and 75 are inserted to satisfy the constraints on the connection relationship of the quantum device 30. The number of CNOT gates in the section corresponding to the diagonalized part of the X matrix shown in FIG. 6 is 14.
[0098] Therefore, the information processing device 100 of the second embodiment modifies the generation algorithm so as to further reduce the number of quantum gates in the measurement circuit. The information processing device 100 appropriately selects rows of the X matrix for performing the addition operation so as to satisfy the constraints on the connection relationship of the quantum device 30 in the Gaussian elimination method described in FIG. 5. As a result, the measurement circuit generated through the diagonalization of the stabilizer matrix already satisfies the constraints on the connection relationship, and the information processing device 100 does not need to modify the measurement circuit afterwards. Therefore, by optimizing the diagonalization of the stabilizer matrix, it is possible to generate a highly efficient measurement circuit with fewer quantum gates.
[0099] FIG. 8 is a diagram showing a second design example of a measurement circuit using a stabilizer matrix. The quantum circuit generation unit 124 generates a stabilizer matrix 142 based on the projection operator information 140. The projection operator information 140 is the same as the projection operator information 40 in FIG. 5. The stabilizer matrix 142 is the same as the stabilizer matrix 41 in FIG. 5. The quantum circuit generation unit 124 swaps row #i of the Z matrix with row #i of the X matrix so that the rank of the Z matrix or the X matrix of the stabilizer matrix 142 is maximized. As a result, a stabilizer matrix 143 that is the same as the stabilizer matrix 42 in FIG. 5 is generated.
[0100] Next, the quantum circuit generation unit 124 performs Gaussian elimination on the X matrix of the stabilizer matrix 143 with reference to the physical arrangement information 141 to diagonalize the X matrix. The physical arrangement information 141 indicates the connection relationships of the quantum bits q0, q1, q2, and q3. The quantum circuit generation unit 124 performs addition operations only on pairs of rows corresponding to pairs of connected quantum bits, thereby diagonalizing the X matrix in a procedure that satisfies the constraints on the connection relationships.
[0101] The quantum circuit generation unit 124 sequentially selects four columns corresponding to the generalized Pauli matrices O1, O2, O3, and O4. From the selected columns, the quantum circuit generation unit 124 selects elements that will have 1 remaining (diagonal elements). At this time, the quantum circuit generation unit 124 may interchange columns of the stabilizer matrix so that the X matrix can be efficiently diagonalized. The quantum circuit generation unit 124 selects the quantum bit corresponding to the selected element as the central bit.
[0102] The quantum circuit generation unit 124 calculates the distance d between the central bit and each of the other quantum bits based on the physical arrangement information 141. The distance d is the number of connections through which one quantum bit passes to reach the other quantum bit, and corresponds to the number of hops.
[0103] If there is an element of 1 in the selected column other than the element corresponding to the central bit, the quantum circuit generation unit 124 performs an addition operation so that the element corresponding to the central bit becomes 1 and the other elements become 0. At this time, the quantum circuit generation unit 124 performs an addition operation so that elements corresponding to quantum bits with a large distance d are preferentially set to 0. In other words, the quantum circuit generation unit 124 moves the state of the distant quantum bits to "0" in order from the most distant quantum bits to the most central bit, while bringing the state "1" closer to the central bit.
[0104] Here, the quantum circuit generation unit 124 selects column #0 corresponding to the generalized Pauli matrix O1 from the stabilizer matrix 143. Column #0 of the X matrix has already been diagonalized because the element of row #0 is 1 and the elements of rows #1, #2, and #3 are 0. Therefore, the processing of the selected column is skipped. Next, the quantum circuit generation unit 124 swaps columns #1 and #2 of the stabilizer matrix 143. As a result, the stabilizer matrix 144 is generated. Columns #1 and #2 are swapped in order to efficiently set the diagonal element of row #1 to 1.
[0105] Next, the quantum circuit generation unit 124 selects column #1 corresponding to the generalized Pauli matrix O3 from the stabilizer matrix 144. The quantum circuit generation unit 124 selects the quantum bit q1 corresponding to row #1 as the central bit, and preferentially processes row #3 corresponding to the quantum bit q3 farthest from the quantum bit q1. Specifically, the quantum circuit generation unit 124 adds row #0 of the X matrix to row #3, adds row #3 of the X matrix to row #0, and adds row #1 of the X matrix to row #0. During this time, the quantum circuit generation unit 124 adds row #3 of the Z matrix to row #0, adds row #0 of the Z matrix to row #3, and adds row #0 of the Z matrix to row #1.
[0106] This generates stabilizer matrix 145. In stabilizer matrix 145, column #1 of the X matrix has already been diagonalized because the element of row #1 is 1 and the elements of rows #0, #2, and #3 are 0. Thus, processing of the selected column is completed.
[0107] Next, the quantum circuit generation unit 124 selects column #2 corresponding to the generalized Pauli matrix O2 from the stabilizer matrix 145. The quantum circuit generation unit 124 selects the quantum bit q2 corresponding to row #2 as the central bit, and preferentially processes row #0 corresponding to the quantum bit q0 farthest from the quantum bit q2. Specifically, the quantum circuit generation unit 124 adds row #2 of the X matrix to row #1, adds row #1 of the X matrix to row #0, and adds row #0 of the X matrix to row #1. During this time, the quantum circuit generation unit 124 adds row #1 of the Z matrix to row #2, adds row #0 of the Z matrix to row #1, and adds row #1 of the Z matrix to row #0.
[0108] After the above addition operation, X(1,2)=1, and elements of 1 remain in column #2 other than the element corresponding to the central bit. Therefore, the quantum circuit generation unit 124 processes row #1 corresponding to the quantum bit q1. Specifically, the quantum circuit generation unit 124 adds row #2 of the X matrix to row #1. During this time, the quantum circuit generation unit 124 adds row #1 of the Z matrix to row #2. This generates the stabilizer matrix 146. In the stabilizer matrix 146, column #2 of the X matrix has been diagonalized because the element of row #2 is 1 and the elements of rows #0, #1, and #3 are 0. Therefore, the processing of the selected column is completed.
[0109] Next, the quantum circuit generation unit 124 swaps columns #0 and #1, and swaps columns #1 and #3 of the stabilizer matrix 143. This generates the stabilizer matrix 147. All diagonal elements of the X matrix included in the stabilizer matrix 147 are 1.
[0110] Next, the quantum circuit generation unit 124 selects column #1 corresponding to the generalized Pauli matrix O4 as the last column from the stabilizer matrix 147. Since the diagonal elements of column #1 are in row #1, the quantum circuit generation unit 124 selects the quantum bit q1 corresponding to row #1 as the central bit, and processes row #0 corresponding to the quantum bit q0. Specifically, the quantum circuit generation unit 124 adds row #1 of the X matrix to row #0. Meanwhile, the quantum circuit generation unit 124 adds row #0 of the Z matrix to row #1. This generates the stabilizer matrix 148.
[0111] The X matrix included in the stabilizer matrix 148 is a diagonal matrix. Thus, Gaussian elimination is completed. Next, the quantum circuit generation unit 124 converts the Z matrix included in the stabilizer matrix 148 into a zero matrix. Here, the quantum circuit generation unit 124 executes the operation of Z(1,1)=0, the operation of Z(0,1)=0, Z(1,0)=0, the operation of Z(1,2)=0, Z(2,1)=0, and the operation of Z(1,3)=0, Z(3,1)=0.
[0112] As a result, a stabilizer matrix 149 is generated. The Z matrix included in the stabilizer matrix 149 is a zero matrix, and the X matrix included in the stabilizer matrix 149 is a diagonal matrix. The quantum circuit generation unit 124 exchanges the Z matrix and the X matrix. As a result, a stabilizer matrix that is the same as the stabilizer matrix 48 in FIG. 5 is generated.
[0113] FIG. 9 is a diagram illustrating a third example of the measurement circuit. The quantum circuit generation unit 124 generates a measurement circuit by generating quantum gates corresponding to the above operation of diagonalizing the stabilizer matrix 142. The measurement circuit generated by the algorithm of FIG.
[0114] Quantum gates 150, 151, and 152 are Hadamard gates to qubits q1, q2, and q3. Quantum gate 153 is a CNOT gate from qubit q0 to q3. Quantum gate 154 is a CNOT gate from qubit q3 to q0. Quantum gate 155 is a CNOT gate from qubit q1 to q0. Quantum gate 156 is a CNOT gate from qubit q2 to q1. Quantum gate 157 is a CNOT gate from qubit q1 to q0. Quantum gate 158 is a CNOT gate from qubit q0 to q1. Quantum gate 159 is a CNOT gate from qubit q2 to q1. Quantum gate 160 is a CNOT gate from qubit q1 to q0.
[0115] Quantum gate 161 is a phase shift gate to quantum bit q1. Quantum gate 162 is a CZ gate to quantum bits q0 and q1. Quantum gate 163 is a CZ gate to quantum bits q1 and q2. Quantum gate 164 is a swap gate to quantum bits q2 and q3. Quantum gate 165 is a CZ gate to quantum bits q1 and q2. Quantum gates 166, 167, 168, and 169 are Hadamard gates to quantum bits q0, q1, q2, and q3. Note that since the columns of the stabilizer matrix are swapped, quantum bits q0, q1, q2, and q3 at the time of output correspond to generalized Pauli matrices O3, O4, O1, and O2.
[0116] The number of CNOT gates in the diagonalized part of the X matrix is 8. In this way, a highly efficient measurement circuit with fewer CNOT gates is generated compared to Figs. Next, the processing procedure of the information processing device 100 will be described.
[0117] FIG. 10 is a flowchart showing an example of a procedure for generating a quantum circuit. (S10) The quantum circuit generation unit 124 reads out physical layout information indicating the connections of the quantum bits of the quantum device 30 and projection operator information indicating N Pauli strings.
[0118] (S11) The quantum circuit generation unit 124 generates a 2N×N stabilizer matrix including an N×N Z matrix and an N×N X matrix from the N Pauli strings. (S12) The quantum circuit generation unit 124 swaps rows between the Z matrix and the X matrix to maximize the rank of one of the Z matrix and the X matrix.
[0119] (S13) The quantum circuit generation unit 124 diagonalizes the X matrix by Gaussian elimination. At this time, the quantum circuit generation unit 124 selects a row pair to be operated on so as to satisfy the constraints on the connection relationship indicated by the physical placement information. The details of matrix diagonalization will be described later.
[0120] (S14) The quantum circuit generation unit 124 converts the Z matrix into a zero matrix. (S15) The quantum circuit generation unit 124 swaps all rows between the Z matrix and the X matrix. (S16) The quantum circuit generation unit 124 generates a quantum circuit including quantum gates corresponding to the matrix operations performed in steps S12 to S15, and stores the quantum circuit. The quantum circuit generation unit 124 also stores information indicating the correspondence between the measurement values of the N quantum bits and the N Pauli strings based on the column swapping performed in the stabilizer matrix.
[0121] FIG. 11 is a flowchart showing an example of a procedure for matrix diagonalization. (S20) The quantum circuit generation unit 124 initializes the column number C to 1, initializes the distance d to the maximum distance in the quantum device 30, and identifies the number of quantum bits N. The column number C indicates which of the N columns is being processed.
[0122] (S21) The quantum circuit generation unit 124 selects one unprocessed column from among the N columns included in the stabilizer matrix. At this time, it is preferable that the quantum circuit generation unit 124 selects a column in which a row in which a 1 is to be left in the current process is already 1. The quantum circuit generation unit 124 may rearrange the columns included in the stabilizer matrix. In this case, the quantum circuit generation unit 124 records the order of the N Pauli strings according to the rearrangement of the columns.
[0123] (S22) The quantum circuit generation unit 124 selects, as a central bit, a quantum bit corresponding to a row (a row to be a diagonal element) that leaves the state "1" in the selected column, from among the N quantum bits. The quantum circuit generation unit 124 calculates the distance between the central bit and each of the other N-1 quantum bits from the connection relationship of the quantum devices 30.
[0124] (S23) The quantum circuit generation unit 124 determines whether there is a quantum bit corresponding to the row of state "1" at a distance d from the central bit. If there is a corresponding quantum bit, the process proceeds to step S24, and if there is no corresponding quantum bit, the process proceeds to step S26.
[0125] (S24) The quantum circuit generation unit 124 performs a row operation to add a row of the X matrix to another row of the X matrix according to the matrix M1 defined in the formulas (6), (7), and (8). This row operation is defined by the CNOT gates of the formulas (6), (7), and (8). The formula (6) represents a chain of CNOT gates from a quantum bit at a distance d to the central bit. In the formulas (6), (7), and (8), the CNOT i>j represents a CNOT gate with a qubit at distance i from the central bit as the control bit and a qubit at distance j as the target bit.
[0126] c1 is a CNOT gate with the quantum bit far from the central bit as the control bit and the quantum bit close to the central bit as the target bit when row (i-1) has been diagonalized. c2 is a CNOT gate with the quantum bit far from the central bit as the control bit and the quantum bit close to the central bit as the target bit when quantum bit q(i-1) is 0.
[0127] (S25) The quantum circuit generation unit 124 performs a row operation on the Z matrix in the opposite direction to the row operation on the X matrix in step S24. The row operation of adding row #i to row #j of the X matrix corresponds to the row operation of adding row #j to row #i of the Z matrix.
[0128] (S26) The quantum circuit generation unit 124 updates the distance d to d-1. (S27) The quantum circuit generation unit 124 judges whether the distance d is greater than or equal to 1. If the distance d is greater than or equal to 1, the process returns to step S23; otherwise, the process proceeds to step S .
[0129] (S28) The quantum circuit generation unit 124 updates the column number C to C+1. Also, it initializes the distance d to the maximum distance in the quantum device 30. (S29) The quantum circuit generation unit 124 determines whether the column number C is equal to or less than the number of quantum bits N. If the column number C is equal to or less than the number of quantum bits N, the process returns to step S21; otherwise, the matrix diagonalization in step S13 ends.
[0130]
number
[0131]
number
[0132]
number
[0133] Here, the procedure for diagonalizing the X matrix in Fig. 8 will be explained in more detail. When C = 1, the quantum circuit generation unit 124 selects quantum bit q0 as the central bit. At this time, the state of quantum bit q0 is 1, and the states of quantum bits q1, q2, and q3 are 0. Therefore, there is no quantum bit in state 1 at a distance d = 2 from the central bit, and there is also no quantum bit in state 1 at a distance d = 1. For this reason, no row operation is performed.
[0134] Next, the quantum circuit generation unit 124 selects the quantum bit q1 as the central bit when C=2. At this time, the quantum bits q0, q1, and q3 are in the state 1, and the quantum bit q2 is in the state 0. Therefore, the quantum bit q3, which is at a distance d=2 from the central bit, becomes the processing target. At this time, the quantum bit q(1)=1 and row (1) has already been diagonalized, so CNOT 1>2 and CNOT 2>1 and CNOT 1>0 Therefore, a CNOT gate from the quantum bit q0 to q3, a CNOT gate from the quantum bit q3 to q0, and a CNOT gate from the quantum bit q1 to q0 are executed.
[0135] After the above CNOT gate, the state of qubit q1 is 1, and the states of qubits q0, q2, and q3 are 0. Therefore, there are no qubits in state 1 at distance d=1 from the central bit, and no further row operations are performed.
[0136] Next, the quantum circuit generation unit 124 selects the quantum bit q2 as the central bit when C=3. At this time, the states of the quantum bits q0 and q2 are 1, and the states of the quantum bits q1 and q3 are 0. Therefore, the quantum bit q0, which is at a distance d=2 from the central bit, becomes the processing target. Here, CNOT 0>1 and CNOT 1>2 and CNOT 2>1 Therefore, a CNOT gate from the quantum bit q2 to q1, a CNOT gate from the quantum bit q1 to q0, and a CNOT gate from the quantum bit q0 to q1 are executed.
[0137] After the above CNOT gate, the states of the quantum bits q1 and q2 are 1, and the states of the quantum bits q0 and q3 are 0. Therefore, the quantum bit q1, which is at a distance d=1 from the central bit, is the target of processing. Here, CNOT 0>1 Therefore, the CNOT gate from quantum bit q2 to q1 is executed.
[0138] Next, the quantum circuit generation unit 124 selects the quantum bit q1 as the central bit when C=4. At this time, the quantum bits q0 and q1 are in a state of 1, and the quantum bits q2 and q3 are in a state of 0. There is no quantum bit in state 1 at a distance d=2 from the central bit, but there is a quantum bit q0 in state 1 at a distance d=1 from the central bit. Therefore, the quantum bit q0 becomes the processing target. Here, CNOT 0>1 is executed. Therefore, a CNOT gate from quantum bit q1 to q0 is executed. This completes the diagonalization of the X matrix.
[0139] As described above, the information processing device 100 of the second embodiment generates a quantum circuit for observing multiple measured values in parallel from a quantum state based on multiple Pauli strings. This allows the information processing device 100 to assist in the design of a quantum circuit, reducing the burden of designing the quantum circuit. In addition, the information processing device 100 generates a stabilizer matrix from multiple Pauli strings and determines quantum gates of the quantum circuit through diagonalization of the stabilizer matrix. This allows the information processing device 100 to generate quantum circuits for various Pauli strings in a uniform manner, and can generate quantum circuits at high speed.
[0140] Moreover, the information processing device 100 can optimize the quantum circuit through optimization of the diagonalization process of the stabilizer matrix. This generates a highly efficient quantum circuit with fewer quantum gates. Furthermore, the information processing device 100 selects two rows for performing row operations in accordance with the constraints of the connection relationships of the quantum bits during the diagonalization of the stabilizer matrix. This speeds up the generation of the quantum circuit compared to the case where the determination of the quantum gate that matches the Pauli string and the correction of the quantum circuit to satisfy the constraints of the connection relationships are performed separately. Furthermore, a highly efficient quantum circuit with fewer quantum gates is generated. As a result, the execution time of the gate operation according to the quantum circuit is shortened. Furthermore, even when there are many quantum bits, the quantum calculation is completed within the duration of the quantum bits. Furthermore, the smaller number of quantum gates reduces the probability of error occurrence.
[0141] The foregoing merely illustrates the principles of the present invention. Further, since numerous modifications and changes are possible to those skilled in the art, the present invention is not limited to the exact construction and application shown and described above, and all corresponding modifications and equivalents are deemed to be within the scope of the present invention according to the appended claims and their equivalents. [Explanation of symbols]
[0142] 10. Information processing device 11 Storage section 12 Processing section 13 Operator Information 14 Placement information 15. Queue 16 Diagonal Matrices 17 Quantum circuit
Claims
1. A storage unit that stores operator information indicating a plurality of projection operators each represented by a combination of a plurality of Pauli operators, and arrangement information indicating a connection relationship of a plurality of quantum bits included in a quantum device; a processing unit that generates a matrix including a plurality of rows corresponding to the plurality of quantum bits and a plurality of columns corresponding to the plurality of projection operators based on the plurality of projection operators indicated by the operator information, and performs diagonalization to convert the matrix into a diagonal matrix by row operations, the row operations including selecting two rows from the plurality of rows based on the connection relationship indicated by the arrangement information and using one of the two rows to update the other row, and generates a quantum circuit indicating a gate operation for the quantum device based on the row operations performed in the diagonalization; An information processing device having the above configuration.
2. The two rows selected by the row operation correspond to two quantum bits among the plurality of quantum bits that are mutually connected in the quantum device.
2. The information processing device according to claim 1.
3. the plurality of quantum bits includes a first quantum bit, a second quantum bit connected to the first quantum bit, and a third quantum bit connected to the second quantum bit and not connected to the first quantum bit; When a first row corresponding to the first quantum bit and a third row corresponding to the third quantum bit among the plurality of rows include a non-zero element in the same column, the diagonalization deletes the non-zero element in the third row by a first row operation between the first row and a second row corresponding to the second quantum bit and a second row operation between the second row and the third row.
2. The information processing device according to claim 1.
4. The plurality of quantum bits includes a first quantum bit and two or more second quantum bits having different hop numbers from the first quantum bit; When a first row corresponding to the first quantum bit and two or more second rows corresponding to the two or more second quantum bits among the plurality of rows include a non-zero element in the same column, the diagonalization performs a row operation to eliminate the non-zero element preferentially from a second row corresponding to a second quantum bit having a maximum number of hops among the two or more second rows.
2. The information processing device according to claim 1.
5. generating a matrix including a plurality of rows corresponding to a plurality of qubits included in the quantum device and a plurality of columns corresponding to the plurality of projection operators based on a plurality of projection operators respectively represented by a combination of a plurality of Pauli operators; diagonalization to convert the matrix into a diagonal matrix by row operations, the row operations including selecting two rows from the plurality of rows based on a connectivity relationship of the plurality of quantum bits in the quantum device, and using one of the two rows to update the other row; generating a quantum circuit indicating gate operations for the quantum device based on the row operations performed in the diagonalization; A method for generating quantum circuits in which processing is executed by a computer.
6. generating a matrix including a plurality of rows corresponding to a plurality of qubits included in the quantum device and a plurality of columns corresponding to the plurality of projection operators based on a plurality of projection operators respectively represented by a combination of a plurality of Pauli operators; diagonalization to convert the matrix into a diagonal matrix by row operations, the row operations including selecting two rows from the plurality of rows based on a connectivity relationship of the plurality of quantum bits in the quantum device, and using one of the two rows to update the other row; generating a quantum circuit indicating gate operations for the quantum device based on the row operations performed in the diagonalization; A quantum circuit generation program that causes a computer to execute processing.
Citation Information
Patent Citations
Unitary matrix decomposition device, unitary matrix decomposition method, unitary matrix decomposition program, and recording medium
JP2006195587A
Grouping of pauli strings using entangled measurements
JP2020144400A
Quantum information processing method, classic computer, quantum computer, quantum information processing program, and data structure for obtaining differential of energy
JP2020187451A
Quantum information processing method for open quantum system, classic computer, quantum computer, quantum information processing program, and data structure
JP2020201566A
