Thermal state preparation method, device and storage medium in quantum system
Through the combination of parameterized quantum circuits and neural networks, optimizing the parameters of parameterized quantum circuits and neural networks solves the problem of low thermalization state preparation efficiency in the existing technology, and achieves more efficient and accurate thermalization state preparation.
Patent Information
- Application Number
- CN202111479010.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-06
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-12-06
AI Technical Summary
The existing scheme for preparing thermal states through parameterized circuits is inefficient, especially because the Gibbs entropy of the mixed state is a nonlinear logarithmic function of the density matrix, which cannot be measured directly and efficiently, resulting in excessive measurement time.
The combined qubits are transformed through parameterized quantum circuits, and the neural network is used to process the measurement results, obtain weight parameters, calculate the correlation function value of the mixed state of the target quantum system, and optimize the parameters of the parameterized quantum circuit and neural network. To approximately characterize the thermal state of the target quantum system.
The efficiency and accuracy of thermal state preparation are improved. By introducing neural network output weight parameters, the expression ability of the circuit is enhanced, and more efficient and accurate thermal state preparation is achieved.
Smart Images

Figure CN116245184B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of quantum technology, and in particular to a method, device and storage medium for preparing a thermalized state in a quantum system. Background Art
[0002] In some existing studies, a scheme for preparing thermalized states through parameterized circuits has been proposed. Taking the preparation of Gibbs thermalization as an example, the loss function of parameter optimization in the parameterized circuit is Gibbs free energy, and the Gibbs entropy in the Gibbs free energy needs to be measured.
[0003] For the conventional solution of preparing thermalized states through parameterized circuits, the mixed state on the system quantum bit is prepared by taking the bias trace of the auxiliary quantum bit. At this time, the Gibbs entropy of the mixed state cannot be directly and efficiently measured because it is a logarithmic function of the nonlinear density matrix, and state tomography that consumes exponential resources is required. The "exponential resources" mentioned here refer to the exponential relationship between the number of measurements and the number of system quantum bits, which results in excessive measurement time.
[0004] Therefore, the current scheme of preparing the thermalized state through parameterized circuits is inefficient. Summary of the invention
[0005] The present application provides a method, device and storage medium for preparing a thermal state in a quantum system. The technical solution is as follows:
[0006] According to one aspect of an embodiment of the present application, a method for preparing a thermalized state in a quantum system is provided, the method comprising:
[0007] The input quantum state of the combined quantum bit is transformed by a parameterized quantum circuit, and the output quantum state of the parameterized quantum circuit is measured n times to obtain n groups of measurement results; wherein the combined quantum bit includes an auxiliary quantum bit and a system quantum bit of a target quantum system, and each group of measurement results includes: a first measurement result corresponding to the system quantum bit, and a second measurement result corresponding to the auxiliary quantum bit, and n is a positive integer;
[0008] Processing the second measurement result by a neural network to obtain a weight parameter;
[0009] Based on the weight parameter and the first measurement result, a correlation function value of the mixed state of the target quantum system is calculated;
[0010] Based on the correlation function value of the mixed state, the expected value of the objective function is calculated;
[0011] The variational parameters are adjusted with the goal of convergence of the expected value of the objective function; wherein the variational parameters include at least one of the following: parameters of the parameterized quantum circuit, parameters of the neural network;
[0012] When the expected value of the objective function satisfies a convergence condition, a mixed state of the target quantum system is obtained to approximately characterize a thermalized state of the target quantum system.
[0013] According to one aspect of an embodiment of the present application, a device for preparing a thermalized state in a quantum system is provided, the device comprising:
[0014] A measurement result acquisition module, used to transform the input quantum state of the combined quantum bit through the parameterized quantum circuit, and measure the output quantum state of the parameterized quantum circuit n times to obtain n groups of measurement results; wherein the combined quantum bit includes an auxiliary quantum bit and a system quantum bit of the target quantum system, and each group of measurement results includes: a first measurement result corresponding to the system quantum bit, and a second measurement result corresponding to the auxiliary quantum bit, and n is a positive integer;
[0015] A weight parameter acquisition module, used for processing the second measurement result through a neural network to obtain a weight parameter;
[0016] A correlation function calculation module, used for calculating a correlation function value of a mixed state of the target quantum system based on the weight parameter and the first measurement result;
[0017] An objective function calculation module, used for calculating an expected value of an objective function based on the correlation function value of the mixed state;
[0018] A variational parameter adjustment module, used to adjust the variational parameters with the convergence of the expected value of the objective function as the goal; wherein the variational parameters include at least one of the following: parameters of the parameterized quantum circuit, parameters of the neural network;
[0019] The thermalized state acquisition module is used to acquire the mixed state of the target quantum system to approximately characterize the thermalized state of the target quantum system when the expected value of the objective function meets the convergence condition.
[0020] According to one aspect of an embodiment of the present application, a computer device is provided, wherein the computer device is used to implement the thermal state preparation method under the above quantum system. Optionally, the computer device is a quantum computer, or a classical computer, or a hybrid device execution environment of a quantum computer and a classical computer.
[0021] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the thermal state preparation method under the above-mentioned quantum system.
[0022] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, wherein the computer program product or the computer program includes computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, and a processor reads and executes the computer instructions from the computer-readable storage medium to implement the above-mentioned method for preparing a thermalized state in a quantum system.
[0023] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:
[0024] When preparing the thermalized state of the target quantum system, by introducing a neural network post-processing scheme, the input quantum states of the system quantum bits and auxiliary quantum bits are first processed through a parameterized quantum circuit, and then the measurement results corresponding to the auxiliary quantum bits are processed through a neural network to obtain the corresponding weight parameters, which are used to approximately characterize the probability in the mixed state, and then the expected value of the target function is calculated based on the constructed correlation function of the mixed state. With the convergence of the expected value of the target function as the goal, the parameters of the parameterized quantum circuit and the parameters of the neural network are optimized, so that when the expected value of the target function meets the convergence conditions, the mixed state of the target quantum system is obtained to approximately characterize the thermalized state of the target quantum system. This scheme introduces the neural network output weight parameters, and uses the weight parameters to adjust the weights corresponding to different auxiliary quantum bit measurement results, thereby enhancing the overall expression ability of the circuit through the trainable parameters of the neural network, and achieving the effect of preparing the thermalized state more efficiently and accurately. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 It is a schematic diagram of a thermal state preparation framework in a quantum system provided by an embodiment of the present application;
[0027] Figure 2 This is a flow chart of a method for preparing a thermalized state in a quantum system provided by an embodiment of the present application;
[0028] Figure 3is a flow chart of a method for preparing a thermalized state in a quantum system provided by another embodiment of the present application;
[0029] Figure 4 is a schematic diagram of experimental results provided by an embodiment of the present application;
[0030] Figure 5 is a schematic diagram of experimental results provided by another embodiment of the present application;
[0031] Figure 6 is a schematic diagram of experimental results provided by another embodiment of the present application;
[0032] Figure 7 is a block diagram of a thermal state preparation device in a quantum system provided by an embodiment of the present application;
[0033] Figure 8 It is a schematic diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0035] Before introducing the technical solution of the present application, some key terms involved in the present application are explained.
[0036] 1. Quantum computing: A computing method based on quantum logic. The basic unit of data storage is the quantum bit (qubit).
[0037] 2. Quantum bit: the basic unit of quantum computing. Traditional computers use 0 and 1 as the basic units of binary. The difference is that quantum computing can process 0 and 1 at the same time, and the system can be in a linear superposition state of 0 and 1: |ψ>=α|0>+β|1>, where α and β represent the complex probability amplitude of the system at 0 and 1. Their squared modulus |α| 2 ,|β| 2 represent the probabilities of being 0 and 1 respectively.
[0038] 3. Quantum circuit: A representation of a quantum universal computer, representing the hardware implementation of the corresponding quantum algorithm / program under the quantum gate model. If the quantum circuit contains adjustable parameters for controlling quantum gates, it is called a parameterized quantum circuit (PQC) or a variational quantum circuit (VQC), which are the same concept.
[0039] 4. Hamiltonian: A Hermitian conjugate matrix that describes the total energy of a quantum system. Hamiltonian is a physical term, an operator that describes the total energy of a system, usually represented by H.
[0040] 5. Eigenstate: For a Hamiltonian matrix H, the solution that satisfies the equation: H|ψ>=E|ψ> is called the eigenstate |ψ> of H, with eigenenergy E. The ground state corresponds to the lowest energy eigenstate of the quantum system.
[0041] 6. Quantum-classical hybrid computing: A computing paradigm that uses quantum circuits (such as PQC) to calculate the corresponding physical quantities or loss functions in the inner layer, and uses traditional classical optimizers to adjust the variational parameters of quantum circuits in the outer layer. This can maximize the advantages of quantum computing and is believed to be one of the important directions with the potential to prove quantum advantage.
[0042] 7. NISQ (Noisy Intermediate-Scale Quantum): The recent medium-scale noisy quantum hardware is the current stage of quantum computing development and the focus of research. At this stage, quantum computing cannot be used as a general computing engine due to the limitations of scale and noise, but on some problems, it can achieve results that surpass the most powerful classical computers, which is usually called quantum hegemony or quantum advantage.
[0043] 8. Variational Quantum Eigensolver (VQE): It estimates the ground state energy of a specific quantum system through variational circuits (i.e. PQC / VQC). It is a typical quantum-classical hybrid computing paradigm and has wide applications in the field of quantum chemistry.
[0044] 9. Post-selection: For the measurement results output by the quantum computer, the specific value of the bit string corresponding to certain bits is used to select whether to keep or discard the measurement result. This is called post-selection. Post-selection appears in many current research hotspots, including but not limited to linear unitary matrix combination to achieve LCU (linear combinations of unitary operations), measurement-induced entanglement entropy phase change, etc.
[0045] 10. Pauli string. The term composed of the direct product of multiple Pauli matrices at different grid points. The general Hamiltonian can usually be decomposed into the sum of a set of Pauli strings. The measurement of VQE is also generally measured item by item according to the decomposition of the Pauli string.
[0046] 11. Non-unitary: A unitary matrix is one that satisfies All matrices of, all evolution processes directly allowed by quantum mechanics, can be described by unitary matrices. Among them, U is a unitary matrix, also called a unitary matrix, a unitary matrix, etc. is the conjugate transpose of U. In addition, matrices that do not meet this condition are non-unitary, which requires auxiliary means or even exponentially more resources to be realized experimentally, but non-unitary matrices often have stronger expression capabilities and faster ground state projection effects. The above-mentioned "exponentially more resources" means that the demand for resources increases exponentially with the increase in the number of quantum bits. The exponentially more resources can refer to the total number of quantum circuits that need to be measured is exponentially more, that is, the corresponding exponentially more computing time is required.
[0047] 12. Bit string: A string of numbers consisting of 0 and 1. The classical result obtained from each measurement of a quantum circuit can be represented by 0 or 1 respectively according to the upper and lower spin configurations on the measurement basis, so that the total measurement result corresponds to a bit string.
[0048] 13. Pauli operator: also known as Pauli matrix, is a set of three 2×2 unitary Hermitian complex matrices (also known as unitary matrices), generally represented by the Greek letter σ (sigma). Among them, the Pauli X operator is The Pauli Y operator is The Pauli Z operator is
[0049] 14. Mixed state: Corresponding to the pure state represented by the wave function, it consists of a set of {p i ,|ψ i >} description, which means that the system has p i The classical probability of being in the wave function |ψ i > state. This state can be described by the mathematical structure of the density matrix, and the density matrix ρ is defined as ρ = ∑ i p i |ψ i ><ψ i |.
[0050] 15. Gibbs thermal state: refers to a quantum mixed state that satisfies the thermal equilibrium distribution, that is, its classical probability satisfies the Boltzmann distribution Z is the partition function (normalization factor), is the inverse of the system temperature, E i is the intrinsic energy spectrum of the physical system. The Gibbs thermalized state can be more concisely expressed using the matrix index of the Hamiltonian H as If the Gibbs thermalized state can be prepared efficiently, the physical properties and correlation functions of the finite temperature thermal equilibrium system can be measured. The Gibbs thermalized state is also the mixed state ρ corresponding to the minimum free energy loss function with Gibbs entropy:
[0051]
[0052] The first term Tr(Hρ) is the energy term, and the second term Can be simplified to S is called Gibbs entropy. Gibbs entropy is a general expression for the entropy of a system in equilibrium thermodynamic equilibrium. If the system has n energy levels, the probability of occupying the i-th energy level is p i , the entropy of the system is p i ln i , where k B is the Boltzmann constant, and this formula is called the Gibbs entropy formula.
[0053] 16. Renyi thermal state: It is a free energy loss function that minimizes the Renyi entropy. The corresponding mixed state ρ is:
[0054]
[0055] Among them, the second is the Renyi entropy multiplied by the temperature factor. α is the order of the Renyi entropy (a positive integer greater than or equal to 2). This application only cares about the case of α=2. Other cases are similar. However, since the line measurement of high-order Renyi entropy consumes more resources, α=2 is generally used in practical applications. It is worth noting that 1 / β here α It should be understood as a Lagrangian factor without physical meaning, which does not necessarily correspond to the inverse of temperature. α When the energy corresponding to the optimal ρ is the same as the Gibbs thermal state at temperature β, we say that the inverse of the temperature of the Renyi thermal state is β. Although numerical experiments show that β is α =β. For the Renyi thermalized state with α = 2, the corresponding probability distribution on the energy eigenbasis is: in is the constant value that minimizes the Renyi free energy of the corresponding thermalized state.
[0056] 17. Fidelity: The fidelity between two mixed states ρ0, ρ is defined as:
[0057]
[0058] The fidelity between two identical mixed states is 1.
[0059] 18. Trace distance: The trace distance T between two mixed states ρ, σ is defined as:
[0060]
[0061] The trace distance between two identical mixed states is 0.
[0062] 19. Finite temperature system: refers to a system with a temperature greater than 0, which is opposite to the zero temperature system corresponding to the ground state. The equilibrium state of the finite temperature system is not the ground state, but a mixed state represented by the Gibbs thermal state.
[0063] 20. Free energy: refers to the part of the system's reduced internal energy that can be converted into external work in a certain thermodynamic process. It measures the "useful energy" that the system can output to the outside in a specific thermodynamic process. It can be divided into Helmholtz free energy and Gibbs free energy.
[0064] The technical solution provided in this application helps to accelerate and enhance the development and practicality of quantum hardware in the NISQ era. The enhanced solution for post-variation selection of neural networks proposed in this application fully considers the characteristics of quantum hardware in the NISQ era, and can increase the expression ability of shallower quantum circuits through the classical neural network part. In addition, this solution is perfectly compatible with other NISQ variational post-processing solutions, such as the variational quantum-neural network hybrid eigensolver (VQNHE for short) (the neural network of this application solution acts on auxiliary quantum bits, and the neural network of the VQNHE solution acts on system quantum bits), and can be used in combination to further enhance mixed state preparation, that is, the effect of finite temperature VQE. This solution lays the foundation for demonstrating effective quantum advantages on NISQ hardware and accelerates the possibility of commercial application of quantum computers.
[0065] This application scheme can be easily applied to quantum hardware evaluation and testing research and actual production in the short to medium term. Its application includes but is not limited to simulating the finite temperature state of the Hamiltonian of the system in quantum many-body physics and quantum chemistry problems.
[0066] The method for preparing a thermalized state in a quantum system provided in an embodiment of the present application can be implemented by a classical computer (such as a PC (Personal Computer)), for example, by executing a corresponding computer program on a classical computer to implement the method; the method can also be implemented by a quantum computer; or it can also be implemented in a hybrid device environment of a classical computer and a quantum computer, for example, by a classical computer and a quantum computer working together to implement the method. Exemplarily, a quantum computer is used to implement the processing and measurement of quantum states in an embodiment of the present application, and a classical computer is used to implement other steps in an embodiment of the present application, such as neural network calculation, objective function calculation, and variational parameter optimization.
[0067] In the following method embodiments, for ease of description, only the execution subject of each step is introduced as a computer device. It should be understood that the computer device can be a classical computer, a quantum computer, or a hybrid execution environment of a classical computer and a quantum computer, which is not limited in the present application embodiments.
[0068] The thermal state preparation framework under the quantum system provided by an exemplary embodiment of the present application is as follows Figure 1 As shown, it includes: a parameterized quantum circuit (PQC) 10, a neural network 20 and an optimizer 30. The parameterized quantum circuit 10 is used to transform the input quantum state of the combined quantum bit to obtain the corresponding output quantum state. Among them, the combined quantum bit includes an auxiliary quantum bit and a system quantum bit of the target quantum system. The output quantum state of the parameterized quantum circuit 10 is measured n times to obtain n groups of measurement results, each group of measurement results includes a first measurement result corresponding to the system quantum bit, and a second measurement result corresponding to the auxiliary quantum bit, and n is a positive integer. The neural network 20 is used to process the second measurement result to obtain a weight parameter. Based on the weight parameter and the first measurement result, the correlation function value of the mixed state of the target quantum system is calculated, and then the expected value of the target function is calculated based on the correlation function value of the mixed state. The optimizer 30 is used to adjust the parameters of the target object (such as the parameterized quantum circuit 10 and / or the neural network 20) with the expected value of the target function converging as the goal. When the expected value of the objective function meets the convergence condition, the mixed state of the target quantum system is obtained. The mixed state obtained at this time can approximately represent the thermalized state of the target quantum system.
[0069] Figure 2 is a flow chart of a method for preparing a thermal state in a quantum system provided by an embodiment of the present application, which method can be applied to Figure 1 In the illustrated framework, for example, the execution subject of each step may be a computer device.
[0070] The method may include the following steps (210-260):
[0071] Step 210, transforming the input quantum state of the combined quantum bit through the parameterized quantum circuit, and measuring the output quantum state of the parameterized quantum circuit n times to obtain n groups of measurement results; wherein the combined quantum bit includes an auxiliary quantum bit and a system quantum bit of the target quantum system, and each group of measurement results includes: a first measurement result corresponding to the system quantum bit, and a second measurement result corresponding to the auxiliary quantum bit, and n is a positive integer.
[0072] The target quantum system can be any quantum system that needs to be studied. Through the technical solution provided in this embodiment, the thermalized state of the target quantum system under a finite temperature system can be approximately prepared. The system qubit refers to the qubit contained in the target quantum system. For example, if the target quantum system contains 5 qubits, the number of system qubits is also 5. The auxiliary qubits are prepared to obtain the mixed state of the target quantum system. This application does not limit the number of auxiliary qubits. For example, the number of auxiliary qubits can be the same as the number of system qubits, or it can be less than or greater than the number of system qubits. In principle, the more auxiliary qubits there are, for example, the closer the number of auxiliary qubits is to the number of system qubits, the better the approximation effect of the thermalized state finally prepared. However, the increase in the number of auxiliary qubits will also increase the complexity of the entire processing process. Therefore, an appropriate number of auxiliary qubits can be selected while comprehensively considering accuracy and complexity.
[0073] The input of the parameterized quantum circuit includes the input quantum state of the combined quantum bit, that is, the input quantum state of the system quantum bit and the auxiliary quantum bit. The input quantum state can generally be a full zero state, a uniform superposition state, or a Hartree-Fock state, which is also called a trial state.
[0074] In the embodiments of the present application, there is no limitation on the arrangement of the system qubits and the auxiliary qubits. For example, the system qubits and the auxiliary qubits can be arranged in an overlapping manner, such as the system qubits and the auxiliary qubits are arranged one by one, or an auxiliary qubit is inserted every several system qubits, etc. The use of an overlapping arrangement can maximize the entanglement between the system qubits and the auxiliary qubits, so that the parameterized quantum circuit can use a shallower circuit depth and reduce complexity.
[0075] The parameterized quantum circuit transforms the input quantum state of the combined quantum bit and outputs the corresponding output quantum state. By measuring the output quantum state corresponding to the system quantum bit, a first measurement result can be obtained. By measuring the output quantum state corresponding to the auxiliary quantum bit, a second measurement result can be obtained. The above-mentioned first measurement result can be a bit string, which is referred to as the first bit string in this application. Figure 1 The first bit string is represented by s′. The second measurement result may also be a bit string, which is referred to as the second bit string in this application. Figure 1 The second bit string is represented by s. By measuring the output quantum state of the parameterized quantum circuit multiple times, each measurement can obtain a set of measurement results, and finally obtain multiple sets of measurement results. Any two measurement results may be the same or different.
[0076] Step 220: Process the second measurement result through a neural network to obtain a weight parameter.
[0077] In an embodiment of the present application, a neural network is used to process the second measurement result (such as the second bit string s) corresponding to the auxiliary quantum bit, and the output result of the neural network is referred to as a weight parameter. The second measurement result is input into the neural network, and the weight parameter is obtained by the neural network calculation. In an embodiment of the present application, the structure of the neural network is not limited, and it can be a simple fully connected structure or other more complex structures, which is not limited in the present application.
[0078] Step 230: Calculate the correlation function value of the mixed state of the target quantum system based on the weight parameter and the first measurement result.
[0079] Optionally, based on the weight parameters corresponding to the n second measurement results, the operation results corresponding to the n first measurement results are weighted averaged to obtain the 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, for the first measurement result and the second measurement result belonging to the same group of measurement results, the weight parameter obtained based on the second measurement result is used to multiply the operation result corresponding to the first measurement result of the same group to obtain a product result. In this way, n groups of measurement results can obtain n product results, and the n product results are added to obtain a weighted summation result, and then the correlation function value of the mixed state of the target quantum system is calculated based on the weighted summation result. For example, the weighted summation 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.
[0080] Optionally, the target correlation function is used to perform calculation processing on the n first measurement results respectively to obtain calculation results corresponding to the n first measurement results respectively. The target correlation function is used to obtain the correlation function value of the mixed state of the target quantum system.
[0081] Step 240, based on the correlation function value of the mixed state, calculate the expected value of the objective function.
[0082] The objective function is used to optimize the variational parameters. Optionally, the expected value of the objective function is the free energy of the mixed state calculated based on the correlation function value of the mixed state.
[0083] Step 250, adjusting the variational parameters with the goal of converging the expected value of the objective function; wherein the variational parameters include at least one of the following: parameters of the parameterized quantum circuit, parameters of the neural network.
[0084] The expected value of the objective function is converged as the optimization goal, and optionally, the expected value of the objective function is converged to the minimum value as the goal, and the variational parameters are optimized and adjusted. Of course, in some other possible embodiments, the expected value of the objective function may also be converged to the maximum value as the goal, and the variational parameters are optimized and adjusted. The present application does not limit the convergence direction of the expected value of the objective function.
[0085] Optionally, the variational parameters include parameters of the parameterized quantum circuit and parameters of the neural network. That is, the parameters of the parameterized quantum circuit and the neural network are optimized. With the convergence of the expected value of the objective function as the goal, the parameters of the parameterized quantum circuit and the parameters of the neural network are adjusted, and after multiple rounds of iterative optimization, the expected value of the objective function meets the convergence condition. In addition, the parameters of the parameterized quantum circuit and the parameters of the neural network can be adjusted synchronously, or they can be adjusted one after another, that is, one set of parameters is fixed and the other set of parameters is adjusted, and this application does not limit this.
[0086] In addition, in some other possible embodiments, only the parameters of the parameterized quantum circuit may be adjusted without adjusting the parameters of the neural network, or only the parameters of the neural network may be adjusted without adjusting the parameters of the parameterized quantum circuit. This application does not limit this.
[0087] Step 260: When the expected value of the objective function satisfies the convergence condition, a mixed state of the target quantum system is obtained to approximately characterize the thermalized state of the target quantum system.
[0088] When the expected value of the objective function satisfies the convergence condition, the mixed state of the target quantum system prepared by the above method can be approximately equal to the thermalized state of the target quantum system.
[0089] Specifically, when the expected value of the objective function meets the convergence conditions, multiple sets of output quantum states corresponding to the system quantum bits output by the parameterized quantum circuit and multiple sets of weight parameters corresponding to the auxiliary quantum bits output by the neural network are obtained. The weight parameters are regarded as probability values, and the multiple sets of weight parameters are matched one-to-one 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 characterize the thermalized state of the target quantum system.
[0090] The technical solution provided by the present application, when preparing the thermalized state of the target quantum system, firstly processes the input quantum states of the system quantum bits and auxiliary quantum bits through the parameterized quantum circuit, then processes the measurement results corresponding to the auxiliary quantum bits through the neural network, obtains the corresponding weight parameters, and uses the weight parameters to approximately characterize the probability in the mixed state, and then calculates the expected value of the target function based on the constructed correlation function of the mixed state, and optimizes the parameters of the parameterized quantum circuit and the parameters of the neural network with the goal of convergence of the expected value of the target function, so as to obtain the mixed state of the target quantum system to approximately characterize the thermalized state of the target quantum system when the expected value of the target function meets the convergence condition. This solution introduces the neural network output weight parameter, and uses the weight parameter to adjust the weights corresponding to different auxiliary quantum bit measurement results, thereby enhancing the overall expression ability of the circuit through the trainable parameters of the neural network, and achieving the effect of preparing the thermalized state more efficiently and accurately.
[0091] Figure 3 is a flow chart of a method for preparing a thermal state in a quantum system provided by another embodiment of the present application, which method can be applied to Figure 1 In the illustrated framework, for example, the execution subject of each step may be a computer device.
[0092] The method may include the following steps (310-390):
[0093] Step 310, transforming the input quantum state of the combined quantum bit through the parameterized quantum circuit, and measuring the output quantum state of the parameterized quantum circuit n times to obtain n groups of measurement results; wherein the combined quantum bit includes an auxiliary quantum bit and a system quantum bit of the target quantum system, and each group of measurement results includes: a first measurement result corresponding to the system quantum bit, and a second measurement result corresponding to the auxiliary quantum bit, and n is a positive integer.
[0094] Optionally, the system qubits and the auxiliary qubits are arranged in an overlapping manner. Since the parameterized quantum circuit requires a certain amount of entanglement, and the greater the entanglement created by a single layer, the fewer route layers are required. The system qubits and the auxiliary qubits are arranged in an overlapping manner. Through the above arrangement, the entanglement of the system qubits and the auxiliary qubits is maximized, and the route depth required for the parameterized quantum circuit is shallower.
[0095] Step 320, the second measurement result is processed by a neural network, and the output result of the neural network is restricted to a value range to obtain a weight parameter within the value range.
[0096] Considering that after different second measurement results are input into the neural network, the fluctuation of the weight parameter output by the neural network may be too large, which may make the relative error of the estimate difficult to control. The reason is that the weight parameter approximately represents the probability in the mixed state, which may be seriously mismatched with the probability of measuring the second measurement result by measuring the output quantum state corresponding to the auxiliary quantum bit, which is equivalent to the importance sampling distribution and the actual distribution not matching, resulting in a relatively large error. Therefore, we can limit the value range of the output results of the neural network to prevent the number of measurements required to estimate the value of the correlation function from exponentially diverging with the size of the system. We call this thermal state preparation scheme that limits the value range of the output results of the neural network a thermal state preparation scheme for bounded neural network post-processing.
[0097] Optionally, the above value range is set to [1 / r, r], where r is a number greater than 1. By setting the value range to [1 / r, r], it is possible to strictly mathematically control the number of measurements required for thermal state preparation using the scheme of the present application while achieving a specified accuracy, which is only a polynomial number of r more than the number of measurements required for eigenstate estimation using an ordinary VQE framework. Among them, as the value of r increases, the expressive power of the thermal preparation framework increases, but the error will also increase. Therefore, in order to ensure a certain expressive power without generating excessive errors, it has been found through experiments that the value of r can be set to e. e ≈15.
[0098] In addition, the present application does not limit the way to limit the value range. In one possible implementation, the output of the neural network can be directly limited so that the output of the neural network will not have values outside the value range, and can only output values within the value range. In this way, the value output by the neural network can be directly used as a weight parameter. In another possible implementation, 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. Then, a numerical mapping is performed on the output of the neural network to obtain a value within the value range as the final weight parameter.
[0099] Step 330: Use the target correlation function to perform calculations on the n first measurement results respectively to obtain calculation results corresponding to the n first measurement results respectively.
[0100] The target correlation function is used to obtain the correlation function value of the mixed state of the target quantum system under the target Pauli string.
[0101] Optionally, the first measurement results corresponding to the system quantum bits are calculated from multiple different Pauli strings to obtain the calculation results corresponding to different Pauli strings. For example, different target correlation functions are used to calculate and process the first measurement results respectively, so that the correlation function values of the mixed state of the target quantum system under multiple different Pauli strings can be obtained. Then, based on the correlation function values of the mixed state under multiple different Pauli strings, the expected value of the Hamiltonian corresponding to the mixed state is calculated, and based on the expected value of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state, the expected value of the target function is calculated. Optionally, based on the sum of the correlation function values of the mixed state under multiple different Pauli strings, the expected value of the Hamiltonian corresponding to the mixed state is calculated. The target function is constructed based on the Hamiltonian and some other parameters, so based on the expected value of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state, the expected value of the target function can be calculated. For the specific implementation form of the target function, please refer to the following introduction.
[0102] Step 340: Based on the weight parameters corresponding to the n second measurement results, respectively, weighted average is performed on the operation results corresponding to the n first measurement results to obtain the correlation function value of the mixed state of the target quantum system under the target Pauli string.
[0103] Exemplarily, the correlation function value Cn of the mixed state of the target quantum system under the target Pauli string is:
[0104]
[0105] Among them, w(s) represents the weight parameter corresponding to the second measurement result (such as the second bit string s), C(s′) represents the operation result corresponding to the first measurement result (such as the first bit string s′), and C() represents the target association function.
[0106] Exemplarily, the calculation formula of C(s′) is as follows:
[0107]
[0108] Among them, s′ m represents the value of the mth bit in the first bit string s′, S′ m=0 or 1, m represents the length of the first bit string s′, represents the number of bits in the first bit string s′, and m is a positive integer.
[0109] For example, when the length of the first bit string s′ is 2, assuming that the first bit string s′=s′1s′2=01, then C(s′)=(1-2*0)*(1-2*1)=-1.
[0110] Step 350: Obtain correlation function values of the mixed state under multiple different Pauli strings.
[0111] Among them, the correlation function values of the mixed state under multiple different Pauli strings are obtained using different correlation functions.
[0112] In an embodiment of the present application, the output quantum state corresponding to the system quantum bit can be measured from multiple different Pauli strings, and based on the measurement results of different Pauli strings, the correlation function values of the mixed state under multiple different Pauli strings can be obtained.
[0113] Step 360 , based on the correlation function values of the mixed state under a plurality of different Pauli strings, the expected value of the Hamiltonian corresponding to the mixed state is calculated.
[0114] Optionally, based on the sum of correlation function values of the mixed state under a plurality of different Pauli strings, the expected value of the Hamiltonian corresponding to the mixed state is calculated.
[0115] Step 370, based on the expected value of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state, the expected value of the objective function is calculated.
[0116] Based on the expected value of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state, the expected value of the objective function is calculated. Optionally, the entropy corresponding to the mixed state can be the Gibbs entropy or Renyi entropy corresponding to the mixed state. Optionally, the objective function can be expressed by the 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 (such as taking the minimum value), the mixed state at this time can be regarded as the thermalized state of the target quantum system under the finite temperature system.
[0117] Optionally, in the case where the first form of the thermalized state of the target quantum system needs to be obtained, the objective function is the free energy corresponding to the second form of the thermalized state; wherein the first form of the thermalized state and the second form of the thermalized state are two different forms of thermalized states, and there is a local approximation characteristic between the first form of the thermalized state and the second form of the thermalized state. The so-called local approximation characteristic means that in certain specific cases, the expectations of the local observations given by the above two forms of the thermalized states are similar.
[0118] In some embodiments, the first form of thermalized state is a Gibbs thermalized state, and the second form of thermalized state is a Renyi thermalized state. Gibbs thermalized state and Renyi thermalized state have local approximate characteristics, and the mixed state that minimizes Renyi free energy is consistent with the Gibbs thermalized state in the local correlation at the thermodynamic limit. Therefore, if we want to obtain the Gibbs thermalized state of the target quantum system, the most direct way is to use Gibbs free energy as the objective function, but because the measurement and solution of Gibbs entropy in Gibbs free energy are too complicated when measured on a quantum computer, we can use Renyi free energy as the objective function by using the above-mentioned local approximate characteristics. When measured on a quantum computer, the measurement and solution of Renyi entropy in Renyi free energy are simpler and more efficient than the measurement and solution of Gibbs entropy. It should be noted that when performing numerical simulations on classical computers, the computational complexity of Gibbs entropy and Renyi entropy is not much different.
[0119] For example, if we want to obtain the Gibbs thermal state of the target quantum system, we use Renyi free energy as the objective function, then the objective function is:
[0120]
[0121] Among them, H represents the Hamiltonian corresponding to the mixed state, ρ represents the density matrix corresponding to the mixed state, β and α are temperature parameters, and Tr represents the trace of the matrix.
[0122] Optionally, the Renyi thermalization state when α=2 and β2=β is used to approximate the Gibbs thermalization.
[0123] In addition, from the perspective of numerical experiments, if we want to obtain the Gibbs thermalized state of the target quantum system, we can also directly use the Gibbs free energy as the objective function. In this case, the objective function is:
[0124]
[0125] Among them, H represents the Hamiltonian corresponding to the mixed state, ρ is the density matrix corresponding to the mixed state, β is the temperature parameter, and Tr represents the trace of the matrix.
[0126] Step 380, adjusting the variational parameters with the goal of converging the expected value of the objective function; wherein the variational parameters include at least one of the following: parameters of the parameterized quantum circuit, parameters of the neural network.
[0127] Parameter optimization of parameterized quantum circuits and neural networks can adopt gradient optimization or gradient-free optimization schemes, which is consistent with other variational quantum algorithms. The only thing to note is that the expectation of the weighted neural network here does not meet the conditions for parameter translation to obtain analytical gradients, so the gradient of the quantum circuit parameter part can only be estimated in the form of finite differences.
[0128] Step 390: When the expected value of the objective function satisfies the convergence condition, a mixed state of the target quantum system is obtained to approximately characterize the thermalized state of the target quantum system.
[0129] When the expected value of the objective function satisfies the convergence condition, the mixed state of the target quantum system prepared by the above method can be approximately equal to the thermalized state of the target quantum system.
[0130] In this embodiment, a thermal state preparation scheme of bounded neural network post-processing is adopted. By limiting the value range of the output results of the neural network, the final weight parameters are limited within the above-mentioned value range. This can avoid the problem that the relative error of the estimate is difficult to control due to excessive fluctuations in the weight parameters output by the neural network, which helps to further improve the accuracy of the final thermal state.
[0131] In addition, the expectation value of the Hamiltonian corresponding to the mixed state is calculated based on the correlation function value of the mixed state under multiple different Pauli strings, and then 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. This allows the solution of the objective function to comprehensively consider the information of the mixed state under multiple different Pauli strings, thereby improving the accuracy of the objective function, which also helps to further improve the accuracy of the final thermalized state.
[0132] In addition, by taking advantage of the local approximation characteristics of Gibbs thermalized states and Renyi thermalized states, when we want to obtain the Gibbs thermalized state of the target quantum system, we use Renyi free energy as the objective function. Compared with directly using Gibbs free energy as the objective function, this can simplify the computational complexity and improve efficiency. By taking advantage of the fact that Renyi entropy, especially low-order Renyi entropy, is easier to measure on the line, we have successfully achieved efficient approximation of thermalized states with polynomial resources. For example, taking Renyi entropy of Renyi2nd order with α=2 requires significantly fewer resources and measurements.
[0133] In the related art, another solution for preparing the Gibbs thermalized state is provided (which we call Solution 2): a specific architecture is adopted so that the Gibbs entropy can be reduced to the calculation of the classical probability model. This solution will first generate a bit string with the same degree of freedom as the system quantum bit through the classical neural network probability model. The corresponding classical probability is p(i), where p(i) represents the probability that the measured bit string is i. Then, the quantum direct product state |i> corresponding to the bit string i is input into the parameterized quantum circuit V that only acts on the system quantum bit, thereby constructing the corresponding mixed state. Mathematically, the density matrix ρ corresponding to the mixed state is:
[0134]
[0135] Among them, |i s > represents the bit string on the system quantum bit s.
[0136] At this time, due to different output states V|i s > are orthogonal, and the Gibbs entropy corresponding to the mixed state is just reduced to the classical Gibbs entropy:
[0137]
[0138] Among them, p i It has the same meaning as p(i) in the above formula.
[0139] Thus, the Gibbs entropy can be calculated efficiently without the need for additional measurements.
[0140] However, this solution has a large gap in the accuracy of approximating the thermal state compared with the method of the present application.
[0141] Next, the method of quantum circuit + neural network post-processing provided by the present application is introduced. Compared with the method of neural network pre-processing + quantum circuit provided by the above-mentioned related technology, it has advantages in expression ability.
[0142] We use numerical simulation results based on optimizing the entropy free energy to illustrate that under comparable circumstances, the technical solution of the present application can be closer to the strict thermalization state and has better expressive power.
[0143] The transverse field Ising model (TFTM) with periodic boundary conditions of N=8 grid points is used as the test system. The Hamiltonian of the transverse field Ising model can be expressed as:
[0144]
[0145] Wherein, Z represents the Pauli Z operator, X represents the Pauli X operator, n is a positive integer, and i is a positive integer less than or equal to n.
[0146] When the temperature of the system is β=1, the corresponding free energy of the thermal equilibrium state is -11.35678.
[0147] The structure of the parameterized quantum route we choose is:
[0148]
[0149] Where P is a repeating structure The number of H i is the Hadamard gate acting on the i-th quantum bit, and its matrix is expressed as
[0150] The arrangement of overlapping quantum bits and system quantum bits is because this arrangement can maximize the entanglement of the physical system and the auxiliary system, and can thermalize parts of the physical system with a shallower circuit depth. Because the circuit always requires a certain amount of entanglement, the greater the entanglement created by a single layer, the fewer circuit layers are required. Therefore, our scheme requires a system of 2N=16 bits. The corresponding circuit of scheme 2 adopts the same structure and only occupies 8 bits of the physical system. In other words, the number of quantum bits used in our scheme is twice that of scheme 2. Therefore, in order to make the number of quantum gates comparable, we should at least compare the expression capabilities of the existing scheme and the scheme 2 with twice the depth. In fact, we adopted a more complex variational circuit structure of [ZZ, Rx, Ry]*P and applied it to the architecture of the previous scheme. However, our scheme only takes a more conservative circuit structure of [ZZ, Rx]*P. Since we are comparing the expression capabilities of the circuit here, both numerically use free energy with Gibbs entropy as the optimization objective function. The results show that even without considering the more serious impact of noise decoherence on deeper circuits, the thermalized state preparation of our scheme still has stronger expressive power.
[0151] When P=8, our scheme optimizes the mixed state and gives a free energy of -11.347, with a fidelity of 0.997 with the strict Gibbs thermal state. On the contrary, for scheme 2, the same circuit simulation with P=16 with a similar number of quantum gates gives a free energy of -11.301 after optimization, which is worse than our scheme, and the corresponding fidelity is only 0.976, which is also worse than our scheme. More specifically, the performance comparison of the two schemes under free energy optimization with Gibbs entropy is shown in Table 1. It can be seen that even with only a variational circuit with P=2, it still maintains a good approximation effect in the neural network post-processing architecture (even better than scheme 2 with a more complex circuit simulation and 2P=16 layers).
[0152] Table 1
[0153]
[0154]
[0155] This shows that the solution of quantum circuit + neural network post-processing (that is, the solution of this application) is much better than the solution of neural network pre-processing + quantum circuit (that is, solution 2) in preparing mixed states when quantum resources are similar. Therefore, although solution 2 can efficiently calculate Gibbs entropy, it still uses the architecture of the former for optimization and approximation, which can make more effective use of limited quantum hardware resources.
[0156] Next, the effects of different thermal preparation schemes are characterized and compared by means of numerical simulation to illustrate the advantages of the scheme of the present application. The experiment is still conducted using the transverse field Ising model TFIM with N=8 in the previous embodiment.
[0157] like Figure 4 As shown, Figure 4 The fidelity of the Gibbs thermalized state of various schemes at each training iteration (that is, parameter update iteration) is shown, where the left figure is the fidelity of each measurement when β=5. Obviously, the fidelity of the curve 41 without neural network weights is the worst, while the fidelity of the curve 42 with bounded neural network weights is the highest. The right figure is the fidelity of each measurement in the high temperature zone when β=1. In the high temperature zone, the scheme one curve 43 performs the worst, even as low as less than 0.6, while the bounded neural network weight curve 44 performs the best, followed by the curve 45 with neural network weights and the curve 46 without neural network weights.
[0158] But no matter which scheme is used, in the high temperature zone, as the number of training iterations increases, the fidelity of the thermalized state decreases. This is due to the overfitting problem, which can be alleviated by increasing the size of the system.
[0159] like Figure 5 As shown, Figure 5 The fidelity of the converged Gibbs free energy obtained by different temperatures, different schemes, and different independent optimizations is shown. It can be seen that the results without neural network post-processing fluctuate greatly and the training is very unstable, as shown in the figure without the neural network weight interval 51. In contrast, bounded neural network weights are a stable optimal solution. While having high fidelity, the fluctuation of the results is very small, as shown in the figure with bounded neural network weight interval 52.
[0160] like Figure 6 As shown, Figure 6The figure shows the correlation function estimates given by different schemes under the same correlation function. Among them, the left figure is the difference between the correlation function and the true value of early stopping (1000 rounds of optimization), and the right figure is the difference between the correlation function and the true value after convergence. For the scheme with neural network weights, the estimated difference between the correlation function corresponding to early stopping and the final convergence is not large, such as the interval 61 with neural network weights and the interval 62 with bounded neural network weights in the figure. Because the optimization of the free energy of the Renyi thermal state in the late training is due to the overfitting of the Gibbs thermal state target, it no longer significantly improves the correlation function estimate. For the scheme 1 interval 63, the estimated difference between the correlation function corresponding to early stopping and the final convergence is large, and the part with a deviation exceeding 0.2 is not shown in the figure. For the scheme without neural network weights, the training variance fluctuates greatly, and the expected estimate also deviates more in most cases, such as the interval 64 without neural network weights in the figure. Since the fact that the Renyi thermalized state and the Gibbs thermalized state give consistent local correlations only holds true in the thermodynamic limit, as the number of simulated systems (that is, the number of quantum bits) increases, the estimate of the correlation function will hopefully become more accurate than the numerical results here.
[0161] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0162] Figure 7 It is a block diagram of a thermalized state preparation device under a quantum system provided by an embodiment of the present application. The device has the function of implementing the thermalized state preparation method under the above-mentioned quantum system, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be a computer device, or it can be set in a computer device. The device 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 variational parameter adjustment module 750 and a thermalized state acquisition module 760.
[0163] The measurement result acquisition module 710 is used to transform the input quantum state of the combined quantum bit through the parameterized quantum circuit, and measure the output quantum state of the parameterized quantum circuit n times to obtain n groups of measurement results; wherein the combined quantum bit includes an auxiliary quantum bit and a system quantum bit of the target quantum system, and each group of measurement results includes: a first measurement result corresponding to the system quantum bit, and a second measurement result corresponding to the auxiliary quantum bit, and n is a positive integer.
[0164] The weight parameter acquisition module 720 is used to process the second measurement result through a neural network to obtain a weight parameter.
[0165] The correlation function calculation module 730 is used to calculate the correlation function value of the mixed state of the target quantum system based on the weight parameter and the first measurement result.
[0166] The objective function calculation module 740 is used to calculate the expected value of the objective function based on the correlation function value of the mixed state.
[0167] The variational parameter adjustment module 750 is used to adjust the variational parameters with the convergence of the expected value of the objective function as the goal; wherein the variational parameters include at least one of the following: the parameters of the parameterized quantum circuit, the parameters of the neural network.
[0168] The thermalized state acquisition module 760 is used to acquire the mixed state of the target quantum system to approximately characterize the thermalized state of the target quantum system when the expected value of the objective function meets the convergence condition.
[0169] In some embodiments, the correlation function calculation module 730 is used to perform weighted averaging on the operation results corresponding to the n first measurement results based on the weight parameters corresponding to the n second measurement results, so as to obtain the correlation function value of the mixed state of the target quantum system.
[0170] In some embodiments, the correlation function calculation module 730 is also used to use a target correlation function to perform calculations on the n first measurement results respectively to obtain calculation results corresponding to the n first measurement results respectively; wherein the target correlation function is used to obtain the correlation function value of the mixed state of the target quantum system under the target Pauli string.
[0171] In some embodiments, the objective function calculation module 740 is used to obtain the correlation function value of the mixed state under multiple different Pauli strings; wherein the correlation function values of the mixed state under multiple different Pauli strings are obtained using different correlation functions; based on the correlation function values of the mixed state under multiple different Pauli strings, the expected value of the Hamiltonian corresponding to the mixed state is calculated; based on the expected value of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state, the expected value of the objective function is calculated.
[0172] In some embodiments, when it is necessary to obtain a first form of thermalized state of the target quantum system, the target function is the free energy corresponding to a second form of thermalized state; 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 characteristics.
[0173] In some embodiments, the first form of thermalized state is a Gibbs thermalized state and the second form of thermalized state is a Renyi thermalized state.
[0174] In some embodiments, the weight parameter acquisition module 720 is used to process the second measurement result through the neural network, and limit the value range of the output result of the neural network to obtain the weight parameter within the value range.
[0175] In some embodiments, the value range is [1 / r, r], where r is a value greater than 1.
[0176] In some embodiments, the system quantum bits and the auxiliary quantum bits are arranged in an overlapping manner.
[0177] The technical solution provided by the present application, when preparing the thermalized state of the target quantum system, firstly processes the input quantum states of the system quantum bits and auxiliary quantum bits through the parameterized quantum circuit, then processes the measurement results corresponding to the auxiliary quantum bits through the neural network, obtains the corresponding weight parameters, and uses the weight parameters to approximately characterize the probability in the mixed state, and then calculates the expected value of the target function based on the constructed correlation function of the mixed state, and optimizes the parameters of the parameterized quantum circuit and the parameters of the neural network with the goal of convergence of the expected value of the target function, so as to obtain the mixed state of the target quantum system to approximately characterize the thermalized state of the target quantum system when the expected value of the target function meets the convergence condition. This solution introduces the neural network output weight parameter, and uses the weight parameter to adjust the weights corresponding to different auxiliary quantum bit measurement results, thereby enhancing the overall expression ability of the circuit through the trainable parameters of the neural network, and achieving the effect of preparing the thermalized state more efficiently and accurately.
[0178] It should be noted that the device provided in the above embodiment, when implementing its functions, only uses the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment belongs to the same concept as the method embodiment, and its specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0179] Please refer to Figure 8 , which shows a schematic diagram of the structure of a computer device provided in one embodiment of the present application. The computer device may be a classical computer. The computer device may be used to implement the thermal state preparation method under the quantum system provided in the above embodiment. Specifically:
[0180] The computer device 800 includes a processing unit (such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit) and 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 unit 801. The computer device 800 also includes a basic input / output system (Input Output System, I / O system) 806 for helping various devices in the server to transmit information, and a large-capacity storage device 807 for storing an operating system 813, application programs 814 and other program modules 815.
[0181] Optionally, the basic input / output system 806 includes a display 808 for displaying information and an input device 809 such as a mouse and a keyboard for user inputting information. The display 808 and the input device 809 are connected to the central processing unit 801 via an input / output controller 810 connected to the system bus 805. The basic input / output system 806 may also include an input / output controller 810 for receiving and processing inputs from a plurality of other devices such as a keyboard, a mouse, or an electronic stylus. Similarly, the input / output controller 810 also provides output to a display screen, a printer, or other types of output devices.
[0182] Optionally, 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 its associated computer readable medium provide non-volatile storage for the computer device 800. That is, the mass storage device 807 may include a computer readable medium (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0183] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage medium is not limited to the above. The above-mentioned system memory 804 and mass storage device 807 can be collectively referred to as memory.
[0184] According to the embodiment of the present application, the computer device 800 can also be connected to a remote computer on the network through a network such as the Internet. That is, the computer device 800 can be connected to the network 812 through the network interface unit 811 connected to the system bus 805, or the network interface unit 816 can be used to connect to other types of networks or remote computer systems (not shown).
[0185] The memory also includes a computer program, which is stored in the memory and configured to be executed by one or more processors to implement the thermal state preparation method under the above quantum system.
[0186] In an exemplary embodiment, a computer device is also provided, the computer device being used to implement the above-mentioned method for preparing a thermalized state in a quantum system. Optionally, the computer device is a quantum computer, or a classical computer, or a hybrid device execution environment of a quantum computer and a classical computer.
[0187] In an exemplary embodiment, a computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor of a computer device, the thermal state preparation method in the above-mentioned quantum system is implemented.
[0188] Optionally, the computer readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives) or optical disks, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0189] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned method for preparing a thermal state in a quantum system.
[0190] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0191] The above are merely exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for preparing a thermalized state in a quantum system, characterized in that: The method comprises: The input quantum state of the combined quantum bit is transformed by a parameterized quantum circuit, and the output quantum state of the parameterized quantum circuit is measured n times to obtain n groups of measurement results; wherein the combined quantum bit includes an auxiliary quantum bit and a system quantum bit of a target quantum system, and each group of measurement results includes: a first measurement result corresponding to the system quantum bit, and a second measurement result corresponding to the auxiliary quantum bit, and n is a positive integer; Processing the second measurement result by a neural network to obtain a weight parameter; Based on the weight parameters corresponding to the n second measurement results, respectively, weighted average is performed on the operation results corresponding to the n first measurement results, so as to obtain the correlation function value of the mixed state of the target quantum system; Based on the correlation function value of the mixed state, the expected value of the objective function is calculated; wherein, in the case where the first form of the thermalized state of the target quantum system needs to be obtained, the objective function is the free energy corresponding to the second form of the thermalized state; 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 a local approximation characteristic between them; The variational parameters are adjusted with the goal of convergence of the expected value of the objective function; wherein the variational parameters include at least one of the following: parameters of the parameterized quantum circuit, parameters of the neural network; When the expected value of the objective function satisfies a convergence condition, a mixed state of the target quantum system is obtained to approximately characterize a thermalized state of the target quantum system.
2. The method according to claim 1, characterized in that The method further comprises: Using a target correlation function to perform calculations on the n first measurement results respectively, to obtain calculation results corresponding to the n first measurement results respectively; The target correlation function is used to obtain the correlation function value of the mixed state of the target quantum system under the target Pauli string.
3. The method according to claim 2, characterized in that The step of calculating the expected value of the objective function based on the correlation function value of the mixed state includes: Obtaining correlation function values of the mixed state under a plurality of different Pauli strings; wherein the correlation function values of the mixed state under a plurality of different Pauli strings are obtained using different correlation functions; Based on the correlation function values of the mixed state under a plurality of different Pauli strings, the expected value of the Hamiltonian corresponding to the mixed state is calculated; Based on the expected value of the Hamiltonian corresponding to the mixed state and the entropy corresponding to the mixed state, the expected value of the objective function is calculated.
4. The method according to claim 1, characterized in that The first form of thermalization state is a Gibbs thermalization state, and the second form of thermalization state is a Renyi thermalization state.
5. The method according to claim 1, characterized in that The step of processing the second measurement result by a neural network to obtain a weight parameter includes: The second measurement result is processed by the neural network, and the value range of the output result of the neural network is restricted to obtain a weight parameter within the value range.
6. The method according to claim 5, characterized in that The value range is [1 / r, r], where r is a value greater than 1.
7. The method according to claim 1, characterized in that The system quantum bits and the auxiliary quantum bits are arranged in an overlapping manner.
8. A computer device, characterized in that: The computer device is used to implement the method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The computer program product comprises computer instructions, which are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Quantum state data processing method and device, electronic equipment and storage medium
CN113379056A
Data processing method, quantum computer, device and storage medium
CN113435581A
Data processing method and device based on quantum circuit, electronic equipment and medium
CN113496285A
Hybrid Quantum-Classical Computer System for Implementing and Optimizing Quantum Boltzmann Machines
US20200134502A1
Quantum generative models for sampling many-body spectral functions
WO2021154350A2
