Method, device, system, equipment, and program for preparing thermalized state in quantum system

By integrating a neural network with a parameterized quantum circuit to process quantum states, the method addresses inefficiencies in preparing thermalized states, achieving enhanced efficiency and accuracy in quantum system thermalization.

JP7548530B2Active Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023538921
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-12-06
Filing Date
2022-11-18
Publication Date
2024-09-10
Estimated Expiration
2042-11-18

AI Technical Summary

Technical Problem

Current methods for preparing thermalized states in quantum systems using parameterization circuits are inefficient due to the need for exponential resources in measuring Gibbs entropy, which is a nonlinear logarithmic function of the density matrix, requiring state tomography.

Method used

A method involving a parameterized quantum circuit and a neural network is used to process input quantum states, where measurement results are processed by a neural network to obtain weight parameters, and variational parameters are adjusted to converge the expected value of an objective function, allowing for the preparation of a thermalized state.

Benefits of technology

This approach enhances the efficiency and accuracy of preparing thermalized states by strengthening the expressive ability of the circuit through neural network post-processing, enabling more efficient and accurate adjustment of thermal states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007548530000040
    Figure 0007548530000040
  • Figure 0007548530000041
    Figure 0007548530000041
  • Figure 0007548530000042
    Figure 0007548530000042
Patent Text Reader

Abstract

A method, device and storage medium for preparing a thermalized state in a quantum system, which is related to the quantum technology field, are provided. The method includes the steps of: acquiring n sets of measurement results obtained after performing a conversion process on an input quantum state of a combinational qubit through a parameterized quantum circuit (210); processing the second measurement results by a neural network to obtain weight parameters (220); calculating a correlation function value of a mixed state of a target quantum system based on the weight parameters and the first measurement results (230); calculating an expectation value of an objective function based on the correlation function value of the mixed state (240); adjusting a variation parameter so that the expectation value of the objective function converges (250); and acquiring a mixed state of a target quantum system for approximately expressing the thermalized state of the target quantum system when the expectation value of the objective function satisfies a convergence condition (260). The present invention can prepare a thermalized state more efficiently and accurately.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention claims priority to a Chinese patent application filed on December 6, 2021, bearing application number 202111479010.4 and entitled "Method, apparatus and storage medium for preparing thermalized state in quantum system," the entire contents of which are incorporated herein by reference.

[0002] The present invention relates to the field of quantum technology, and in particular to a method, an apparatus and a storage medium for preparing a thermalized state in a quantum system. [Background technology]

[0003] Some existing research has proposed schemes to prepare a thermalized state using a parameterized circuit. Taking the preparation of a Gibbs thermalized state as an example, the loss function for parameter optimization in a parameterized circuit is the Gibbs free energy, and it is necessary to measure the Gibbs entropy in this Gibbs free energy.

[0004] In the conventional scheme of preparing thermalized states by parameterized circuits, a mixed state is prepared in the system qubits by obtaining partial traces of the ancillary qubits. In this case, the Gibbs entropy of this mixed state is a nonlinear logarithmic function of the density matrix, so it cannot be measured directly and efficiently, and requires state tomography, which consumes exponential resources. "Exponential resources" here means that the measurement takes a large amount of time because the number of measurements is exponentially related to the number of system qubits.

[0005] Therefore, the current scheme for adjusting the thermalization state by parameterization circuits is inefficient. Summary of the Invention

[0006] The embodiments of the present invention provide a method, an apparatus and a storage medium for preparing a thermalized state in a quantum system, the technical means of which are as follows:

[0007] In one aspect of an embodiment of the present invention, a method for preparing a thermalized state in a quantum system, executed by a computing device, includes the steps of: performing a transformation operation on an input quantum state of a combinational qubit via a parameterized quantum circuit, and then performing n measurements on an output quantum state of the parameterized quantum circuit to obtain n sets of measurement results obtained by performing n measurements on an output quantum state of the parameterized quantum circuit, the combinational qubit including an ancillary qubit and a system qubit of a target quantum system, each set of measurement results including a first measurement result corresponding to the system qubit and a second measurement result corresponding to the ancillary qubit, n being a positive integer; and processing the second measurement results using a neural network to weight the second measurement results. calculating a correlation function value of a mixed state of the target quantum system based on the weighting parameters and the first measurement result; calculating an expectation value of an objective function based on the correlation function value of the mixed state; adjusting variational parameters such that the expectation value of the objective function converges, the variational parameters including at least one of a parameter of the parameterized quantum circuit and a parameter of the neural network; and obtaining a mixed state of the target quantum system to approximately represent a thermalized state of the target quantum system if the expectation value of the objective function satisfies a convergence condition.

[0008] In another aspect of an embodiment of the present invention, an apparatus for preparing a thermalized state in a quantum system includes a measurement result acquisition module that acquires n sets of measurement results obtained by performing n measurements on an output quantum state of a combinational quantum bit after performing a conversion process on an input quantum state of the combinational quantum bit via a parameterized quantum circuit, the combinational quantum bit including an ancillary quantum bit and a system quantum bit of a target quantum system, each set of measurement results including a first measurement result corresponding to the system quantum bit and a second measurement result corresponding to the ancillary quantum bit, n being a positive integer; and a weight parameter acquisition module that processes the second measurement results using a neural network to acquire weight parameters. a correlation function calculation module that calculates a correlation function value of a mixed state of the target quantum system based on the weight parameters and the first measurement result; an objective function calculation module that calculates an expectation value of an objective function based on the correlation function value of the mixed state; a variational parameter adjustment module that adjusts variational parameters so that the expectation value of the objective function converges, the variational parameters including at least one of a parameter of the parameterized quantum circuit and a parameter of the neural network; and a thermalized state acquisition module that acquires a mixed state of the target quantum system to approximately represent a thermalized state of the target quantum system when the expectation value of the objective function satisfies a convergence condition.

[0009] In another aspect of the embodiment of the present invention, there is provided a computer device for implementing the above-mentioned method for preparing a thermalized state in a quantum system, preferably the computer device being an execution environment of a quantum computer, a classical computer, or a hybrid device of a quantum computer and a classical computer.

[0010] Another aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded and executed by a processor to realize the method for preparing a thermalized state in a quantum system as described above.

[0011] Another aspect of an embodiment of the present invention provides a computer program product including a computer program stored in a computer-readable storage medium, the computer program product being configured to read and execute the computer program from the computer-readable storage medium by a processor to realize the method for preparing a thermalized state in a quantum system as described above.

[0012] In another aspect of an embodiment of the present invention, a system for preparing a thermalized state in a quantum system includes a parameterized quantum circuit and a computer device, the parameterized quantum circuit performs a transformation process on an input quantum state of a combinational qubit to obtain an output quantum state of the parameterized quantum circuit, the combinational qubit including an ancillary qubit and a system qubit of a target quantum system, the computer device obtains n sets of measurement results obtained by performing n measurements on the output quantum state of the parameterized quantum circuit, each set of measurement results including a first measurement result corresponding to the system qubit and a second measurement result corresponding to the ancillary qubit, n being a positive integer, and the computer device a computer device processes the second measurement result using a neural network to obtain weight parameters, calculates a correlation function value of a mixed state of the target quantum system based on the weight parameters and the first measurement result, and calculates an expectation value of an objective function based on the correlation function value of the mixed state; the computer device adjusts variational parameters so that the expectation value of the objective function converges; and if the expectation value of the objective function satisfies a convergence condition, obtains a mixed state of the target quantum system to approximately represent a thermalized state of the target quantum system, and the variational parameters include at least one of parameters of the parameterized quantum circuit and parameters of the neural network.

[0013] The technical solutions according to the embodiments of the present invention have at least the following advantageous effects.

[0014] In preparing the thermalized state of the target quantum system, a neural network post-processing scheme is introduced to first process the input quantum states of the system qubits and the auxiliary qubits by the parameterized quantum circuit, then process the measurement results corresponding to the auxiliary qubits by the neural network, obtain the corresponding weight parameters, use the weight parameters to approximately represent the probability in the mixed state, calculate the expectation value of the objective function based on the correlation function value of the constructed mixed state, optimize the parameters of the parameterized quantum circuit and the neural network so that the expectation value of the objective function converges, and obtain the mixed state of the target quantum system to approximately represent the thermalized state of the target quantum system when the expectation value of the objective function satisfies the convergence condition. The present invention introduces a neural network to output weight parameters, and uses the weight parameters to adjust the weights corresponding to the measurement results of different auxiliary qubits, so that the trainable parameters of the neural network can enhance the expressive ability of the entire circuit, and more efficiently and accurately prepare the thermalized state. [Brief description of the drawings]

[0015] [Figure 1] FIG. 2 is a schematic diagram of a preparation architecture for a thermalized state in a quantum system according to one embodiment of the present invention. [Diagram 2] 1 is a flowchart of a method for preparing a thermalized state in a quantum system according to one embodiment of the present invention. [Diagram 3] 4 is a flowchart of a method for preparing a thermalized state in a quantum system according to another embodiment of the present invention. [Figure 4] FIG. 2 is a schematic diagram of experimental results according to one embodiment of the present invention. [Diagram 5] FIG. 11 is a schematic diagram of an experimental result according to another embodiment of the present invention. [Figure 6] FIG. 11 is a schematic diagram of an experimental result according to another embodiment of the present invention. [Figure 7] 1 is a block diagram of an apparatus for preparing a thermalized state in a quantum system according to one embodiment of the present invention. [Figure 8]1 is a schematic diagram of a computing device according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] In order to make the objectives, solutions and advantages of the present invention clearer, the following describes the embodiments of the present invention in more detail with reference to the drawings.

[0017] Before describing the technical scheme of the present invention, some important terms related to the present invention will be explained.

[0018] 1. Quantum computing: A computing method based on quantum logic, in which the basic unit for storing data is a quantum bit (qubit).

[0019] 2. Quantum bit: The basic unit of quantum computing. Conventional computers use 0 and 1 as the basic binary units. Quantum computing, unlike conventional computers, can process 0 and 1 simultaneously, and the system is in a linear superposition of 0 and 1 states. (outside 1) JPEG0007548530000001.jpg11123, where α, β represent the complex probability width of 0 and 1, whose modulo squared |α| 2 , |β| 2 represent the probabilities of 0 and 1, respectively.

[0020] 3. Quantum Circuit: A representation of a quantum general-purpose computer, which represents the hardware realization of the quantum gate model of the corresponding quantum algorithm / program. If the quantum circuit contains variable parameters that control the quantum gates, it is called a Parameterized Quantum Circuit (PQC) or Variational Quantum Circuit (VQC), and both are the same concept.

[0021] 4. Hamiltonian: A matrix that represents the Hermitian conjugate of the total energy of a quantum system. Hamiltonian is a physics term that represents the total energy of a system, usually denoted by H.

[0022] 5. Eigenstate: For the Hamiltonian matrix H, the equation (outside 2) The solution that satisfies JPEG0007548530000002.jpg11123 is the eigenstate of H (Outside 3) JPEG0007548530000003.jpg11123 and has eigenenergy E. The ground state corresponds to the lowest energy eigenstate of the quantum system.

[0023] 6. Quantum-classical hybrid computing: This is a computational paradigm in which the inner layer uses a quantum circuit (e.g., PQC) to calculate the corresponding physical quantity or loss function, and the outer layer uses a traditional classical optimizer to adjust the quantum circuit variation parameters. This can maximize the advantages of quantum computing and is believed to be one of the important directions for proving quantum supremacy with potential.

[0024] 7. NISQ (Noisy Intermediate-Scale Quantum): This is the latest medium-scale noisy quantum hardware, which is the current stage and research focus of the development of quantum computing. Quantum computing at this stage cannot be applied as a general-purpose computing engine due to the limitations of scale and noise, but in some problems it can achieve results that exceed those of the most powerful classical computers, which is usually referred to as quantum supremacy or quantum advantage.

[0025] 8. Variational Quantum Eigensolver (VQE): This method uses a variational circuit (i.e., PQC / VQC) to estimate the ground state energy of a specific quantum system. It is a typical quantum-classical hybrid computing paradigm and has been widely applied in the quantum chemistry field.

[0026] 9. Post-selection: Selecting whether to keep or discard a measurement result output by a quantum computer based on the specific value of a bitstring corresponding to a certain bit is called post-selection. Post-selection is present in many current research focus areas, including but not limited to the realization of LCU (linear combinations of unitary operations) by combination of linear unitary matrices and measurement-induced entanglement entropy phase transition.

[0027] 10. Pauli string: In terms consisting of a direct product of multiple Pauli matrices at different lattice points, a general Hamiltonian can usually be decomposed into a sum of a set of Pauli strings. VQE measurements are also usually measured term by term according to the Pauli string decomposition.

[0028] 11.Non-unitary: A unitary matrix is (outside 4) JPEG0007548530000004.jpg14123. All evolutionary processes that quantum mechanics directly permits can be described by unitary matrices. Here, U is a unitary matrix, also called a unitary matrix or unitary square matrix, and (outside 5) JPEG0007548530000005.jpg15123 is the conjugate transpose of U. Also, matrices that do not satisfy this condition are non-unitary and can be experimentally realized by auxiliary means or even exponentially large resources, but non-unitary matrices often have stronger expressive power and faster basis state projection effects. The above-mentioned "exponentially large resources" means that the demand for resources increases exponentially with the increase in the number of qubits. This exponentially large resources can mean that the total number of quantum circuits to be measured is exponentially large, i.e., a correspondingly exponentially large computation time is required.

[0029] 12. Bitstring: A string of numbers consisting of 0 and 1. The classical results obtained from each measurement of a quantum circuit can be represented as 0 or 1 depending on whether the spin configuration is up or down in the measurement basis, so the result of one measurement corresponds to one bitstring.

[0030] 13. Pauli Operators: Also called Pauli matrices, they are three 2x2 unitary Hermitian complex matrices (also called unitary matrices) and are usually denoted by the Greek letter σ (sigma). Here, the Pauli X operator is (outside 6) JPEG0007548530000006.jpg20123, and the Pauli Y operator is (outer 7) JPEG0007548530000007.jpg21123, and the Bubble Z operator is (outside 8) JPEG0007548530000008.jpg19123.

[0031] 14. Mixed state: A set of pure states represented by a wave function. (outer 9) JPEG0007548530000009.jpg12123 description indicates that the system has i Classical probabilities are wave functions (Outside 10) This state can be described by the mathematical structure of the density matrix, ρ, which is (Outside 11) Defined as JPEG0007548530000011.jpg16123.

[0032] 15. Gibbs thermalized state: A quantum mixed state that satisfies the thermal equilibrium distribution, i.e., its classical probability is the Boltzmann distribution (Outside 12) JPEG0007548530000012.jpg13123, where Z is the distribution function (normalization factor), (Outside 13) JPEG0007548530000013.jpg17123 is the inverse of the system temperature, and E i is the eigenenergy spectrum of the physical system. This Gibbs thermalized state can be more simply expressed as (Outside 14) It may be represented as JPEG0007548530000014.jpg17123. If the Gibbs thermalized state can be efficiently prepared, it is possible to realize the measurement of the physical properties and correlation functions of a finite temperature thermal equilibrium system. The Gibbs thermalized state is also the mixed state ρ corresponding to the case where the following free energy loss function with Gibbs entropy is minimized:

[0033]

number

[0034] 16. Renyi thermalization state: A loss function that minimizes the free energy accompanied by the Renyi entropy, and the corresponding mixed state ρ is as follows:

[0035]

number

[0036] 17. Fidelity: The fidelity between two mixed states ρ0, ρ is defined as follows:

[0037]

number

[0038] 18. Trace distance: The trace distance T between two mixed states ρ, σ is defined as follows:

[0039]

number

[0040] 19. Temperature-limited system: A system with a temperature greater than 0, as opposed to a zero-temperature system, which corresponds to the ground state. The equilibrium state in a temperature-limited system is not the ground state, but a mixed state represented by the Gibbs thermalized state.

[0041] 20.Free energy: In a certain thermodynamic process, it means that the internal energy that is reduced by the system can be converted into a part that does work for the outside, and it evaluates the "useful energy" that a system can output to the outside in a certain thermodynamic process. It is divided into Helmholtz free energy and Gibbs free energy.

[0042] The technical scheme of the present invention is useful for accelerating and enhancing the development and practicality of quantum hardware in the NISQ era. The strengthening scheme selected after neural network variation of the present invention fully takes into account the characteristics of quantum hardware in the NISQ era, and can increase the expressive power of relatively shallow quantum circuits by the classical neural network part. In addition, this scheme is fully compatible with other NISQ variation post-processing schemes, such as the Variational Quantum Neural network Hybrid Eigensolver (VQNHE) (the neural network of the present invention acts on the auxiliary qubits, and the neural network of the VQNHE scheme acts on the system qubits), and can be used in combination to further enhance the effect of mixed state preparation, i.e., temperature-limited VQE. This scheme lays the foundation for demonstrating effective quantum advantage in NISQ hardware and accelerates the possibility of commercial application of quantum computers.

[0043] The scheme of the present invention can be relatively easily applied in the short to mid-term to scientific research and practical production of quantum hardware evaluation and testing, including but not limited to temperature-limited simulation of Hamiltonians of systems from quantum many-body physics and quantum chemistry problems.

[0044] The method for preparing a thermalized state in a quantum system according to an embodiment of the present invention may be realized by a classical computer (e.g., a PC (Personal Computer)), for example, the classical computer may execute a corresponding computer program to realize the method, or may be realized by a quantum computer, or may be executed in an environment of a hybrid device of a classical computer and a quantum computer, for example, may be realized by cooperation of a classical computer and a quantum computer. For example, the quantum computer realizes the processing and measurement of the quantum state according to the embodiment of the present invention, and the classical computer realizes other steps such as calculation of a neural network according to the embodiment of the present invention, calculation of an objective function, and optimization of variation parameters.

[0045] In the following method embodiment, for convenience of explanation, the execution subject of each step will be described as a computer device. Note that the computer device may be a classical computer, a quantum computer, or may include a hybrid execution environment of a classical computer and a quantum computer, but the embodiment of the present invention is not limited thereto.

[0046] FIG. 1 is a schematic diagram of an architecture for preparing a thermalized state in a quantum system according to one embodiment of the present invention. As shown in FIG. 1, the architecture includes a parameterized quantum circuit (PQC) 10, a neural network 20, and an optimization device 30. The parameterized quantum circuit 10 performs a conversion process on an input quantum state of a combination qubit to obtain a corresponding output quantum state. Here, the combination qubit includes an ancillary qubit and a system qubit of a target quantum system. n measurements are performed on the output quantum state of the parameterized quantum circuit 10 to obtain n sets of measurement results. Each set of measurement results includes a first measurement result corresponding to the system qubit and a second measurement result corresponding to the ancillary qubit, where n is a positive integer. The neural network 20 processes the second measurement results to obtain weight parameters. Based on the weight parameters and the first measurement results, a correlation function value of a mixed state of the target quantum system is calculated, and an expectation value of an objective function is calculated based on the correlation function value of the mixed state. The optimization device 30 adjusts parameters of a target object (including the parameterized quantum circuit 10 and / or the neural network 20) ​​so that the expectation value of the objective function converges. When the expected value of the objective function satisfies the convergence condition, a mixed state of the target quantum system is obtained, and the mixed state obtained at this time can approximately represent the thermalized state of the target quantum system.

[0047] 2 is a flowchart of a method for preparing a thermalized state in a quantum system according to one embodiment of the present invention. The method can be applied to the architecture shown in FIG. 1, and for example, each step may be performed by a computer device. The method may include the following steps (210 to 260).

[0048] In step 210, n sets of measurements are obtained by performing n measurements on the output quantum state of the parameterized quantum circuit after performing a transformation operation on the input quantum state of the combination qubit via the parameterized quantum circuit, where the combination qubit includes an ancillary qubit and a system qubit of the target quantum system, each set of measurements includes a first measurement corresponding to the system qubit and a second measurement corresponding to the ancillary qubit, where n is a positive integer.

[0049] The target quantum system may be any quantum system to be studied. The technical scheme according to this embodiment allows the thermalized state of the target quantum system in a temperature-limited system to be approximately prepared. For example, the target quantum system may be any quantum physical or quantum chemical system, and the obtained thermalized state of the target quantum system may be used to evaluate the true properties of the real material of the system in a temperature-limited state, or to study the behavior of the system in a non-thermal equilibrium system. The system qubit is a qubit included in the target quantum system, for example, if the target quantum system includes five qubits, the number of system qubits is five. The auxiliary qubit is prepared to obtain a mixed state of the target quantum system. In the present invention, the number of auxiliary qubits is not limited, for example, the number of auxiliary qubits may be the same as the number of system qubits, or may be smaller or larger than the number of system qubits. In principle, the more auxiliary quantum bits there are, for example, the closer the number of auxiliary quantum bits is to the number of system quantum bits, the better the approximation effect of the final prepared thermalized state will be; however, as the number of auxiliary quantum bits increases, the complexity of the entire processing process increases, so an appropriate number of auxiliary quantum bits can be selected by comprehensively considering the accuracy and complexity.

[0050] The input of the parameterized quantum circuit includes the input quantum states of the combinational qubits, i.e., the input quantum states of the system qubits and the ancillary qubits. The input quantum states can generally be all-zero states, uniform superposition states, or Hartree-Fock states, and are also referred to as search states.

[0051] In the embodiment of the present invention, the system qubit and the ancillary qubit are not limited to an arrangement method. For example, the system qubit and the ancillary qubit may be arranged so as to alternate. As an example, the system qubit and the ancillary qubit may be arranged at intervals, or may be arranged so that one ancillary qubit is inserted for every multiple system qubits. Since the system qubit and the ancillary qubit are arranged so as to alternate, the parameterized quantum circuit can use a shallower circuit depth and reduce the complexity.

[0052] The parameterized quantum circuit performs a transformation operation on the input quantum states of the combinational qubits to output a corresponding output quantum state. A first measurement may be obtained by measuring the output quantum state corresponding to the system qubit. A second measurement may be obtained by measuring the output quantum state corresponding to the ancillary qubit. The first measurement may be a bit string, referred to herein as the first bit string, and denoted as s' in FIG. 1. The second measurement may also be a bit string, referred to herein as the first bit string, and denoted as s' in FIG. 1. It may be a single bit string, referred to herein as the second bit string, and represented in Figure 1 as s. By performing multiple measurements on the output quantum state of the parameterized quantum circuit, each measurement obtains a set of measurement results, and finally multiple sets of measurement results can be obtained. The measurement results obtained in any two measurements may be the same or different.

[0053] In an embodiment of the present invention, a parameterized quantum circuit performs a conversion process on an input quantum state of a combinational quantum bit, and performs n measurements on an output quantum state of the parameterized quantum circuit to obtain n sets of measurement results. A computing device obtains the n sets of measurement results and executes a subsequent step described below. Here, the measurement circuit can perform n measurements on the output quantum state of the parameterized quantum circuit to obtain n sets of measurement results. In an embodiment of the present invention, the measurement circuit is not limited to a specific configuration, and any circuit capable of measuring the output quantum state of the parameterized quantum circuit may be used.

[0054] In step 220, the second measurement is processed by the neural network to obtain weighting parameters.

[0055] In an embodiment of the present invention, a neural network is used to process a second measurement (e.g., a second bit string s) corresponding to an ancillary quantum bit. The output of the neural network is called a weight parameter. The second measurement is input to the neural network, and the weight parameter is calculated by the neural network. In an embodiment of the present invention, the neural network is not limited to a simple fully connected structure or other more complex structures, and the present invention is not limited thereto.

[0056] In step 230, a correlation function value of the mixed state of the target quantum system is calculated based on the weighting parameters and the first measurement result.

[0057] Preferably, a weighted average is performed on the calculation results corresponding to the n first measurement results based on the weight parameters corresponding to the n second measurement results to obtain a correlation function value of the mixed state of the target quantum system. Since the first measurement result and the second measurement result correspond one-to-one, the first measurement result and the second measurement result belonging to the same set of measurement results are multiplied by the calculation result corresponding to the first measurement result of the same set based on the weight parameters obtained based on the second measurement result to obtain one product result. In this way, n product results can be obtained for the n sets of measurement results, and the n product results can be added to obtain a weighted sum result, and the correlation function value of the mixed state of the target quantum system can be calculated based on the weighted sum result. For example, the weighted sum result is divided by the sum of the weight parameters corresponding to the n second measurement results to obtain the correlation function value of the mixed state of the target quantum system.

[0058] Preferably, a target correlation function is adopted to perform calculation processing on the n first measurement results respectively, to obtain calculation results respectively corresponding to the n first measurement results, where the target correlation function is used to obtain a correlation function value of the mixed state of the target quantum system.

[0059] In step 240, an expectation value of the objective function is calculated based on the correlation function values ​​of the mixed states.

[0060] The objective function is used to optimize the variation parameters. Preferably, the expectation value of the objective function is the free energy of the mixed state calculated based on the correlation function value of the mixed state.

[0061] In step 250, variational parameters are adjusted such that the expectation value of the objective function converges, where the variational parameters include at least one of parameters of the parameterized quantum circuit and parameters of the neural network.

[0062] The goal is optimized so that the expected value of the objective function converges. Preferably, the variation parameters are optimized so that the expected value of the objective function converges to a minimum value. In some other possible aspects, the variation parameters may be optimized so that the expected value of the objective function converges to a maximum value. The present invention is not limited to the convergence direction of the expected value of the objective function.

[0063] Preferably, the variation parameters include parameters of the parameterized quantum circuit and the neural network. That is, the parameters of both the parameterized quantum circuit and the neural network are optimized. The parameters of the parameterized quantum circuit and the neural network are adjusted so that the expected value of the objective function converges, and through such multiple iterative optimizations, the expected value of the objective function satisfies the convergence condition. In addition, the parameters of the parameterized quantum circuit and the neural network may be adjusted synchronously or sequentially, that is, one parameter may be fixed and the other parameter may be adjusted, but the present invention is not limited thereto.

[0064] In addition, in some other possible aspects, the parameters of the neural network may not be adjusted and only the parameters of the parameterized quantum circuit may be adjusted, or the parameters of the parameterized quantum circuit may not be adjusted and only the parameters of the neural network may be adjusted, but the present invention is not limited thereto.

[0065] In step 260, if the expectation value of the objective function satisfies the convergence condition, a mixed state of the target quantum system is obtained to approximately represent the thermalized state of the target quantum system.

[0066] When the expectation value of the objective function satisfies the convergence condition, the mixed state of the target quantum system prepared by the above method is approximately equal to the thermalized state of the target quantum system.

[0067] Specifically, when the expected value of the objective function satisfies the convergence condition, multiple sets of output quantum states corresponding to the system qubits output by the parameterized quantum circuit and multiple sets of weight parameters corresponding to the ancillary qubits output by the neural network are obtained, the weight parameters are regarded as probability values, and the multiple sets of weight parameters are placed in one-to-one correspondence with the multiple sets of output quantum states to obtain a mixed state of the target quantum system. The mixed state obtained at this time is used to approximately represent the thermalized state of the target quantum system.

[0068] The technical scheme of the present invention introduces a neural network post-processing scheme when preparing the thermalized state of the target quantum system, by first processing the input quantum states of the system qubits and the auxiliary qubits by the parameterized quantum circuit, then processing the measurement results corresponding to the auxiliary qubits by the neural network, obtaining the corresponding weight parameters, and using the weight parameters to approximately express the probability in the mixed state, and calculating the expectation value of the objective function according to the correlation function value of the constructed mixed state, optimizing the parameters of the parameterized quantum circuit and the parameters of the neural network so that the expectation value of the objective function converges, and when the expectation value of the objective function satisfies the convergence condition, obtaining the mixed state of the target quantum system to approximately express the thermalized state of the target quantum system. The present invention introduces a neural network to output weight parameters, and uses the weight parameters to adjust the weights corresponding to the measurement results of different auxiliary qubits, so that the trainable parameters of the neural network can enhance the expressive ability of the entire circuit, and more efficiently and accurately prepare the thermalized state.

[0069] 3 is a flowchart of a method for preparing a thermalized state in a quantum system according to another embodiment of the present invention. This method can be applied to the architecture shown in FIG. 1, and for example, each step may be performed by a computer device. This method may include the following steps (310 to 390).

[0070] In step 310, n sets of measurements are obtained by performing n measurements on the output quantum state of the parameterized quantum circuit after performing a transformation operation on the input quantum state of the combination qubit via the parameterized quantum circuit, where the combination qubit includes an ancillary qubit and a system qubit of the target quantum system, each set of measurements includes a first measurement corresponding to the system qubit and a second measurement corresponding to the ancillary qubit, where n is a positive integer.

[0071] Preferably, the system qubits and the ancillary qubits are arranged so that they alternate. Because a parameterized quantum circuit requires some degree of entanglement, and the greater the entanglement that can be produced in a single layer, the fewer layers of the circuit are required. Arranging the system qubits and the ancillary qubits so that they alternate maximizes the entanglement of the system qubits and the ancillary qubits, and also reduces the circuit depth required for the parameterized quantum circuit.

[0072] In step 320, the second measurement result is processed by the neural network, and a value range is applied to the output result of the neural network to obtain weight parameters within the value range.

[0073] Consider that when different second measurement results are input to the neural network, the fluctuation of the weight parameters output by the neural network may be too large, making it difficult to control the estimated relative error. The reason is that the weight parameters approximately represent the probability in the mixed state, and the mismatch between this and the probability of the second measurement result obtained by measuring the output quantum state corresponding to the ancillary quantum bit is relatively serious, that is, the importance sampling distribution does not match the actual distribution, and the error is relatively large. Therefore, the value range of the output result of the neural network may be limited. This can avoid the number of measurements required to estimate the correlation function value from exponentially dispersing with the size of the system. Such a thermalized state preparation scheme that limits the value range of the output result of the neural network is called a bounded (limited) neural network post-processing thermalized state preparation scheme.

[0074] Preferably, the above value range is set to [1 / r, r], where r is a value greater than 1. By setting the value range to [1 / r, r], the number of measurements required to perform the thermalized state preparation according to the present invention when a specified accuracy is reached can be mathematically strictly controlled, and is a polynomial multiple of r larger than the number of measurements required to estimate an eigenstate by employing a conventional VQE architecture. Here, the larger the value of r, the better the expressive ability of the thermalized state preparation architecture, but the larger the error will be. Therefore, in order to ensure a certain expressive ability while preventing large errors from occurring, experiments were conducted and it was found that the value of r was (outside 21) I found that it is okay to set it to JPEG0007548530000025.jpg13123.

[0075] It should be noted that the present invention is not limited to the method of limiting the value range. In one possible embodiment, the output of the neural network may be directly limited so that the neural network does not output values ​​outside the value range, but only outputs values ​​within the value range. In such a method, the value output by the neural network may be directly used as the weight parameter. In another possible embodiment, the output of the neural network may not be directly limited, and the output of the neural network may be a value outside the value range, and then a numerical mapping may be performed on the output of the neural network to obtain a value within the value range as the final weight parameter.

[0076] In step 330, a calculation is performed on each of the n first measurement results using the target correlation function to obtain calculation results respectively corresponding to the n first measurement results.

[0077] Here, the target correlation function is used to obtain the correlation function value at the target Pauli string of the mixed state of the target quantum system.

[0078] Preferably, a first measurement result corresponding to the system quantum bit is calculated from a plurality of different Pauli strings, and a calculation result corresponding to the different Pauli strings is obtained. For example, the first measurement result may be processed by using different target correlation functions, respectively, to obtain correlation function values ​​in a plurality of different Pauli strings of a mixed state of the target quantum system. Then, based on the correlation function values ​​in a plurality of different Pauli strings of the mixed state, an expectation value of a Hamiltonian corresponding to the mixed state is calculated, and based on the expectation value of a Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state, an expectation value of an objective function is calculated. Preferably, based on a sum result of the correlation function values ​​in a plurality of different Pauli strings of the mixed state, an expectation value of a Hamiltonian corresponding to the mixed state is calculated. Since the objective function is constructed based on the Hamiltonian and several other parameters, the expectation value of the objective function can be calculated based on the expectation value of a Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state. For a specific embodiment of the objective function, the following description may be referred to.

[0079] In step 340, a weighted average is performed on the calculation results corresponding to the n first measurement results based on weight parameters corresponding to the n second measurement results to obtain a correlation function value of the mixed state of the target quantum system.

[0080] For example, the correlation function value C in the target Pauli string of the mixed state of the target quantum system n becomes:

[0081]

number

[0082] As an example, the formula for calculating C(s') is as follows:

[0083]

number

[0084] For example, if the length of the first bit string is 2, then assuming the first bit string s'=s'1s'2=01, then C(s')=(1-2*0)*(1-2*1)=-1.

[0085] In step 350, correlation function values ​​at a number of different Pauli strings in the mixed state are obtained.

[0086] Here, the correlation function values ​​at different Pauli strings in the mixed state are obtained using different correlation functions.

[0087] In an embodiment of the present invention, output quantum states corresponding to system qubits may be measured from multiple different Pauli strings, and correlation function values ​​at the multiple different Pauli strings in a mixed state may be obtained based on the measurement results of the different Pauli strings.

[0088] In step 360, the expectation value of the Hamiltonian corresponding to the mixed state is calculated based on the correlation function values ​​at different Pauli strings of the mixed state.

[0089] Preferably, the expectation value of the Hamiltonian corresponding to the mixed state is calculated based on the sum of correlation function values ​​at a plurality of different Pauli strings in the mixed state.

[0090] In step 370, an expectation of the objective function is calculated based on the expectation of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state.

[0091] The expectation value of the objective function is calculated based on the expectation value of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state. Preferably, the entropy corresponding to the mixed state may be the Gibbs entropy or the Renyi entropy corresponding to the mixed state. Preferably, the objective function may be expressed by a calculation formula of the free energy corresponding to the mixed state. When the free energy corresponding to the mixed state of the target quantum system converges (e.g., becomes a minimum value), the mixed state at this time may be regarded as a thermalized state in the temperature-limited system of the target quantum system.

[0092] Preferably, when obtaining a first form of thermalized state of a target quantum system, the objective function is the free energy corresponding to a second form of thermalized state, where the first form of thermalized state and the second form of thermalized state are two different forms of thermalized states, and the first form of thermalized state and the second form of thermalized state have a locally approximate property, which means that in a certain case, the expected values ​​of the local observables provided by the two forms of thermalized states are similar.

[0093] In some embodiments, the thermalized state of the first form is a Gibbs thermalized state, and the thermalized state of the second form is a Renyi thermalized state. The Gibbs thermalized state and the Renyi thermalized state have local approximation properties, and the mixed state in which the Renyi free energy is minimized coincides with the Gibbs thermalized state at the thermodynamic limit in the local association. Therefore, when trying to obtain the Gibbs thermalized state of a target quantum system, the most direct method is to use the Gibbs free energy as the objective function, but since the measurement and solution of the Gibbs entropy in the Gibbs free energy becomes too complicated in the measurement with a quantum computer, the Renyi free energy may be used as the objective function by utilizing the above-mentioned local approximation properties. When measuring with a quantum computer, the measurement and solution of the Renyi entropy in the Renyi free energy is simpler and more efficient than the measurement and solution of the Gibbs entropy. When performing a numerical simulation using a classical computer, there is no significant difference in the computational complexity between Gibbs entropy and Renyi entropy.

[0094] For example, in obtaining the Gibbs thermalized state of a target quantum system, the Renyi free energy is used as the objective function, which is given by:

[0095]

number

[0096] Preferably, the Renyi thermalization state, where α=2 and β2=β, is used to approximately represent the Gibbs thermalization state.

[0097] In addition, from the viewpoint of numerical experiments, the Gibbs free energy may be directly used as the objective function when obtaining the Gibbs thermalization state of the target quantum system. In this case, the objective function is as follows:

[0098]

number

[0099] In step 380, the variational parameters are adjusted such that the expectation value of the objective function converges, where the variational parameters include at least one of parameters of the parameterized quantum circuit and parameters of the neural network.

[0100] Optimization of parameters of parameterized quantum circuits and neural networks may employ gradient or gradient-free optimization schemes, which is consistent with other variational quantum algorithms, where the expectation of neural network weights does not satisfy the condition for parameter translation to require an analytic gradient, so the gradient of the parameter part of the quantum circuit can only be estimated in the form of finite differences.

[0101] In step 390, if the expectation value of the objective function satisfies the convergence condition, a mixed state of the target quantum system is obtained to approximately represent the thermalized state of the target quantum system.

[0102] When the expectation value of the objective function satisfies the convergence condition, the mixed state of the target quantum system prepared by the above method is approximately equal to the thermalized state of the target quantum system.

[0103] In this embodiment, the thermalization state preparation scheme that adopts bounded neural network post-processing limits the value range of the output result of the neural network, thereby limiting the finally obtained weight parameters within the value range, thereby avoiding the problem that the relative error of the estimation is difficult to control due to the large fluctuation of the weight parameters output by the neural network, and further improving the accuracy of the finally obtained thermalization state.

[0104] In addition, by calculating the expectation value of the Hamiltonian corresponding to the mixed state based on the correlation function values ​​at multiple different Pauli strings in the mixed state, and then calculating the expectation value of the objective function based on the expectation value of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state, the objective function is solved by comprehensively taking into account information at multiple different Pauli strings in the mixed state, and the accuracy of the objective function is improved, thereby further improving the accuracy of the finally obtained thermalized state.

[0105] In addition, by utilizing the local approximation property between the Gibbs thermalized state and the Renyi thermalized state, the Renyi free energy can be used as the objective function when attempting to obtain the Gibbs thermalized state of a target quantum system, which simplifies the computational complexity and improves efficiency compared to directly using the Gibbs free energy as the objective function. By utilizing the characteristic that the Renyi entropy, especially the low-order Renyi entropy, is relatively easy to measure by a circuit, a highly efficient approximation to the thermalized state was realized using polynomial resources. For example, the second-order Renyi entropy when α=2 requires significantly fewer resources and fewer measurements.

[0106] The related art further provides another scheme (referred to as scheme 2) for preparing the Gibbs thermalized state. In scheme 2, a certain architecture can be used to approximate the Gibbs entropy to the calculation of a classical probability model. This scheme first generates a bit string with the same degree of freedom as the quantum bits of the system through a classical neural network probability model, and the corresponding classical probability is p(i), where p(i) represents the probability that the bit string obtained by measurement is i, and then creates a quantum direct product state corresponding to the bit string i. (outside 22) We input JPEG0007548530000030.jpg10123 into a parameterized quantum circuit V that operates only on the qubits of the system to construct the corresponding mixed state. In mathematics, the density matrix ρ corresponding to this mixed state is given by:

[0107]

number

[0108] In this case, the different output states (outside 24) Due to the orthogonality between JPEG0007548530000033.jpg15123, the Gibbs entropy corresponding to this mixture state is normalized to the classical Gibbs entropy.

[0109]

number

[0110] This allows the Gibbs entropy to be calculated efficiently without the need for additional measurements.

[0111] However, this scheme differs significantly from the method of the present invention in the accuracy with which it approximates the thermalized state.

[0112] The following explains how the quantum circuit + neural network post-processing method according to the present invention has superior expressive power compared to the neural network front-end + quantum circuit method according to the related art described above.

[0113] Numerical simulation results based on the optimized entropy-attached free energy show that in comparable cases, the scheme of the present invention can get closer to the exact thermalized state and has better representation capability.

[0114] The transverse magnetic field Ising model (TFTM) with periodic boundary conditions on N=8 lattice points is used as the test system, and the Hamiltonian of this transverse magnetic field Ising model can be expressed as follows.

[0115]

number

[0116] For this system, when temperature β=1, the corresponding free energy in thermal equilibrium is −11.35678.

[0117] The structure of the selected parameterized quantum circuit is as follows:

[0118]

number

[0119] The qubits and the system qubits are arranged to alternate. This is because this arrangement can maximize the entanglement between the physical system and the auxiliary system, and can thermalize parts of the physical system with a shallower circuit depth. Since the circuit always requires a certain amount of entanglement, the larger the entanglement with each layer, the fewer layers of the circuit are required. Therefore, the scheme of the present invention requires a system with 2N=16 bits. The corresponding circuit of the corresponding scheme 2 adopts a similar configuration and occupies only 8 physical system bits. In other words, the scheme of the present invention uses twice the number of qubits as scheme 2. Therefore, in order to make the number of quantum gates comparable, the expressive power of the existing scheme and the twice-deep scheme 2 should be compared at least. In practice, a more complex variational circuit structure of [ZZ,Rx,Ry]*P was applied to the architecture of the existing scenario. In the scheme of the present invention, only the more conservative circuit structure of [ZZ,Rx]*P was adopted. Here, we compare the expressive power of the circuits, so numerically, both of them take the free energy with Gibbs entropy as the objective function of optimization. The results show that even without considering the more serious effect of noise on the deeper circuit decoherence, the preparation of the thermalized state according to the scheme of the present invention still has a stronger expressive power.

[0120] In the scheme of the present invention, when P=8, the mixed state is obtained by optimization, showing a free energy of -11.347, and the fidelity to the strict Gibbs thermalized state reaches 0.997. Meanwhile, in the similar circuit setting of P=16 with a similar number of quantum gates, scheme 2 has a free energy of -11.301 after optimization, which is inferior to the scheme of the present invention, and the corresponding fidelity is 0.976, which is inferior to the scheme of the present invention. More specifically, the performance contrast of the two schemes in the Gibbs entropy-attached free energy optimization is shown in Table 1. From Table 1, it can be seen that even with only the variation circuit of P=2, the architecture of the neural net post-processing still retains a good approximation effect (better than scheme 2 with 2P=16 layers, which has a more complicated circuit setting).

[0121] [Table 1] This shows that the quantum circuit + neural network post-processing scheme (i.e., the scheme of the present invention) has a much better representation capability of adjusted mixed states than the neural network front-end + quantum circuit scheme (i.e., Scheme 2) when quantum resources are similar. Therefore, although Scheme 2 can efficiently calculate Gibbs entropy, optimization and approximation using the architecture of the scheme of the present invention can make better use of limited quantum hardware resources.

[0122] The following describes and compares the effects of adjusting the thermalization state of different schemes by means of numerical simulation, and demonstrates the advantages of the present invention. The experiment is also carried out in the transverse magnetic field Ising model TFIM with N=8 in the above embodiment.

[0123] Figure 4 shows the fidelity of the Gibbs thermalization state of each scheme at each training iteration (i.e., parameter update iteration), the left diagram is the fidelity at each measurement when β=5, as can be seen from Figure 4, the fidelity of curve 41 without neural network weighting is the lowest, and the fidelity of curve 42 with bounded neural network weighting is the highest. The right diagram is the fidelity at each measurement in the high temperature region when β=1, in the high temperature region, curve 43 of scheme 1 is the lowest, the lowest is lower than 0.6, the expression of curve 44 with bounded neural network weighting is the highest, followed by curve 45 with neural network weighting and curve 46 without neural network weighting in that order.

[0124] However, in both methods, the fidelity of the thermalized state decreases as the number of training iterations increases in the high temperature region due to overfitting issues, which can be mitigated by increasing the size of the system.

[0125] Figure 5 shows the fidelity of the Gibbs free energy of convergence obtained by independent optimization at different temperatures, different schemes, and different times. As can be seen from Figure 5, the results without neural network post-processing fluctuate greatly and the training is very unstable, as shown for example in section 51 without neural network weights in Figure 5. On the other hand, the bounded neural network weights scheme is a stable optimal scheme with high fidelity and small variation in results, as shown for example in section 52 with bounded neural network weights in Figure 5.

[0126] FIG. 6 shows the estimates of the correlation function output by different schemes for the same correlation function. Here, the left figure is the difference between the correlation function and the truth value for early completion (1000 optimizations), and the right figure is the difference between the correlation function and the truth value after convergence. In the scheme with neural network weighting, the difference between the estimates of the correlation function corresponding to early completion and final convergence is small, for example, as in section 61 with neural network weighting and section 62 with bounded neural network weighting in FIG. 6. The optimization of the free energy of the Renyi thermalized state in the late training stage does not significantly improve the estimates of the correlation function because it is due to overfitting to the Gibbs thermalized state object. In section 63 of scheme 1, the estimates of the correlation function corresponding to early completion and final convergence are significantly different, and the part where the deviation exceeds 0.2 is not shown in the figure. On the other hand, in the scheme without neural network weighting, the training variance fluctuates greatly, and the expected value and the estimated value often deviate significantly, as in section 64 without neural network weighting in FIG. 6. Since the local correlations between the Renyi thermalized state and the Gibbs thermalized state coincide in the thermodynamic limit, it is expected that as the system size of the simulation system (i.e., the number of quantum bits) increases, the estimates of the correlation function will become more accurate than the numerical results given here.

[0127] As shown in Figures 4 to 6, lines of different gradations correspond to different schemes.

[0128] The following are embodiments of the apparatus of the present invention, which can be used to carry out the method embodiments of the present invention. For details not disclosed in the apparatus embodiments of the present invention, please refer to the method embodiments of the present invention.

[0129] 7 is a block diagram of an apparatus for preparing a thermalized state in a quantum system according to one embodiment of the present invention. The apparatus has a function for implementing the above-mentioned method for preparing a thermalized state in a quantum system, and the function may be implemented by hardware, or may be implemented by executing corresponding software from hardware. The apparatus may be a computer device or may be provided in a computer device. The apparatus 700 may include a measurement result acquisition module 710, a weight parameter acquisition module 720, a correlation function calculation module 730, an objective function calculation module 740, a variation parameter adjustment module 750, and a thermalized state acquisition module 760.

[0130] Measurement acquisition module 710 performs a transformation operation on the input quantum states of the combinational qubits via the parameterized quantum circuit and then performs n measurements on the output quantum states of the parameterized quantum circuit to obtain n sets of measurement results, where the combinational qubits include ancillary qubits and system qubits of the target quantum system, each set of measurement results including a first measurement result corresponding to the system qubit and a second measurement result corresponding to the ancillary qubit, where n is a positive integer.

[0131] The weighting parameter obtaining module 720 processes the second measurement result through a neural network to obtain the weighting parameters.

[0132] The correlation function calculation module 730 calculates a correlation function value of the mixed state of the target quantum system based on the weighting parameters and the first measurement result.

[0133] The objective function calculation module 740 calculates an expectation value of the objective function based on the correlation function values ​​of the mixed states.

[0134] The variational parameter tuning module 750 adjusts variational parameters such that the expectation value of the objective function converges, where the variational parameters include at least one of parameters of a parameterized quantum circuit and parameters of a neural network.

[0135] The thermalized state acquisition module 760 acquires a mixed state of the target quantum system to approximately represent the thermalized state of the target quantum system when the expected value of the objective function satisfies a convergence condition.

[0136] In some aspects, the correlation function calculation module 730 performs a weighted average on the calculation results corresponding to each of the n first measurement results based on weight parameters corresponding to each of the n second measurement results to obtain a correlation function value of the mixed state of the target quantum system.

[0137] In some aspects, the correlation function computation module 730 performs a computation on each of the n first measurements using a target correlation function to obtain computation results corresponding to the n first measurements, respectively, where the target correlation function is used to obtain a correlation function value at a target Pauli string of a mixed state of the target quantum system.

[0138] In some aspects, the objective function computation module 740 obtains correlation function values ​​at a plurality of different Pauli strings of the mixed state, where the correlation function values ​​at the plurality of different Pauli strings of the mixed state are obtained using different correlation functions, calculates an expectation value of a Hamiltonian corresponding to the mixed state based on the correlation function values ​​at the plurality of different Pauli strings of the mixed state, and calculates an expectation value of the objective function based on the expectation value of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state.

[0139] In some aspects, when obtaining a thermalized state of a first form of a target quantum system, the objective function is a free energy corresponding to a thermalized state of a second form, the first form of the thermalized state and the second form of the thermalized state are two different forms of thermalized states, and the first form of the thermalized state and the second form of the thermalized state have local approximation properties.

[0140] In some embodiments, the thermalized state of the first form is a Gibbs thermalized state and the thermalized state of the second form is a Renyi thermalized state.

[0141] In some aspects, the weight parameter obtaining module 720 processes the second measurement result through a neural network, applies a value range restriction to the output result of the neural network, and obtains weight parameters within the value range.

[0142] In some embodiments, the value range is [1 / r, r], where r is a number greater than 1.

[0143] In some aspects, the system qubits and ancillary qubits are arranged in an alternating sequence.

[0144] The technical scheme of the present invention introduces a neural network post-processing scheme when preparing the thermalized state of the target quantum system, by first processing the input quantum states of the system qubits and the auxiliary qubits by the parameterized quantum circuit, then processing the measurement results corresponding to the auxiliary qubits by the neural network, obtaining the corresponding weight parameters, and using the weight parameters to approximately express the probability in the mixed state, and calculating the expectation value of the objective function according to the correlation function value of the constructed mixed state, optimizing the parameters of the parameterized quantum circuit and the parameters of the neural network so that the expectation value of the objective function converges, and when the expectation value of the objective function satisfies the convergence condition, obtaining the mixed state of the target quantum system to approximately express the thermalized state of the target quantum system. The present invention introduces a neural network to output weight parameters, and uses the weight parameters to adjust the weights corresponding to the measurement results of different auxiliary qubits, so that the trainable parameters of the neural network can enhance the expressive ability of the entire circuit, and more efficiently and accurately prepare the thermalized state.

[0145] In addition, the above-mentioned embodiment of the device has been described by taking only the division of each of the above-mentioned functional modules as an example for realizing the functions, but in reality, the above-mentioned function allocation may be divided into different functional modules, i.e., the internal structure of the device may be divided into different functional modules as necessary to complete all or part of the above-mentioned functions. Also, the above-mentioned embodiment of the device belongs to the same concept as the embodiment of the method, and the specific realization process thereof is described in detail in the embodiment of the method, so it will not be described here.

[0146] 8 is a schematic diagram of a computer device according to one embodiment of the present invention, which may be a classical computer, which may be used to implement the method for preparing a thermalized state in a quantum system according to the above embodiment.

[0147] Specifically, the computer device 800 includes a processing unit (such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), or an FPGA (Field Programmable Gate Array)) 801, a system memory 804 including a RAM (Random-Access Memory) 802 and a ROM (Read-Only Memory) 803, and a system bus 805 connecting the system memory 804 and the central processing device 801. The computer device 800 further includes a basic input / output system (I / O system) 806 supporting the transmission of information between various devices in the server, and a mass storage device 807 for storing an operating system 813, application programs 814, and other program modules 815.

[0148] Preferably, the basic input / output system 806 includes a display 808 for displaying information and an input device 809, such as a mouse or keyboard, for a user to input information. Both the display 808 and the input device 809 are connected to the central processing unit 801 via an input / output controller 810, which is connected to the system bus 805. The basic input / output system 806 may further include an input / output controller 810 for accepting and processing input from a number of other devices, such as a keyboard, a mouse, or an electronic touch pen. Similarly, the input / output controller 810 provides output to a display, a printer, or other type of output device.

[0149] Preferably, the mass storage device 807 is connected to the central processing unit 801 via a mass storage controller (not shown) connected to the system bus 805. The mass storage device 807 and associated computer readable media provide non-volatile storage for the computing device 800. That is, the mass storage device 807 may include a computer readable medium (not shown), such as a hard disk or a Compact Disc Read-Only Memory (CD-ROM) drive.

[0150] Without loss of generality, computer readable media may include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable programs, data structures, program modules, or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid state storage, CD-ROM, DVD (Digital Video Disc) or other optical storage, cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices. However, as will be appreciated by those skilled in the art, the computer storage media is not limited to the above. The above-mentioned system memory 804 and mass storage device 807 may be collectively referred to as memory.

[0151] According to an embodiment of the present invention, the computing device 800 may also operate with a remote computer connected to a network via a network such as the Internet, i.e., the computing device 800 may be connected to a network 812 via a network interface unit 811 connected to the system bus 805, or may use the network interface unit 811 to connect to other types of networks or remote computer systems (not shown).

[0152] The memory further includes a computer program stored therein and configured to be executed by the one or more processors to implement the method for preparing a thermalized state in a quantum system as described above.

[0153] Exemplary embodiments further provide a computing device for implementing the method for producing a thermalized state in a quantum system as described above, preferably the computing device being a quantum computer, or a classical computer, or a hybrid quantum and classical computer execution environment.

[0154] An exemplary embodiment further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor of a computing device, implements the method for producing a thermalized state in a quantum system as described above.

[0155] Preferably, the computer-readable storage medium can include ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives), or optical disks, etc. The random access memory can include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0156] Exemplary embodiments further provide a computer program product including a computer program stored on a computer readable storage medium, the computer program being read by a processor of the computer device from the computer readable storage medium, the processor executing the computer program causing the computer device to perform the method for preparing a thermalized state in a quantum system as described above.

[0157] Exemplary embodiments further provide a system for preparing a thermalized state in a quantum system, the system including a parameterized quantum circuit and a computing device.

[0158] The parameterized quantum circuit performs a transformation operation on an input quantum state of combination qubits to obtain an output quantum state of the parameterized quantum circuit, where the combination qubits include the ancillary qubits and the system qubits of the target quantum system.

[0159] The computing device obtains n sets of measurements obtained by performing n measurements on the output quantum state of the parameterized quantum circuit, where each set of measurements includes a first measurement corresponding to a system qubit and a second measurement corresponding to an ancillary qubit, where n is a positive integer.

[0160] The computing device processes the second measurement result through the neural network to obtain weighting parameters, calculates correlation function values ​​of the mixed state of the target quantum system based on the weighting parameters and the first measurement result, and calculates an expectation value of the objective function based on the correlation function values ​​of the mixed state.

[0161] The computing device adjusts the variational parameters such that an expectation value of the objective function converges, and when the expectation value of the objective function satisfies a convergence condition, obtains a mixed state of the target quantum system to approximately represent a thermalized state of the target quantum system, where the variational parameters include at least one of a parameter of the parameterized quantum circuit and a parameter of the neural network.

[0162] In some aspects, the system further includes a measurement circuit.

[0163] The measurement circuit performs n measurements on the output quantum state of the parameterized quantum circuit to obtain n sets of measurement results.

[0164] In some aspects, the computing device performs a weighted average on the calculation results corresponding to each of the n first measurement results based on weight parameters corresponding to each of the n second measurement results to obtain a correlation function value of the mixed state of the target quantum system.

[0165] In some aspects, the computing device performs a computation on each of the n first measurements using a target correlation function to obtain computation results corresponding to the n first measurements, respectively, where the target correlation function is used to obtain a correlation function value at a target Pauli string of a mixed state of the target quantum system.

[0166] In some aspects, the computing device obtains correlation function values ​​at a plurality of different Pauli strings of the mixed state, where the correlation function values ​​at the plurality of different Pauli strings of the mixed state are obtained using different correlation functions, calculates an expectation value of a Hamiltonian corresponding to the mixed state based on the correlation function values ​​at the plurality of different Pauli strings of the mixed state, and calculates an expectation value of an objective function based on the expectation value of the Hamiltonian corresponding to the mixed state and an entropy corresponding to the mixed state.

[0167] In some aspects, when obtaining a thermalized state of a first form of a target quantum system, the objective function is a free energy corresponding to a thermalized state of a second form, the first form of the thermalized state and the second form of the thermalized state are two different forms of thermalized states, and the first form of the thermalized state and the second form of the thermalized state have local approximation properties.

[0168] In some embodiments, the thermalized state of the first form is a Gibbs thermalized state and the thermalized state of the second form is a Renyi thermalized state.

[0169] In some embodiments, the computing device processes the second measurement through a neural network and applies a value range restriction to the output of the neural network to obtain weight parameters within the value range.

[0170] In some embodiments, the value range is [1 / r, r], where r is a number greater than 1.

[0171] In some aspects, the system qubits and ancillary qubits are arranged in an alternating sequence.

[0172] The present invention is not limited to a particular architecture for the preparation system of a thermalized state in a quantum system, and may include a computer device, or may include a computer device and a parameterized quantum circuit, or may include a computer device, a parameterized quantum circuit and a measurement circuit.

[0173] Also, for details not described in detail in this system embodiment, reference may be made to the above method embodiment.

[0174] In addition, "multiple" as referred to in this specification means two or more. "And / or" describes the dependency relationship of the dependent object, and indicates that there are three possible relationships, such as A and B, i.e., A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the interrelated objects are in an "or" relationship. Furthermore, the step numbers described in this specification are merely illustrative of possible orders between steps, and in some other embodiments, the steps may not be performed in the order of the numbers, such that two differently numbered steps may be performed simultaneously, or two differently numbered steps may be performed in the reverse order from the order shown, and the embodiments of this specification are not limited thereto.

[0175] The above are merely illustrative examples of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention are intended to be included within the scope of the present invention.

Claims

1. 1. A computational device implemented method for preparing a thermalized state in a quantum system, the method comprising: obtaining n sets of measurements obtained by performing n measurements on an output quantum state of a combinational qubit via a parameterized quantum circuit after a transformation operation on an input quantum state of the parameterized quantum circuit, the combinational qubits including an ancillary qubit and a system qubit of a target quantum system, each set of measurements including a first measurement corresponding to the system qubit and a second measurement corresponding to the ancillary qubit, where n is a positive integer; processing the second measurement result through a neural network to obtain weighting parameters; calculating a correlation function value of a mixed state of the target quantum system based on the weight parameters and the first measurement result; calculating an expectation value of an objective function based on the correlation function values ​​of the mixed states; adjusting variational parameters such that an expectation value of the objective function converges, the variational parameters including at least one of parameters of the parameterized quantum circuit and parameters of the neural network; If the expectation value of the objective function satisfies a convergence condition, obtaining a mixed state of the target quantum system to approximately represent a thermalized state of the target quantum system.

2. The step of calculating a correlation function value of a mixed state of the target quantum system based on the weight parameters and the first measurement result includes:

2. The method of claim 1, further comprising: performing a weighted average on calculation results corresponding to each of the n first measurement results based on weight parameters corresponding to each of the n second measurement results to obtain a correlation function value of the mixed state of the target quantum system.

3. performing a calculation process on each of the n first measurement results using a target correlation function to obtain a calculation result corresponding to each of the n first measurement results; The method of claim 2 , wherein the target correlation function is used to obtain a correlation function value at a target Pauli string of a mixed state of the target quantum system.

4. The step of calculating an expectation value of an objective function based on the correlation function value of the mixed state includes: obtaining correlation function values ​​at a plurality of different Pauli strings of the mixed state, the correlation function values ​​at the plurality of different Pauli strings of the mixed state being obtained using different correlation functions; calculating an expectation value of a Hamiltonian corresponding to the mixed state based on correlation function values ​​at a plurality of different Pauli strings of the mixed state; 4. The method of claim 3, further comprising: calculating an expectation of the objective function based on an expectation of a Hamiltonian corresponding to the mixed state and an entropy corresponding to the mixed state.

5. When obtaining a thermalized state of the first form of the target quantum system, the objective function is a free energy corresponding to a thermalized state of the second form; 2. The method of claim 1, wherein the first form of thermalized state and the second form of thermalized state are two different forms of thermalized states, and the first form of thermalized state and the second form of thermalized state have local approximation properties.

6. the first type of thermalized state is a Gibbs thermalized state; The method of claim 5 , wherein the second form of thermalization is a Renyi thermalization.

7. The step of processing the second measurement result by the neural network to obtain weight parameters includes:

2. The method of claim 1, further comprising the step of: processing the second measurement result through the neural network; limiting an output result of the neural network to a value range; and obtaining weight parameters within the value range.

8. 8. The method of claim 7, wherein the value range is [1 / r, r], where r is a number greater than 1.

9. The method of claim 1 , wherein the system qubits and the ancillary qubits are arranged in an alternating manner.

10. An apparatus for preparing a thermalized state in a quantum system, comprising: a measurement result acquisition module that acquires n sets of measurement results obtained by performing n measurements on an output quantum state of a combinational qubit via a parameterized quantum circuit after performing a transformation operation on an input quantum state of the parameterized quantum circuit, the combinational qubit including an ancillary qubit and a system qubit of a target quantum system, each set of measurement results including a first measurement result corresponding to the system qubit and a second measurement result corresponding to the ancillary qubit, where n is a positive integer; a weight parameter acquisition module that processes the second measurement result by a neural network and acquires weight parameters; a correlation function calculation module for calculating a correlation function value of a mixed state of the target quantum system based on the weight parameters and the first measurement result; an objective function calculation module that calculates an expectation value of an objective function based on the correlation function value of the mixed state; a variational parameter adjustment module that adjusts variational parameters such that an expectation value of the objective function converges, the variational parameters including at least one of a parameter of the parameterized quantum circuit and a parameter of the neural network; and a thermalized state acquisition module that acquires a mixed state of the target quantum system to approximately represent a thermalized state of the target quantum system when the expectation value of the objective function satisfies a convergence condition.

11. A computer apparatus for implementing the method according to any one of claims 1 to 9.

12. A program for causing a computer to execute the method according to any one of claims 1 to 9.

13. A system for preparing a thermalized state in a quantum system, the system comprising: a parameterized quantum circuit; and a computing device; the parameterized quantum circuit performs a transformation operation on an input quantum state of combinational qubits to obtain an output quantum state of the parameterized quantum circuit, the combinational qubits including an ancillary qubit and a system qubit of a target quantum system; the computing device obtains n sets of measurement results obtained by performing n measurements on an output quantum state of the parameterized quantum circuit, each set of measurement results including a first measurement result corresponding to the system qubit and a second measurement result corresponding to the ancillary qubit, n being a positive integer; The computing device processes the second measurement result through a neural network to obtain weight parameters, calculates a correlation function value of a mixed state of the target quantum system based on the weight parameters and the first measurement result, and calculates an expectation value of an objective function based on the correlation function value of the mixed state. The computer device adjusts variational parameters so that an expectation value of the objective function converges, and when the expectation value of the objective function satisfies a convergence condition, obtains a mixed state of the target quantum system to approximately represent a thermalized state of the target quantum system, the variational parameters including at least one of parameters of the parameterized quantum circuit and parameters of the neural network.

Citation Information

Patent Citations

  • Method and system for estimating physical quantity of a plurality of models using sample device

    JP2021152892A

  • Generating mixed states and finite-temperature equilibrium states of quantum systems

    US20210097422A1

  • System and method for enabling an access to a physics-inspired computer and to a physics-inspired computer simulator

    WO2021111368A1

  • Fault-tolerant error correction decoding method and device of quantum circuit, and chip

    WO2021208555A1