Quantum circuit learning method, quantum circuit learning system, and quantum classical hybrid neural network
The quantum circuit learning method reduces the computational cost of training quantum classical hybrid neural networks by transferring optimized parameters between tasks, improving the efficiency and accuracy of quantum chemical calculations.
Patent Information
- Application Number
- JP2023046701
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2043-03-23
AI Technical Summary
The high computational cost associated with training quantum classical hybrid neural networks (HQCNN) for quantum chemical calculations, such as drug discovery and material development, is a significant challenge due to the need for optimizing a large number of quantum circuit parameters.
A quantum circuit learning method involving a readout, transfer, and training process is employed, where optimized parameters from a first task are transferred to a second task, reducing the number of parameters to be optimized in the second task by using a feature extraction circuit and a task-specific circuit within a quantum-classical hybrid neural network.
This approach significantly reduces the computational cost required for training, enabling highly accurate quantum chemical calculations with fewer iterations and parameters, thus enhancing the efficiency of quantum machine learning models.
Smart Images

Figure 2024135822000001_ABST
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to a quantum circuit training method, a quantum circuit training system, and a quantum-classical hybrid neural network. [Background technology]
[0002] In recent years, the development of gate-type quantum computers has progressed significantly, and quantum computing using quantum properties can now be realized in various ways, even on a small scale. The devices that perform these quantum computations are called NISQ (Noisy Intermediate Scale Quantum) devices, and are positioned as an important first step in the milestone toward future quantum computers that implement error correction. Research using NISQ devices is currently being actively conducted. In particular, an algorithm called the Variational Quantum Eigensolver (VQE) is expected to be applied to quantum chemical calculations as a method of hybridizing quantum computers and classical computers. However, there are many challenges to apply VQE to practical problems such as drug discovery and material development. Specifically, to obtain highly accurate results with VQE, a huge number of measurement samples are required that go back and forth between the NISQ device and the classical computer many times. Previously, it has been proposed to remove part of the final layer, including the measurement layer of the quantum circuit, and use the remaining circuit for transfer learning. This is quantum machine learning in the category of linear operations that perform measurements in the final layer. With this method, the learning cost was high in order to obtain highly accurate results. [Prior art documents] [Patent documents]
[0003] [Non-Patent Document 1] A. Peruzzo, J. McClean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, PJ Love, A. Aspuru-Guzik and JLO'Brien, “A variational eigenvalue solver on a photonic quantum processor,” Nature Communications,5, article number: 4213, 2014 [Non-Patent Document 2] R. Xia and S. Kais, “Hybrid Quantum-Classical Neutral Network for Calculating Ground State Energies of Molecules” Entropy 22, 828 (2020) [Non-Patent Document 3] A. Mari, TR Bromley, J. Izaac, M. Schuld, and N. Killoran, “Tranfer learning in hybrid classical-quantum neural networks” Quantum 4, 340 (2020) Summary of the Invention [Problem to be solved by the invention]
[0004] In a series of studies to reduce the computational cost of VQE, Xia & Kais et al. proposed a hybrid quantum-classical neural network (HQCNN) in 2020 that can estimate the ground-state potential energy surface (PES) of small molecules with high accuracy. The HQCNN is a method of constructing a surrogate model of VQE that replaces the conventional VQE computational procedure with a neural network using quantum circuits, and is characterized by the inclusion of a measurement layer in the middle. Specifically, by applying the HQCNN to quantum chemical calculations for chemical reaction analysis, the variational optimization for each molecular structure that was required in the conventional PES calculation using VQE is no longer necessary, and highly accurate PES inference can be performed at low cost. However, the HQCNN has a high learning cost due to the large number of parameters of the quantum circuit that must be optimized during learning.
[0005] The problem to be solved by the present invention is to provide a quantum circuit training method, a quantum circuit training system, and a quantum-classical hybrid neural network that can reduce the computational cost required for training. [Means for solving the problem]
[0006] The quantum circuit learning method according to the embodiment includes a read step, a transfer step, and a training step. The read step is a step of reading out an optimized first parameter assigned to a first feature extraction circuit included in a trained first quantum circuit for a first task, the first quantum circuit being trained based on a first data set related to a first classical data that is an explanatory variable, the first feature extraction circuit including a parametrized quantum circuit having an encoding gate for encoding the first classical data and a quantum operation gate for performing a quantum operation according to the first parameter on a quantum bit, and a measurement layer for outputting first measurement data of the quantum bit. The transfer step is a step of transferring the first parameter to a second feature extraction circuit included in a second quantum circuit for a second task, the second feature extraction circuit including a parametrized quantum circuit having an encoding gate for encoding second classical data representing an explanatory variable common to the first classical data and a quantum operation gate for performing a quantum operation according to the first parameter on a quantum bit, and a measurement layer for outputting second measurement data of the quantum bit. The training step includes training the second quantum circuit based on a second data set relating to the second classical data while fixing the first parameters transferred to the second feature extraction circuit, and optimizing second parameters of a task-specific circuit of the second quantum circuit subsequent to the second feature extraction circuit, the task-specific circuit including a parametrized quantum circuit having an encoding gate for encoding the second measurement data and a quantum operation gate for applying a quantum operation to a quantum bit according to the second parameters. [Brief description of the drawings]
[0007] [Figure 1] Block diagram showing an example of the configuration of a quantum circuit learning system [Diagram 2] A diagram showing an example of the circuit configuration of HQCNN [Diagram 3] A diagram showing an example of a quantum circuit learning procedure. [Figure 4] FIG. 4 is a diagram showing a schematic diagram of a training process of the first HQCNN executed in step S1 shown in FIG. [Diagram 5] A diagram showing an example of the configuration of a parametrized quantum circuit layer U(θ) when the number of quantum bits is n=4. [Figure 6] A diagram showing an example of the configuration of a parametrized quantum circuit layer U(θ) when the number of quantum bits is n=5. [Figure 7] FIG. 4 is a diagram showing a schematic diagram of the transfer process performed in step S4 shown in FIG. 3 and the training process of the second HQCNN performed in step S5. [Figure 8] FIG. 1 is a graph showing the results of a numerical simulation of an H2 molecule according to Example 1. [Figure 9] FIG. 1 is a graph showing a result of a numerical simulation of a LiH molecule according to Example 1. [Figure 10] FIG. 10 is a graph showing a result of a numerical simulation according to a comparative example corresponding to FIG. 9; [Figure 11] FIG. 13 is a graph showing a result of a numerical simulation according to the second embodiment. [Figure 12] FIG. 12 is a graph showing a numerical simulation result of HQCNN according to a comparative example corresponding to FIG. 11 . [Figure 13] FIG. 13 is a graph showing a result of a numerical simulation according to the third embodiment. [Figure 14] FIG. 13 is a graph showing another numerical simulation result according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, a quantum circuit training method, a quantum circuit training system, and a quantum-classical hybrid neural network according to the present embodiment will be described with reference to the drawings.
[0009] Fig. 1 is a block diagram showing an example of a configuration of a quantum circuit learning system 1 according to this embodiment. As shown in Fig. 1, the quantum circuit learning system 1 includes a classical computer 100 and a quantum computer 200. The classical computer 100 and the quantum computer 200 are connected to each other via wire or wirelessly so that they can communicate with each other.
[0010] The classical computer 100 is a computer that processes binary classical bits. The classical computer 100 is a computer that has a processing circuit 110, a storage device 120, an input device 130, a communication device 140, and a display device 150. Information communication between the processing circuit 110, the storage device 120, the input device 130, the communication device 140, and the display device 150 is performed via a bus. Note that the storage device 120, the input device 130, the communication device 140, and the display device 150 are not essential components and can be omitted as appropriate.
[0011] The processing circuit 110 has a processor such as a central processing unit (CPU) and a memory such as a random access memory (RAM). The processing circuit 110 controls the classical computer 100 in an integrated manner. The processing circuit 110 has a training unit 111 and a display control unit 112. The processing circuit 110 executes a quantum circuit learning program to realize the functions of the above-mentioned units 111 to 112. The quantum circuit learning program is stored in a non-transitory computer-readable storage medium realized by the storage device 120 or the like. The quantum circuit learning program may be implemented as a single program that describes all the functions of the above-mentioned units 111 to 112, or may be implemented as a plurality of modules divided into several functional units. In addition, the above-mentioned units 111 to 112 may be implemented by integrated circuits such as application specific integrated circuits (ASICs) and field programmable gate arrays (FPGAs). In this case, they may be implemented in a single integrated circuit, or may be implemented individually in a plurality of integrated circuits.
[0012] The training unit 111 performs quantum circuit learning for a quantum-classical hybrid neural network (HQCNN) 210 implemented in the quantum computer 200. The HQCNN 210 includes a first HQCNN 210-1 for a first task and a second HQCNN 210-2 for a second task. Hereinafter, when the first HQCNN 210-1 and the second HQCNN 210-2 are not distinguished from each other, they will be referred to as HQCNN 210. For quantum circuit learning, the training unit 111 acquires a training data set. The training data set includes a plurality of training samples. Each training sample includes classical data, which is input data, and teacher data corresponding to the classical data. The training unit 111 provides the classical data to the HQCNN 210. The classical data is converted into output data by the HQCNN 210. The training unit 111 trains the HQCNN 210 based on the difference between the output data and the teacher data, and optimizes the parameters of the HQCNN 210.
[0013] The display control unit 112 displays various information on the display device 150. For example, the display control unit 112 displays classical data, output data, teacher data, and the like.
[0014] The storage device 120 is configured with a ROM (Read Only Memory), an HDD (Hard Disk Drive), an SSD (Solid State Drive), an integrated circuit storage device, etc. The storage device 120 stores a quantum circuit learning program and the like.
[0015] The input device 130 inputs various commands from an operator. As the input device 130, a keyboard, a mouse, various switches, a touch pad, a touch panel display, etc. can be used. An output signal from the input device 130 is supplied to the processing circuit 110. Note that various commands from an operator may be input by an input device provided in another classical computer connected via a communication device 140, instead of the input device 130 mounted on the classical computer 100.
[0016] The communication device 140 is an interface for communicating information with an external device such as the quantum computer 200 connected to the classical computer 100 via a wired or wireless connection.
[0017] The display device 150 displays various information under the control of the display control unit 112. As the display device 150, a CRT (Cathode-Ray Tube) display, a liquid crystal display, an organic EL (Electro Luminescence) display, an LED (Light-Emitting Diode) display, a plasma display, or any other display known in the art can be appropriately used. The display device 150 may also be a projector.
[0018] The quantum computer 200 is a computer equipped with a quantum-classical hybrid neural network (HQCNN) 210 that performs quantum gate operations on multiple quantum bits, and executes quantum computation using the HQCNN 210. The quantum bits and quantum gates may be realized by the HQCNN 210 using any method, such as a superconducting circuit method, an ion trap method, a quantum dot method, an optical lattice method, or the like. The quantum computer 200 has various hardware for realizing an environment according to the method for realizing the quantum bits and quantum gates. Although not shown in FIG. 1, the quantum computer 200 may have a storage device, an input device, a communication device, a display device, and the like, in addition to a processing circuit for performing various information processing using classical bits. The quantum computer 200 is an example of a quantum computation unit.
[0019] The quantum computer 200 receives classical data, which is input data, from the classical computer 100, and inputs the classical data to the HQCNN 210, which performs quantum gate operations on multiple quantum bits. The HQCNN 210 converts the classical data into output data. The quantum computer 200 obtains the output data from the HQCNN 210. The quantum computer 200 transmits the obtained output data to the classical computer 100.
[0020] The first HQCNN 210-1 is a quantum-classical hybrid neural network trainable for a first task, and includes a feature extraction circuit to which an optimizable parameter θ is assigned for the first task, and a task-specific circuit following the feature extraction circuit to which an optimizable parameter Θ is assigned for the first task. The feature extraction circuit includes a parametrized quantum circuit having an encoding gate for encoding the first classical data, which is an explanatory variable, and a quantum operation gate for performing a quantum operation on a quantum bit according to the parameter θ, and a measurement layer for outputting measurement data of the quantum bit. The task-specific circuit includes a parametrized quantum circuit having an encoding gate for encoding the measurement data and a quantum operation gate for performing a quantum operation on a quantum bit according to the parameter Θ, and an output layer for outputting output data representing the quantum state of the quantum bit.
[0021] The second HQCNN 210-2 is a quantum-classical hybrid neural network trainable for a second task different from the first task, and includes parameters θ optimized for the first task extracted from the first HQCNN 210-1 trained for the first task. * The feature extraction circuit includes a feature extraction circuit to which a parameter Φ that can be optimized for a second task is assigned, and a task-specific circuit following the feature extraction circuit, the feature extraction circuit includes an encoding gate for encoding the second classical data, which is an explanatory variable, and a parameter θ * The task-specific circuit includes a parametrized quantum circuit having an encoding gate for encoding the measurement data and a quantum operation gate for applying a quantum operation to the quantum bit according to the parameter Φ, and a measurement layer that outputs measurement data of the quantum bit. The task-specific circuit includes a parametrized quantum circuit having an encoding gate for encoding the measurement data and a quantum operation gate for applying a quantum operation to the quantum bit according to the parameter Φ, and an output layer that outputs output data representing the quantum state of the quantum bit.
[0022] The training unit 111 according to the present embodiment performs a training process (hereinafter, first training) for the first HQCNN 210-1 for the first task, and a training process (hereinafter, second training) for the second quantum circuit for the second task. In the first training process, the training unit 111 optimizes a parameter θ of the feature extraction circuit 220 and a parameter Θ of the task-specific circuit 230 included in the HQCNN 210-1.
[0023] In the second training step, the training unit 111 trains the second HQCNN 210-2 by quantum transfer learning using the trained first HQCNN 210-1. Specifically, the second training step includes a read step, a transfer step, and a training step. In the read step, the training unit 111 reads out the optimized parameters θ * In the transfer step, the training unit 111 reads out the optimized parameters θ * to the feature extraction circuit included in the second HQCNN 210-2 for the second task. In the training process, the training unit 111 transfers the optimized parameters θ * While fixing , a second HQCNN 210-2 is trained based on a second dataset on the second classical data, and a parameter Φ of a task-specific circuit subsequent to the feature extraction circuit in the second HQCNN 210-2 is optimized.
[0024] In the first training step or the second training step, the training unit 111 optimizes the parameter θ or the parameter Φ using a classical computer, the Nelder-Mead method, the Powell method, the CG method, the Newton method, the BFGS method, the L-BFGS-B method, the TNC method, the COBYLA method, and / or the SLSQP method.
[0025] Next, the circuit configurations of the first HQCNN 210-1 and the second HQCNN 210-2 will be specifically described with reference to Fig. 2. Note that since the circuit configurations of the first HQCNN 210-1 and the second HQCNN 210-2 are substantially the same, no distinction is made between them, and Fig. 2 illustrates the HQCNN 210 as an example.
[0026] FIG. 2 is a diagram showing an example of a circuit configuration of the HQCNN 210. The HQCNN 210 is a series of quantum circuits including a series of quantum gates controlled by circuit parameters. As shown in FIG. 2, the HQCNN 210 has n (n is a natural number of 2 or more) quantum bits. n may be set appropriately according to the scale of the number of atoms, the number of electrons, the number of spin orbitals, etc. of the molecule to be processed. The HQCNN 210 performs quantum operations according to classical data 240 on the n quantum bits to construct an initial quantum state, performs quantum operations according to the circuit parameters on the initial quantum state to construct an output quantum state, and outputs output data 250 according to the output quantum state.
[0027] As shown in FIG. 2, the HQCNN 210 includes a feature extraction circuit 220 and a task-specific circuit 230 following the feature extraction circuit 220. The feature extraction circuit 220 is a quantum circuit including a parameterized quantum circuit 221 and a measurement layer 222 following the parameterized quantum circuit 221. The parameterized quantum circuit 221 has a series of encoding gates 223 and a series of quantum operation gates 224. The encoding gate 223 is a quantum gate to which an encoding parameter 225 for encoding classical data 240 is assigned. The encoding parameter 225 is a type of circuit parameter, but is not an object of optimization by quantum circuit learning. The encoding parameter 225 is set to a value according to the classical data 240. The quantum operation gate 224 is a quantum gate to which a rotation angle parameter 226 for performing a quantum rotation operation on a quantum bit is assigned. The measurement layer 222 outputs measurement data 260 representing a quantum state corresponding to n quantum bits. The rotation angle parameter 226 controls the rotation angle of the quantum gate that performs the quantum rotation operation.
[0028] The feature extraction circuit 221 having the above configuration performs quantum operations on n quantum bits using an encoding gate 223 to which an encoding parameter 225 corresponding to classical data 240 is assigned, to construct a first initial quantum state, converts the first initial quantum state into an intermediate quantum state using a quantum operation gate 224 to which a rotation angle parameter 226 is assigned, and outputs, as measurement data 260, the expectation value of an observable defined by an arbitrary tensor product of the Pauli operator for the intermediate quantum state constructed by the parametrized quantum circuit 221 using the measurement layer 222.
[0029] The task-specific circuit 230 is a quantum circuit including a parameterized quantum circuit 231 and an output layer 232 following the parameterized quantum circuit 231. The parameterized quantum circuit 231 has a series of encoding gates 233 and a series of quantum operation gates 234. The encoding gate 233 is a quantum gate to which an encoding parameter 235 for encoding the measurement data 260 output by the measurement layer 222 is assigned. The encoding parameter 235 is a circuit parameter, but is not an object of optimization by quantum circuit learning. The encoding parameter 235 is set to a value according to the measurement data 260. The quantum operation gate 234 is a quantum gate to which a rotation angle parameter 236 for performing a quantum rotation operation on a quantum bit is assigned. The output layer 232 outputs output data 250 representing a quantum state corresponding to n quantum bits. The rotation angle parameter 236 controls the rotation angle of the quantum gate that performs the quantum rotation operation.
[0030] Task-specific circuit 230 having the above configuration performs quantum operations on n quantum bits by encoding gate 233 to which encoding parameter 235 corresponding to measurement data 260 is assigned, constructs a second initial quantum state, converts the second initial quantum state into an output quantum state by quantum operation gate 234 to which rotation angle parameter 236 is assigned, and outputs output data 250 representing the output quantum state by output layer 232. A trial wave function represented by the output quantum state is output as output data 250.
[0031] Each of the parametrized quantum circuit 221 and the parametrized quantum circuit 231 is realized by a particle number preserving circuit called a Real Amplitude type quantum circuit or an A gate. The particle number preserving circuit is an ansatz that preserves the particle number between the input quantum state and the output quantum state. In the particle number preserving circuit, a Hartree-Fock state is used as the input quantum state. The Hartree-Fock state means a quantum state when electrons are filled in order from the electron orbital with the lowest energy level. That is, each of the parametrized quantum circuit 221 and the parametrized quantum circuit 231 performs a quantum gate operation by a quantum operation gate controlled by a rotation angle parameter on the input Hartree-Fock state while preserving the particle number. By adopting the particle number preserving circuit, the HQCNN 210 can adopt a circuit configuration specialized for quantum chemical calculations with the Hartree-Fock state as the initial input, compared to the highly versatile non-patent document 2. This will enable improved convergence in systems with a large number of atoms, application to actual practical systems, a reduction in the number of circuit parameters, and therefore a reduction in the computational costs of quantum circuit training.
[0032] The feature extraction circuit 220 and the task-specific circuit 230 may have the same quantum gate configuration, or may have different quantum gate configurations. In addition, the arrangement of the encode gate 223 and the quantum operation gate 224 in the parametrized quantum circuit 221 with respect to the flow of quantum bits may be serial or parallel. In addition, the repetition structure of the encode gate 223 and the quantum operation gate 224 may be a one-time repetition structure as exemplified in FIG. 2, or a two-time or more repetition structure. The parametrized quantum circuit 221 may have a circuit configuration in which the encode gate 223 and the quantum operation gate 224 are serially repeated two or more times. Note that serial means that the block circuits of the encode gate 223 and the quantum operation gate 224 are repeated two or more times from the upstream to the downstream of the quantum bit. The parametrized quantum circuit 221 may have a circuit configuration in which the encode gate 223 and the quantum operation gate 224 are serially repeated two or more times.
[0033] Next, an example of quantum circuit learning for the first HQCNN 210-1 and the second HQCNN 210-2 by the quantum circuit learning system 1 will be described. In the following description, the first task of the first HQCNN is to calculate the ground state energy of a hydrogen molecule, and the second task of the second HQCNN is to calculate the ground state energy of a lithium hydride molecule. The hydrogen molecule and the lithium hydride molecule are two-atom molecules, with two electrons and four spin orbitals.
[0034] The first task and the second task are quantum chemical calculations using the variational quantum eigenvalue method (VQE), and specifically, the tasks are to estimate the ground-state potential energy surface (PES) of the target molecule. In this case, the classical data is molecular structure parameters that are explanatory variables that define the molecular structure of the target molecule. As the molecular structure parameters, the coordinates of each atom constituting the target molecule, the distance between each atom (bond length), the angle between bonds (bond angle), etc. are used. The number of atoms, the number of electrons, the number of spin orbitals, etc. of the molecular structure of the target molecule can be set arbitrarily. The first task and the second task are set to be the same type of task.
[0035] 3 is a diagram showing an example of a processing procedure of quantum circuit learning according to this embodiment. As shown in FIG. 3, first, the training unit 111 trains the first HQCNN based on a data set DS1 including classical data b1 (step S1). The classical data b1 is assumed to be an arbitrary hydrogen atom distance of a hydrogen molecule. The data set DS1 includes the hydrogen atom distance, which is the classical data b1, and the ground state energy value corresponding to the hydrogen atom distance, which is teacher data.
[0036] FIG. 4 is a diagram showing a schematic diagram of the training process of the first HQCNN 210-1 executed in step S1. As shown in FIG. 4, the number of quantum bits of the first HQCNN 210-1 is 4. The first HQCNN 210-1 has a feature extraction circuit 220A and a task-specific circuit 230A. |0> is applied to the feature extraction circuit 220A as an initial quantum state. The feature extraction circuit 220A has a parametrized quantum circuit 221A and a measurement layer 222A, and the parametrized quantum circuit 221A has a data encoding layer G0(b1) and a parametrized quantum circuit layer U(θ). The data encoding layer G0(b1) is a part where an encoding gate of the parametrized quantum circuit 221A is implemented, and the parametrized quantum circuit layer U(θ) is a part where a quantum operation gate of the parametrized quantum circuit 221A is implemented.
[0037] The data encoding layer G0(b1) has an encoding gate that encodes the classical data b1 to the feature extraction circuit 220A. The mathematical expression of the encoding gate is expressed by the following equation (1) for an n-qubit system.
[0038]
number
[0039] where g i represents a quantum gate (encode gate) for one quantum bit, and {b i} represents general classical data, and f i is the classical data {b i} into a quantum gate g i is a classical function that transforms the parameters of the quantum gate g i As an example, Ry({b i})H.
[0040]
number
[0041] The parametrized quantum circuit layer U(θ) performs a quantum rotation operation on a quantum bit according to a rotation angle parameter θ. The parametrized quantum circuit layer U(θ) consists of a one-qubit gate and two qubits that entangle the quantum bit, such as CNOT. The parametrized quantum circuit layer U(θ) plays an important role in the expressive capability of the first HQCNN 210-1, and the performance of the first HQCNN 210-1 depends heavily on the structure of the parametrized quantum circuit layer U(θ). A typical example of the first HQCNN 210-1 is a CX gate and R y There is a Real Amplitude type quantum circuit that alternates between a gate and a gate. For n quantum bits, the Real Amplitude type parametrized quantum circuit layer U(θ) is expressed as the following formula (3) when n is an odd number, and as the following formula (4) when n is an even number.
[0042]
number
[0043] FIG. 5 is a diagram showing a configuration example of a parametrized quantum circuit layer U(θ) when the number of quantum bits is n=4, and FIG. 6 is a diagram showing a configuration example of a parametrized quantum circuit layer U(θ) when the number of quantum bits is n=5. As an example, the block circuit of FIG. 5 (block circuit enclosed in brackets in the figure) has three CNOT gates and four Y-axis rotation gates that perform θ rotation around the Y axis. The block circuit of FIG. 6 (block circuit enclosed in brackets in the figure) has four CNOT gates and five Y-axis rotation gates that perform θ rotation around the Y axis. D in FIG. 5 and FIG. 6 means the depth of the circuit, which means the number of repetitions with the block circuit in the figure as a unit. The number of circuit parameters included in the parametrized quantum circuit layer U(θ) with n quantum bits and depth D is nD.
[0044] As shown in Fig. 4, the measurement layer 222 is sandwiched between the parametrized quantum circuit U(θ) of the feature extraction circuit 220A and the parametrized quantum circuit U(Θ) of the task-specific circuit 230A. The measurement layer 222 corresponds to an activation function in a classical neural network. In the measurement layer 222, the expectation value <σ of the Pauli-Z matrix (Pauli-Z) of each quantum bit is calculated using the first intermediate quantum state output from the parametrized quantum circuit of the previous stage. i z >Measure.
[0045] The task-specific circuit 230A includes a parameterized quantum circuit 231A and a measurement layer 232A, and the parameterized quantum circuit 231A includes a data encoding layer G({b1'}) and a parameterized quantum circuit layer U(Θ). |0> is applied to the task-specific circuit 230A as an initial quantum state.
[0046] The data encoding layer G({b1'}) has an encoding gate that encodes the measurement data {b1'} by the measurement layer 222 to the task-specific circuit 230A. i z > multiplied by π, {b1´}=π<σ i z > is substituted as a parameter of the data encoding layer G({b1´}). The mathematical expression of the encoding gate of the data encoding layer G({b1´}) is obtained by replacing (b) in equation (1) with {b1´}.
[0047] The parametrized quantum circuit layer U(Θ) performs a quantum rotation operation on a quantum bit according to the rotation angle parameter Θ. Like the parametrized quantum circuit layer U(Θ), the parametrized quantum circuit layer U(Θ) consists of a one-qubit gate and two qubits that entangle the quantum bit, such as CNOT. The mathematical expression of the parametrized quantum circuit layer U(Θ) can be obtained by replacing θ with Θ in equations (3) and (4).
[0048] The output layer 232 is a trial wave function of the output quantum state constructed by the parametrized quantum circuit layer U(Θ). <H H2 > is output as the output data.
[0049] The first HQCNN 210-1 shown in FIG. 4 is a 3D CNN that calculates the distance between hydrogen atoms in a hydrogen molecule, {b i} is given, the quantum state corresponding to the rotation angle parameter θ included in the parametrized quantum circuit U(θ) in the first stage and the rotation angle parameter Θ included in the parametrized quantum circuit U(Θ) in the second stage is calculated, and the expected value of the quantum state is output. The Hamiltonian of the hydrogen molecule is the hydrogen atom distance {b i}, it can be transformed into the qubit-Hamiltonian H defined by the tensor product of the Pauli matrices, given by the following equation (5), using the Jordan-Wigner transformation [Jordan and Wigner (1928)] or several other transformation methods [Bravi and Kitaev (2005); Seeley and Love (2012)].
[0050]
number
[0051] By applying the qubit Hamiltonian to the output quantum state obtained from the first HQCNN 210-1, the energy of the hydrogen molecule can be calculated. i The energy of the hydrogen molecule of {b i}, any hydrogen atom distance {b i}.
[0052] The training unit 111 optimizes the rotation angle parameters θ and Θ of the first HQCNN 210A based on the difference between the output data from the output layer 232 and the teacher data corresponding to the classical data b1. Specifically, the training unit 111 calculates a loss function that evaluates the difference between the output data and the teacher data, and updates the rotation angle parameters θ and Θ according to a predetermined optimization method so as to minimize the loss function.
[0053] The loss function is defined as the sum of the expectation value of the Hamiltonian for the output quantum state over the number of samples of the input data. Let the number of samples of the interatomic distance be α, {b i}={b0,b1,···b α-1 Specifically, the loss function <l>is defined by the following equation (6).
[0054]
number
[0055] As the optimization method, the Nelder-Mead method, the Powell method, the CG method, the Newton method, the BFGS method, the L-BFGS-B method, the TNC method, the COBYLA method, and / or the SLSQP method or any other arbitrary optimization method can be used. As the teacher data, a highly accurate energy expectation value calculated based on the corresponding classical data is used. As an example, as the teacher data, an exact solution calculated based on the classical data by a classical computer according to any highly accurate algorithm such as the FCI (Full Configuration Interaction Method) method or the CASCI (Complete Active Space CI) method may be used. Alternatively, as the teacher data, an experimental result for the input data may be used.
[0056] When the rotation angle parameters are updated, the training unit 111 judges whether or not to end the optimization of the rotation angle parameters. As an example, the training unit 111 judges whether or not a stopping condition for the optimization is satisfied. The stopping condition can be set to any condition, such as the number of updates reaching a predetermined number or the function value of the loss function reaching a threshold. If it is judged that the stopping condition is not satisfied, that is, if it is judged that the optimization is not to be ended, the above-mentioned update process is repeated for other samples. Then, if it is judged that the stopping condition is satisfied, that is, if it is judged that the optimization of the rotation angle parameters is to be ended, the training unit 111 updates the rotation angle parameters set at the current stage to the optimized parameters θ * and Θ * It is confirmed as such.
[0057] For the first HQCNN 210-1 with n qubits and depth D, the number of rotation angle parameters to be optimized is 2nD, and the input {b i}, the expected value needs to be calculated α times.
[0058] When step S1 is performed, the storage device 120 stores the rotation angle parameter θ * and Θ * The set of rotation angle parameters θ * and Θ * Each may be associated with a label that denotes the hydrogen molecule being studied.
[0059] When step S2 is performed, the training unit 111 performs the training on the rotation angle parameter θ * and Θ * From the set of * (Step S3). Step S3 may be initiated by an instruction to start quantum transfer learning. For example, the instruction may be input by an operator via the input device 130. Alternatively, step S3 may be automatically initiated when step S1 or S2 is completed.
[0060] When step S3 is performed, the training unit 111 performs the rotation angle parameter θ * to a feature extraction circuit included in the second HQCNN 210-2 (step S4). After step S4, the training unit 111 trains the second HQCNN 210-2 based on a data set DS2 including the classical data b2 (step S5).
[0061] 7 is a diagram showing a schematic diagram of the transfer process executed in step S4 and the training process of the second HQCNN executed in step S5. As shown in the upper part of FIG. 7, in step S1, the optimized rotation angle parameter θ * is the optimized rotation angle parameter Θ for the task-specific circuit. * has been obtained.
[0062] As shown in the lower part of Fig. 7, a second HQCNN 210-2 is prepared in the quantum computer 200. The second HQCNN 210-2 also has a circuit configuration similar to that of the first HQCNN 210-1, that is, it has a feature extraction circuit and a task-specific circuit. In step S4, the training unit 111 optimizes the optimized rotation angle parameter θ * to the feature extraction circuit included in the second HQCNN 210-2. In other words, the feature extraction circuit 220A included in the first HQCNN 210-1 is transferred to the second HQCNN 210-2.
[0063] The second HQCNN 210-2 learns the lithium hydride molecule LiH as an example. The lithium hydride molecule is similar to the hydrogen atom in that it is a diatomic molecule, but one of the constituent atoms is different. Since the feature extraction circuit 220B is expressed by four quantum bits, the qubit Hamiltonian of the lithium hydride molecule uses a two-electron, two-orbital model. Classical data b2 is used as input data to the second HQCNN 210-2. The classical data b2 is the interatomic distance of the lithium hydride molecule, that is, the distance between the hydrogen atom and the lithium atom.
[0064] The feature extraction circuit F({b2},θ * ) constructs a second initial quantum state by applying an encoding gate to the qubit with classical data b2 assigned, and then adjusts the rotation angle parameter θ * The task-specific circuit G({b2´})U(Φ) operates a data encoding layer G({b2´}) having an encoding gate to which the measurement data b2´ is assigned, on the qubit to construct a second initial quantum state, operates a parametrized quantum circuit layer U(Φ) having a quantum operation gate to which a rotation angle parameter Φ is assigned, on the second initial quantum state to convert it to a second output quantum state, and outputs a qubit Hamiltonian (second output data) corresponding to the second output quantum state.
[0065] In step S5, the training unit 111 trains the second HQCNN 210-2 based on the data set DS2 including the classical data b2. Specifically, the training unit 111 trains the feature extraction circuit F({b2},θ * ) Optimized rotation angle parameter θ * While fixing, the second HQCNN 210-2 is trained to optimize the rotation angle parameter Φ of the task-specific circuit G({b2´})U(Φ) based on the difference between the second output data and the teacher data corresponding to the classical data b2. Here, the training unit 111 calculates a loss function that evaluates the difference between the output data and the teacher data, and updates the rotation angle parameter Φ according to the optimization method described above so as to minimize the loss function. The loss function is calculated by replacing Θ with Φ in the above equation (6) and replacing θ with θ * In the training of the second HQCNN210-2, θ * is fixed.
[0066] When the rotation angle parameter Φ is updated, the training unit 111 judges whether or not to end the optimization of the rotation angle parameter Φ. As an example, the training unit 111 judges whether or not a stopping condition for the optimization is satisfied. The stopping condition can be set to any condition, such as the number of updates reaching a predetermined number or the function value of the loss function reaching a threshold. If it is determined that the stopping condition is not satisfied, that is, if it is determined that the optimization is not to be ended, the above update process is repeated for other samples. Then, if it is determined that the stopping condition is satisfied, that is, if it is determined that the optimization of the rotation angle parameter Φ is to be ended, the training unit 111 updates the rotation angle parameter set at the current stage to the optimized parameter Φ. * This completes the optimized second HQCNN 210-2.
[0067] The optimized second HQCNN 210-2 is a quantum-classical hybrid neural network trained for a second task, and includes parameters θ 1 , θ 2 , θ 3 , θ 4 , θ 5 , θ 6 , θ 7 , θ 8 , θ 9 , θ 10 , θ 11 , θ 12 , θ 13 , θ 14 , θ 15 , θ 26 , θ 37 , θ 16 , θ 27 , θ 38 , θ 17 , θ 28 , θ 39 , θ 47 , θ 58 , θ 18 , θ 29 , θ 39 , θ 47 , θ 58 , θ 29 , θ 39 , θ 47 , θ * and a feature extraction circuit with parameters Φ optimized for a second task, which follows the feature extraction circuit. * The feature extraction circuit has an encoding gate for encoding classical data, which is an explanatory variable, and a parameter θ * The task-specific circuit includes a parameterized quantum circuit having a quantum operation gate for performing a quantum operation according to Φ on the quantum bit, and a measurement layer for outputting measurement data of the quantum bit. The task-specific circuit includes an encoding gate for encoding the measurement data and a parameter Φ * and an output layer that outputs output data representing the quantum state of the quantum bit.
[0068] When step S5 is performed, the storage device 120 stores the rotation angle parameter θ * and Φ * The set of rotation angle parameters θ is saved (step S6). * and Φ * Each may be associated with a label that refers to the lithium hydride molecule being studied.
[0069] With the above, quantum circuit learning for the first HQCNN 210-1 and the second HQCNN 210-2 by the quantum circuit learning system 1 is completed.
[0070] When the feature extractor F in the quantum transfer learning is applied to the quantum chemical calculation shown in Figure 3, the classical input information (classical data) is the hydrogen atom distance {b i } can be regarded as a quantum circuit that extracts features of a molecular structure from the n quantum bits and the depth D of the second HQCNN 210-2. By using the quantum circuit learning method according to this embodiment, the number of parameters to be optimized can be reduced from 2nD to nD.
[0071] The quantum transfer learning according to this embodiment can be used between different tasks in which the data structure of classical data, which is input data, is similar. The feature extractor F can extract the structure of the target molecule given as classical data as abstracted information. Therefore, in the above embodiment, the feature extractor F is generated based on classical data related to H2, which is a diatomic molecule, for the first HQCNN 210-1, but this embodiment is not limited to this, and may be generated based on other molecules other than diatomic molecules. In addition, by generating the feature extractor F based on classical data related to polyatomic molecules of diatomic or more, the feature extractor F can extract features of more complex structures. In this embodiment, the feature extractor F obtained in this way can be transferred to an HQCNN whose task is quantum chemical calculation of molecules with similar molecular structures. In addition to quantum chemical calculation, it can also be applied to materials informatics, which has similar classical input information.
[0072] The quantum circuit learning method according to this embodiment is intended for HQCNNs that not only perform measurements on the final layer, but also sandwich measurement layers between parametrized quantum circuits, and uses block circuits including intermediate measurement layers for transfer learning. This makes it possible to realize transfer learning of quantum circuits that realize nonlinear operations that go beyond the scope of linear operations, and therefore makes it possible to realize highly accurate quantum machine learning models, particularly in quantum chemical calculations.
[0073] The above quantum circuit learning system 1 is an example, and can be modified, added, and / or deleted as appropriate without departing from the gist of the invention. As an example, as shown in FIG. 1, the quantum circuit learning system 1 has a classical computer 100 and a quantum computer 200. However, the present embodiment is not limited to this, and the classical computer 100 may be incorporated into the quantum computer 200, or the quantum computer 200 may be incorporated into the classical computer 100.
[0074] As another example, in FIG. 2 etc., the task-specific circuit 220 has the parametrized quantum circuit 231 and the output layer 232, but one or more blocks of a parametrized quantum circuit and a measurement layer may be connected between the parametrized quantum circuit 231 and the output layer 232. In this case, the multiple parametrized quantum circuits are connected via the measurement value of the immediately preceding measurement layer 222. This makes it possible to handle complex quantum chemical calculations.
[0075] An example of the quantum chemical calculation according to this embodiment will be described below.
[0076] Example 1 The molecules to be processed in Example 1 are H2 molecules, LiH molecules, and HF molecules. Numerical simulations were performed using the electronic Hamiltonians of these molecules. In Example 1, existing open source libraries PySCF (see Reference 1 (Q. Sun, TC Berkelbach, NS Blunt, GH Booth, S. Guo, Z. Li, J. Liu, JD McClain, ER Sayfutyarova, S. Sharma, S.Wouters, and GK Chan, Wiley Interdisciplinary Reviews: Computational Molecular Science 8, e1340 (2017))) and OpenFermion (see Reference 2 (JR McClean, KJ Sung, ID Kivlichan, Y. Cao, C. Dai, ES Fried, C. Gidney, B. Gimby, P. Gokhale, T. Hner, T. Hardikar, V. Havlek, O. Higgott, C. Huang, J. Izaac, Z. Jiang, X. Liu, S. McArdle, M. Neeley, T. O'Brien, B. O'Gorman, I. Ozdan, MD Radin, J. Romero, N. Rubin, NPD Sawaya, K. Setia, S. Sim, DS Steiger, M. Steudtner, Q. Sun, W. Sun, D. Wang, F. Zhang, and R. Babbush, (2017), arXiv:1710.07629.) was used to calculate the Hamiltonian. Quantum circuits were simulated using Qiskit (Reference 3 (G. Aleksandrowicz,T. Alexander, P. Barkoutsos, L. Bello, Y. Ben-Haim,D. Bucher, F.Jose Cabrera-Hern1andez, J. Carballo-Franquis, A. Chen, C. Chen, J. Chow, A.Corcoles-Gonzales, A. Cross, A. Cross, J. Cruz-Benito, C. Culver, S. Gonzalez, E. Torre, D, Ding, E. Dumitrescu, I.Durán, P. Eendebak, M. Everitt, I. Sertage, A. Frisch, A. Fuhrer, J. Gambetta, B. Gambetta, J. Gomez, D. Gomez, D. Gomez. Greenberg, I. Hamamura, V. Havlicek, J. Hellmers, L. Herok, H. Horii, S. Hu, T. Imamichi, T. Itoko, A. Javadi-Abhari, N. Kanazawa, A. Karazeev, K. Krsulich, P. Liu, Y. Luh, Y. Maeng, M. Marques, Martin-Fernand, D. McCrell, D. McCrell. McKay, S. Meesala, A. Mezzacapo, N. Moll, D. Rodriguez, G. Nannicini, P. Nation, P. Ollitrault, L. O'Riordan, H. Paik, J. Perez, A. Phan, M. Pistoia, V. Prutyanov, M. Reuter, J. Davi Rice, A. R. Rudy, N. Rudy, M. Ryu, Ryu, Ryu. C. Schnabel, E. Schoute, K. Setia, Y. Shi, A. Silva, Y. Siraichi, S. Sivarajah, J. Smolin, M. Soeken, H. Takahashi, I. Tavernelli, C. Taylor, P. Taylour, K. Trabing, M. Treinish, W. Turner, D. C. Vogt-Lee, J. Wilson, J. Wilstrom, J. Wilstrom, H. Takahashi. E. Winston, J. Wood, S. Wood, S. Worner, I. Akhalwaya, J. Zoufalhttps.https: / / doi.org / 10.5281 / zenodo.2562111, (2019) An Open-source Framework for Quantum Computing) was used.
[0077] FIG. 8 is a diagram showing a graph representing the results of a numerical simulation of the H2 molecule according to the first embodiment. In the graph on the left side of FIG. 8, the vertical axis is defined as the potential energy E [hartree] of the ground state of the H2 molecule, and the horizontal axis is defined as the bond length [Å] between hydrogen atoms. In the graph on the right side of FIG. 8, the vertical axis is defined as the absolute error ΔE [hartree] of the ground state of the H2 molecule, and the horizontal axis is defined as the bond length [Å] between hydrogen atoms. The square plot represents the results of a numerical simulation of the ground state of the H2 molecule using the first HQCNN set to n=4 and D=4. The number of iterations of the variational optimization is 1000. The number of parameters to be optimized is 2nD=32. The solid line represents the FCI (Full Configuration Interaction Method), which is the exact solution. As shown in FIG. 8, the inference error is below the chemical accuracy over the entire range of the specified interatomic distances, and sufficient accuracy is obtained.
[0078] FIG. 9 is a diagram showing a graph representing the results of a numerical simulation of the LiH molecule according to Example 1. In the graph on the left side of FIG. 9, the vertical axis is defined as the potential energy E [hartree] of the ground state of the LiH molecule, and the horizontal axis is defined as the bond length [Å] between the lithium atom and the hydrogen atom. In the graph on the right side of FIG. 8, the vertical axis is defined as the absolute error ΔE [hartree] of the ground state of the LiH molecule, and the horizontal axis is defined as the bond length [Å] between the lithium atom and the hydrogen atom. The circular plot represents the results of a numerical simulation by the second HQCNN (indicated as F-HQCNN in the figure) obtained by the transfer learning according to this embodiment. The number of iterations of the variational optimization is 10. In F-HQCNN, n=4 and D=4, and the feature extraction circuit used is the feature extraction circuit F extracted from the HQCNN obtained in FIG. 8. The number of iterations is not particularly limited and can be changed as appropriate. For example, the number of iterations may be set in advance or adaptively according to the degree of convergence of the calculation error, the calculation time, etc. In this embodiment, it is preferable to perform the process about 10 times.
[0079] FIG. 10 is a diagram showing a graph representing the results of a numerical simulation according to a comparative example corresponding to FIG. 9. The square plots shown in FIG. 10 represent the results of a numerical simulation by HQCNN described in Non-Patent Document 2, which does not perform transfer learning. The number of iterations of variational optimization is 10. As can be seen from a comparison between FIG. 9 and FIG. 10, the HQCNN according to the comparative example has a large error with CASCI, which is a strict solution in a two-electron, two-orbital model, and F-HQCNN according to this embodiment matches the CASCI solution with better accuracy. In addition, in order to perform learning using the HQCNN according to the comparative example to achieve the same level of accuracy as F-HQCNN according to this embodiment, variational optimization is required 100 times or more. Therefore, in the F-HQCNN according to this embodiment, the number of variational optimizations can be reduced by about one order of magnitude, thereby realizing a reduction in the learning cost. Furthermore, since the number of parameters to be optimized in F-HQCNN is nD=16, the calculation cost required for one optimization can also be reduced compared to HQCNN.
[0080] Example 2 The molecules to be treated in the second embodiment are hydrogen fluoride molecules (HF molecules).
[0081] FIG. 11 is a diagram showing a graph representing the results of the numerical simulation according to the second embodiment. In the graph on the left side of FIG. 11, the vertical axis is defined as the potential energy E [hartree] of the ground state of the HF molecule, and the horizontal axis is defined as the bond length [Å] between the fluorine atom and the hydrogen atom. In the graph on the right side of FIG. 11, the vertical axis is defined as the absolute error ΔE [hartree] of the ground state of the HF molecule, and the horizontal axis is defined as the bond length [Å] between the fluorine atom and the hydrogen atom. The circle plot shows the results of the numerical simulation using F-HQCNN set to n=4 and D=6. The number of iterations of the variational optimization is 100. Here, F-HQCNN is the second HQCNN transferred from the feature extractor obtained with the hydrogen molecule described in the first embodiment. The solid line in the graph on the left side represents the CASCI solution, which is the exact solution, and the dotted line in the graph on the right side represents the chemical accuracy.
[0082] FIG. 12 is a graph showing the results of a numerical simulation of the HQCNN according to the comparative example corresponding to FIG. 11. The square plots shown in FIG. 12 show the results of a numerical simulation using the HQCNN according to the comparative example with n=4 and D=6. The number of iterations of the variational optimization is 100. As can be seen from a comparison between FIG. 11 and FIG. 12, in the HQCNN according to the comparative example shown in FIG. 12, there is a region of interatomic distances where the error with the CASCI solution is large, while in the F-HQCNN according to the present embodiment shown in FIG. 11, it can be seen that accurate inference is possible over the entire range of interatomic distances. Unlike hydrogen molecules, HF molecules have strong ionic bonds and a different bonding pattern from hydrogen molecules, but it can be seen that a quantum machine learning model that accurately infers the PES of HF molecules can be created even if the information of the quantum circuit optimized with hydrogen molecules is diverted. As described above, it can be seen that a quantum machine learning model that predicts the properties of polyatomic molecular systems and molecular systems with different bonding patterns can be created using information on the quantum circuit using the simplest hydrogen molecules. Transfer learning using conventional classical data is used when learning another special system at low cost using a part of a model learned using a lot of data. The quantum transfer learning according to this embodiment differs from conventional transfer learning in that a special system can be used to learn another special system.
[0083] Example 3 In Example 3, in order to further reduce the computational cost required for learning, the circuit depth D of the parametrized quantum circuit of the feature extraction circuit in the first HQCNN (hereinafter referred to as pre-HQCNN) that learns hydrogen molecules is F We reduced the number of iterations from 4 to 2. The circuit depth of the task-specific parametrized quantum circuit is D=4.
[0084] FIG. 13 is a diagram showing graphs representing the results of the numerical simulation according to Example 3. In the graph on the left side of FIG. 13, the vertical axis is defined as the potential energy E [hartree] of the ground state of the H2 molecule, and the horizontal axis is defined as the bond length [Å] between hydrogen atoms. In the graph on the right side of FIG. 8, the vertical axis is defined as the absolute error ΔE [hartree] of the ground state of the H2 molecule, and the horizontal axis is defined as the bond length [Å] between hydrogen atoms. The square plots shown in FIG. 13 are D F = 2, D = 4 and n M We present the results of numerical simulations of HQCNN with the setting of D = 4. F By reducing from 4 to 2, the number of parameters to be optimized is reduced from 32 to 24. Comparing Figure 13 with Figure 8, D F Example 3 of =2 is D F Although the accuracy is slightly lower than in Example 1 with =4, it can be seen that learning and inference are possible with relatively good accuracy over the entire range of interatomic distances. Therefore, the circuit depth of the parametrized quantum circuit included in the feature extraction circuit can be reduced according to the required accuracy.
[0085] Fig. 14 is a diagram showing graphs representing other numerical simulation results according to Example 3. In the graph on the left side of Fig. 14, the vertical axis is defined as the potential energy E [hartree] of the ground state of the H2 molecule, and the horizontal axis is defined as the bond length [Å] between hydrogen atoms. In the graph on the right side of Fig. 14, the vertical axis is defined as the absolute error ΔE [hartree] of the ground state of the H2 molecule, and the horizontal axis is defined as the bond length [Å] between hydrogen atoms. The square plots shown in Fig. 14 are plots representing the number n of quantum bits in the measurement layer of the feature extraction circuit. M 4 qubits (n M =4) to one quantum bit (n M = 1). Comparing Fig. 14 with Fig. 8, n M Example 3 for n = 1 M Although the accuracy is slightly lower than in Example 1 where n = 4, it can be seen that learning and inference are possible with relatively good accuracy over the entire range of interatomic distances. M can be reduced depending on the required accuracy.
[0086] Thus, it is possible to provide a quantum circuit training method, a quantum circuit training system, and a quantum-classical hybrid neural network that can reduce the computational cost required for training.
[0087] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0088] 1...quantum circuit learning system, 100...classical computer, 110...processing circuit, 111...training unit, 112...display control unit, 120...storage device, 130...input device, 140...communication device, 150...display device, 200...quantum computer, 210...HQCNN, 210-1...first HQCNN, 210-2...second HQCNN, 220...feature extraction circuit, 221...parametrized quantum circuit, 222...measurement layer, 223...encoding gate, 224...quantum operation gate, 225...encoding parameters, 226...rotation angle parameters, 230...task-specific circuit, 231...parametrized quantum circuit, 232...output layer, 233...encoding gate, 234...quantum operation gate, 235...encoding parameters, 236...rotation angle parameters, 240...classical data, 250...output data, 260...measurement data.< / l>
Claims
1. A step of reading out optimized first parameters assigned to a first feature extraction circuit included in a trained first quantum circuit for a first task, the first quantum circuit being trained based on a first data set related to first classical data that is an explanatory variable, the first feature extraction circuit including a parametrized quantum circuit having an encoding gate for encoding the first classical data and a quantum operation gate for performing a quantum operation on a quantum bit according to the first parameters, and a measurement layer for outputting first measurement data of the quantum bit; a transfer step of transferring the first parameters to a second feature extraction circuit included in a second quantum circuit for a second task, the second feature extraction circuit including a parametrized quantum circuit having an encoding gate for encoding second classical data representing explanatory variables common to the first classical data and a quantum operation gate for performing a quantum operation on a quantum bit according to the first parameters, and a measurement layer for outputting second measurement data of the quantum bit; training the second quantum circuit based on a second data set on the second classical data while fixing the first parameters transferred to the second feature extraction circuit, optimizing second parameters of a task-specific circuit of the second quantum circuit subsequent to the second feature extraction circuit, the task-specific circuit including a parametrized quantum circuit having an encoding gate for encoding the second measurement data and a quantum operation gate for applying a quantum operation to a quantum bit according to the second parameters; A quantum circuit learning method comprising:
2. 2. The quantum circuit training method according to claim 1, further comprising a pre-training step of training the first quantum circuit based on the first data set regarding the first classical data, and optimizing the first parameters assigned to the first feature extraction circuit included in the first quantum circuit.
3. The quantum circuit learning method according to claim 1 , wherein the parametrized quantum circuit is a Real Amplitude type quantum circuit or a quantum circuit that preserves the number of particles.
4. The quantum circuit learning method according to claim 3 , wherein the quantum circuit that conserves the number of particles performs quantum operations on a Hartree-Fock state.
5. The quantum circuit learning method according to claim 1 , wherein the first parameter and / or the second parameter controls a rotation angle of a quantum gate that performs a quantum rotation operation.
6. The quantum circuit learning method according to claim 1 , wherein the second feature extraction circuit and the task-specific circuit have quantum gate configurations different from each other.
7. 2. The quantum circuit learning method according to claim 1, wherein the measurement layer included in the first feature extraction circuit and / or the second feature extraction circuit outputs, as the first measurement data and / or the second measurement data, an expectation value of an observable defined by an arbitrary tensor product of Pauli operators for a quantum state constructed by the parametrized quantum circuit.
8. 2. The quantum circuit training method according to claim 1, wherein the training step optimizes the second parameter using a classical computer, a Nelder-Mead method, a Powell method, a CG method, a Newton method, a BFGS method, an L-BFGS-B method, a TNC method, a COBYLA method, and / or an SLSQP method.
9. 2. The quantum circuit learning method according to claim 1, wherein the parametrized quantum circuit has a circuit configuration in which the encoding gate and the quantum operation gate are repeated in series two or more times.
10. a quantum computing unit that applies classical data representing explanatory variables to a first quantum circuit and outputs output data corresponding to the classical data, the first quantum circuit having a feature extraction circuit to which an optimized first parameter is assigned, and a task-specific circuit subsequent to the feature extraction circuit to which an optimizable second parameter is assigned, the feature extraction circuit including a parametrized quantum circuit having an encode gate for encoding the classical data and a quantum operation gate for performing a quantum operation on a quantum bit according to the first parameter, and a measurement layer that outputs measurement data of the quantum bit, the task-specific circuit including a parametrized quantum circuit having an encode gate for encoding the measurement data and a quantum operation gate for performing a quantum operation on a quantum bit according to the second parameter, and an output layer that outputs output data representing a quantum state of the quantum bit; a training unit that trains the first quantum circuit based on a difference between the output data and teacher data corresponding to the classical data while fixing the first parameter of the feature extraction circuit, and optimizes the second parameter of the task-specific circuit; A quantum circuit learning system comprising:
11. 1. A hybrid quantum-classical neural network trainable for a target task, comprising: a feature extraction circuit to which a first parameter optimized for another task, which is extracted from another quantum-classical hybrid neural network trained for another task different from the target task, is assigned; and a task-specific circuit following the feature extraction circuit to which a second parameter that can be optimized for the target task is assigned; The feature extraction circuit includes a parametrized quantum circuit having an encoding gate for encoding first classical data that is an explanatory variable and a quantum operation gate for performing a quantum operation on a quantum bit according to the first parameter, and a measurement layer that outputs measurement data of the quantum bit; The task-specific circuit includes a parametrized quantum circuit having an encoding gate for encoding the measurement data and a quantum operation gate for performing a quantum operation on a quantum bit according to the second parameter, and an output layer for outputting output data representing a quantum state of the quantum bit. Hybrid quantum-classical neural network.
12. A hybrid quantum-classical neural network trained for a target task, comprising: a feature extraction circuit to which a first parameter optimized for another task, which is extracted from another quantum-classical hybrid neural network trained for another task different from the target task, is assigned; and a task-specific circuit following the feature extraction circuit to which a second parameter optimized for the target task is assigned; The feature extraction circuit includes a parametrized quantum circuit having an encoding gate for encoding classical data that is an explanatory variable and a quantum operation gate for performing a quantum operation on a quantum bit according to the first parameter, and a measurement layer that outputs measurement data of the quantum bit; The task-specific circuit includes a parametrized quantum circuit having an encoding gate for encoding the measurement data and a quantum operation gate for performing a quantum operation on a quantum bit according to the second parameter, and an output layer for outputting output data representing a quantum state of the quantum bit. Hybrid quantum-classical neural network.
Citation Information
Patent Citations
Quantum Neural Network
JP2020522805A
Estimation device, training device, estimation method, and training method
WO2021054402A1
Cited By
Computer program, quantum circuit control method, and information processing apparatus
EP4835754A1
Quantum circuit control program, quantum circuit control method, and information processing device.
JP2026180650A
Quantum machine learning training methods and electronic devices
JP7834908B1
