Method, device and medium for calculating energy of target system by quantum chemistry

By determining the Hamiltonian, electronic information, and spin orbital information of the target system, the Hartree Fock state in fermion form is obtained and encoded into a qubit, thus overcoming the precision and size limitations of classical computers in computational chemistry and improving the speed and accuracy of quantum chemical simulation calculations.

CN116862004BActive Publication Date: 2026-02-17ORIGIN QUANTUM COMPUTING TECH (HEFEI) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310618832.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2026-02-17
Estimated Expiration
2043-05-25

AI Technical Summary

Technical Problem

Classical computers have limited capabilities in computational accuracy and computational size when performing computational chemistry, which restricts the development of quantum chemistry simulation applications.

Method used

By determining the Hamiltonian, electronic information, and electron spin orbital information of the target system, the Hartree Fock state in fermion form is obtained and encoded into a qubit. The energy of the target system is then calculated using the quantum state in Pauli operator form.

Benefits of technology

This has improved the computational speed and accuracy of quantum chemical simulations, and promoted the further development of quantum chemical simulation applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116862004B_ABST
    Figure CN116862004B_ABST
Patent Text Reader

Abstract

The application discloses a kind of method, device and medium for calculating the energy of target system using quantum chemistry, method includes: first determining target system information, target system information includes the Hamiltonian of target system, electronic information and electronic spin-orbit information, based on electronic information and electronic spin-orbit information, obtain the Hartree Fock state of fermion form of target system, by pre-setting coding mode, the Hartree Fock state of fermion form is encoded to qubit, and the quantum state of Pauli operator form is obtained, finally, according to the Hamiltonian of target system, and based on the quantum state of Pauli operator form and evolution wave function, the energy of target system is calculated, it can support the realization of quantum chemistry simulation to calculate the energy of target system, improve the calculation speed and calculation accuracy, promote the further development of quantum chemistry simulation application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of quantum computing technology, and in particular to a method, apparatus and medium for calculating the energy of a target system using quantum chemistry. Background Technology

[0002] A quantum computer is a physical device that performs high-speed mathematical and logical operations, stores and processes quantum information in accordance with the laws of quantum mechanics. When a device processes and calculates quantum information and runs quantum algorithms, it is a quantum computer. Because of its ability to process mathematical problems more efficiently than ordinary computers—for example, reducing the time to crack RSA keys from hundreds of years to hours—quantum computers have become a key technology under research.

[0003] Quantum computing simulation is a simulation program that uses numerical computation and computer science to simulate computations that follow the laws of quantum mechanics. As a simulation program, it uses the high-speed computing power of computers to characterize the spacetime evolution of quantum states based on the fundamental laws of quantum bits in quantum mechanics.

[0004] With the continuous improvement of quantum chemistry theory, computational chemistry has become an important tool for chemists to explain experimental phenomena, predict experimental results, and guide experimental design, with wide applications in drug synthesis and catalyst preparation. However, faced with the enormous computational demands involved in computational chemistry, classical computers are limited in terms of computational accuracy and computational size, which to some extent restricts the development of computational chemistry. Consequently, users' application of simulation calculations for chemical systems is not strong, hindering the further development of quantum chemistry simulation applications. Summary of the Invention

[0005] The purpose of this invention is to provide a method, apparatus, and medium for calculating the energy of a target system using quantum chemistry, thereby overcoming the shortcomings of the prior art. It can provide support for the realization of quantum chemical simulation calculation of the energy of a target system, improve the calculation speed and accuracy, and promote the further development of quantum chemical simulation applications.

[0006] One embodiment of this application provides a method for calculating the energy of a target system using quantum chemistry, the method comprising:

[0007] The target system information is determined, including the Hamiltonian, electronic information, and electron spin orbital information of the target system.

[0008] Based on the electronic information and electron spin orbital information, the Hartree Fock state in fermion form of the target system is obtained;

[0009] By using a pre-set encoding method, the Hartree Fock state in fermion form is encoded onto a qubit to obtain a quantum state in Pauli operator form;

[0010] The energy of the target system is calculated based on the Hamiltonian of the target system, and on the quantum state in the form of the Pauli operator and the evolution wave function.

[0011] Optionally, if the number of spin orbitals of the target system is N, the dimension of the Hamiltonian matrix of the target system is 2. N -2, and the number of qubits used for encoding is N-2.

[0012] Optionally, the electronic information of the target system includes α electrons and β electrons, and the quantum state in the form of the Pauli operator is represented in the following form:

[0013]

[0014] Where p is the spin orbital number of the α or β electron, and M is the number of spin orbitals of the α or β electron.

[0015] Optionally, the pre-set encoding method includes: Parity transform.

[0016] Optionally, after obtaining the Hartree Fock state in fermionic form of the target system, the method further includes:

[0017] The experimental state of the target system is obtained based on the Hartree Fock state in the fermionic form of the target system.

[0018] Optionally, obtaining the experimental state of the target system based on the Hartree Fock state of the fermionic form of the target system includes:

[0019] According to the pre-selected scheme, the Hartree Fock state is evolved to obtain the evolved quantum state as the test state of the target system.

[0020] Optionally, the step of evolving the Hartree Fock state according to a pre-selected hypothetical method to obtain the evolved quantum state as the experimental state of the target system includes:

[0021] Calculate the cluster operator in fermionic form for the target system;

[0022] Select a mapping method and transform the target system's fermion-form cluster operators into Pauli-form cluster operators;

[0023] The cluster operator in the form of the Pauli operator is decomposed into the corresponding unitary operator and evolved to obtain the evolved quantum state as the test state of the target system to be solved.

[0024] Another embodiment of this application provides an apparatus for calculating the energy of a target system using quantum chemistry, the apparatus comprising:

[0025] The determination module is used to determine the target system information, which includes the Hamiltonian, electronic information, and electron spin orbital information of the target system.

[0026] The module is used to obtain the Hartree Fock state in the fermion form of the target system based on the electronic information and the electron spin orbital information;

[0027] The conversion module is used to encode the Hartree Fock state in fermion form onto a qubit using a pre-set encoding method to obtain a quantum state in Pauli operator form;

[0028] The calculation module is used to calculate the energy of the target system based on the Hamiltonian of the target system and the quantum state and evolution wave function in the form of the Pauli operator.

[0029] Optionally, after obtaining the module, the device further includes:

[0030] The acquisition module is used to acquire the experimental state of the target system based on the Hartree Fock state in the fermionic form of the target system.

[0031] Optionally, the acquisition module includes:

[0032] An evolution unit is used to evolve the Hartree Fock state according to a pre-selected scheme, and obtain the evolved quantum state as the test state of the target system.

[0033] Optionally, the evolutionary unit includes:

[0034] Computational subunits are used to compute cluster operators in the fermion form of the target system;

[0035] The transformation subunit is used to select the mapping method and transform the cluster operator in the form of fermions of the target system into a cluster operator in the form of Pauli operators;

[0036] The decomposition subunit is used to decompose the cluster operator in the form of the Pauli operator into the corresponding unitary operator form and evolve it to obtain the evolved quantum state as the test state of the target system to be solved.

[0037] One embodiment of this application provides a storage medium storing a computer program, wherein the computer program is configured to execute the method described in any of the above descriptions when it is run.

[0038] One embodiment of this application provides an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the method described in any of the above-described embodiments.

[0039] Compared with existing technologies, this invention first determines the target system information, including the Hamiltonian, electronic information, and electron spin orbital information of the target system. Based on the electronic information and electron spin orbital information, the Hartree Fock state in fermion form of the target system is obtained. Through a pre-set encoding method, the Hartree Fock state in fermion form is encoded onto a qubit to obtain a quantum state in Pauli operator form. Finally, based on the Hamiltonian of the target system, the quantum state in Pauli operator form, and the evolution wave function, the energy of the target system is calculated. This invention can support the realization of quantum chemical simulation calculation of the energy of the target system, improve the calculation speed and accuracy, and promote the further development of quantum chemical simulation applications. Attached Figure Description

[0040] Figure 1 This is a system network diagram for calculating the energy of a target system using quantum chemistry, provided in an embodiment of the present invention.

[0041] Figure 2 This is a schematic flowchart of a method for calculating the energy of a target system using quantum chemistry, provided in an embodiment of the present invention.

[0042] Figure 3 This is a schematic diagram of a quantum circuit for constructing a Hartree Fock state provided in an embodiment of the present invention;

[0043] Figure 4 This is a schematic diagram of a quantum circuit structure corresponding to a proposed method;

[0044] Figure 5 This is a schematic diagram of a quantum circuit with reduced qubits provided in an embodiment of the present invention;

[0045] Figure 6 This is a schematic diagram of a device for calculating the energy of a target system using quantum chemistry, provided in an embodiment of the present invention. Detailed Implementation

[0046] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0047] The present invention first provides a method for calculating the energy of a target system using quantum chemistry. This method can be applied to electronic devices, such as computer terminals, specifically ordinary computers, quantum computers, etc.

[0048] The following detailed explanation uses a computer terminal as an example. Figure 1 This is a system network block diagram for calculating the energy of a target system using quantum chemistry, provided by an embodiment of the present invention. The system applied to calculating the energy of a target system using quantum chemistry may include a network 110, a server 120, a wireless device 130, a client 140, a storage unit 150, a classical processing system 160, a quantum processing system 170, and may also include additional memory, a classical processor, a quantum processor, and other devices (not shown).

[0049] Network 110 is a medium that provides communication links between various devices and computers connected within a system network for methods of calculating the energy of a target system using quantum chemistry. This includes, but is not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The connection method can be wired, wireless communication links, or fiber optic cables.

[0050] Server 120 and client 140 are conventional data processing systems that may contain data and applications or software tools that perform conventional computational processes. Client 140 may be a personal computer or a network computer, so the data may also be provided by server 120. Wireless device 130 may be a smartphone, tablet, laptop, smart wearable device, etc. Storage unit 150 may include database 151, which can be configured to store data such as qubit parameters, quantum logic gate parameters, quantum circuits, and quantum programs.

[0051] The classical processing system 160 (quantum processing system 170) may include a classical processor 161 (quantum processor 171) for processing classical data (quantum data) and a memory 163 (memory 172) for storing classical data (quantum data). The classical data (quantum data) may be a boot file, an operating system image, and an application program 162 (application program 173). The application program 162 (application program 173) may be used to implement a quantum algorithm compiled using the method for calculating the energy of a target system using quantum chemistry according to an embodiment of the present invention.

[0052] Any data or information stored or generated in the classical processing system 160 (quantum processing system 170) can also be configured to be stored or generated in another classical (quantum) processing system in a similar manner, and any application executed therein can also be configured to be executed in another classical (quantum) processing system in a similar manner.

[0053] It should be noted that a true quantum computer has a hybrid structure, which includes at least... Figure 1 The system consists of two main parts: the classical processing system 160, which is responsible for performing classical calculations and control; and the quantum processing system 170, which is responsible for running quantum programs and thus realizing quantum computing.

[0054] The aforementioned classical processing system 160 and quantum processing system 170 can be integrated into a single device or distributed across two different devices. For example, the first device, including the classical processing system 160, runs a classical computer operating system that provides quantum application development tools and services, as well as the storage and network services required for quantum applications. Users develop quantum applications using the quantum application development tools and services on the second device and send the quantum program to the second device, including the quantum processing system 170, via the network services. The second device runs a quantum computer operating system, which parses the code of the quantum program and compiles it into instructions that can be recognized and executed by the quantum computer control system. The quantum processor 170 then implements the quantum algorithm corresponding to the quantum program based on these instructions.

[0055] In the classic silicon-based processing system 160, the units of the classic processor 161 are CMOS transistors. These computing units are not limited by time or coherence; that is, they are available at any time without time constraints. Furthermore, the number of these computing units in a silicon chip is sufficient; currently, a classic processor contains tens of thousands of computing units. The sufficient number of computing units and the fixed selectable computing logic of the CMOS transistors, such as AND logic, allow for computational efficiency through a combination of numerous CMOS transistors and limited logic functions.

[0056] Unlike the logic units in the classical processing system 160, the basic computational unit of the quantum processor 171 in the quantum processing system 170 is the qubit. The input of a qubit is limited by coherence and coherence time; that is, a qubit is limited by its available usage time and is not always readily available. Making full use of qubits within their available usage time is a key challenge in quantum computing. Furthermore, the number of qubits in a quantum computer is one of the representative indicators of its performance. Each qubit performs computational functions through on-demand configured logic functions. Given the limited number of qubits and the diverse logic functions available in quantum computing, such as Hadamard gates (H gates), Pauli-X gates (X gates), Pauli-Y gates (Y gates), Pauli-Z gates (Z gates), X gates, RY gates, RZ gates, CNOT gates, CR gates, iSWAP gates, Tofoli gates, etc., quantum computing requires combining a limited number of qubits with diverse combinations of logic functions to achieve computational effects.

[0057] Based on these differences, the design of logical functions applied to qubits (including the design of whether qubits are used and the design of the efficiency of each qubit) is crucial to improving the computational performance of quantum computers and requires special design. The aforementioned design considerations for qubits are technical problems that ordinary computing devices do not need to consider or address. Given the increasing complexity of quantum computing simulation systems and the limited number of usable qubits in the Noisy Mesoscale Quantum (NISQ) era, a qubit reduction strategy is urgently needed to achieve more efficient quantum computing simulations of complex molecular systems. Therefore, exploring a qubit reduction technique for simulating the energy of large systems has become a pressing problem. This application provides a method and apparatus for calculating the energy of a target system using quantum chemistry to address the shortcomings of existing technologies. It supports the realization of quantum chemistry simulation calculations of target system energy, improves computational speed, reduces the number of qubits, and promotes the further development of quantum chemistry simulation applications.

[0058] See Figure 2 , Figure 2 This is a schematic flowchart of a method for calculating the energy of a target system using quantum chemistry, provided in an embodiment of the present invention.

[0059] This embodiment provides an example of a method for calculating the energy of a target system using quantum chemistry. The method for calculating the energy of a target system using quantum chemistry may include:

[0060] S201: Determine the target system information, which includes the Hamiltonian, electronic information, and electron spin orbital information of the target system.

[0061] Specifically, the target system can be considered as the molecular structure model that the user wants to simulate the ground state energy of, including, for example, the number of electrons that make up the molecule, the type of electrons, and the spin orbital information of the electrons.

[0062] The Hamiltonian is a physical concept in classical mechanics. In quantum mechanics, classical physical quantities are transformed into corresponding operators, and the Hamiltonian corresponds to the Hamiltonian operator. The Hamiltonian can be understood as the sum of the kinetic energies of all particles in a target system plus the potential energy of particles associated with the target system. The Hamiltonian differs for different situations or numbers of particles because it includes the sum of the kinetic energies of the particles and the potential energy function corresponding to that situation, generally denoted by H.

[0063] In quantum mechanics, all measurable mechanical quantities can be described by a Hermitian matrix. A Hermitian matrix is ​​defined as the matrix itself, where its transpose and conjugate are equal.

[0064]

[0065] Such matrices are usually called measurement operators. Non-zero operators will have at least one non-zero eigenvalue λ and a corresponding eigenstate |ψ>.

[0066] H|ψ>=λ|ψ>

[0067] If the eigenvalues ​​of the operator H correspond to the energy level distribution of a certain system, then such an operator can also be called a Hamiltonian.

[0068] An electron is a fundamental particle, and the number of electrons outside the nucleus in a target system is generally considered to be the number of electrons in that system. Electron spin orbital information is a mathematical description of the probability of finding an electron in a specific space outside the atomic nucleus, indicating the possible position of the electron in three-dimensional space. It should be noted that the electron information of the target system can include alpha and beta electrons, and the number of spin orbitals in the target system is N.

[0069] S202: Based on the electronic information and electron spin orbital information, obtain the Hartree Fock state in the fermion form of the target system.

[0070] For example, see Figure 3 , Figure 3 This is a schematic diagram of a quantum circuit for constructing a Hartree Fock state according to an embodiment of the present invention. For the hydrogen molecule target system, it is only necessary to add a NOT gate to each of the two qubits to initialize |0000> to |0101> in the quantum circuit.

[0071] Taking the target system as a hydrogen molecule as an example, it contains four single-electron spin molecular orbitals and two electrons. Based on the number of electrons and electron spin orbital information of the hydrogen molecule, if one quantum bit represents one electron spin orbital, that is, 0 represents an empty orbital and 1 represents an occupied orbital, the Hartree-Fock state of the hydrogen molecule target system can be represented by the quantum state |0101>.

[0072] In an optional implementation, after obtaining the Hartree Fock state in the fermionic form of the target system, the method may further include:

[0073] The experimental state of the target system is obtained based on the Hartree Fock state in the fermionic form of the target system.

[0074] Specifically, the experimental state of the target system can be obtained by evolving the HartreeFock state according to a pre-selected simulation method, and the evolved quantum state can be used as the experimental state of the target system.

[0075] Step 1: Calculate the cluster operator in fermionic form for the target system.

[0076] Specifically, cluster operators can be understood as a type of artificially defined operator used to represent the jumping of electrons in orbitals. Let's assume a pre-prepared initial molecular state, such as |ψ> Hartree-Fock The method for evolving to quantum circuits can be pre-selected as the coupled cluster (CC) approach. This is a method that starts from Hartree Fock molecular orbitals and obtains the experimental state |ψ> through simulation. Here, the simulation is the exponential coupled cluster operator e. T Satisfying: |ψ>=e T |ψ> Hartree-Fock In this hypothesis, T represents the N-electron cluster operator, defined as the sum of several excitation operators, i.e.:

[0077] T = T1 + T2 + ... + T N

[0078] Where T1 is the single-particle excitation operator, T2 is the two-particle excitation operator, and the remaining terms follow the same pattern. Since the probability of triple and quadruple excitations occurring in a multi-electron system is very small, a "truncation" is usually performed at the double excitation point, ultimately leaving only the T1 and T2 terms, i.e.:

[0079] T = T1 + T2

[0080] in, To create an operator, a r a s Here, p, q, r, and s represent annihilation operators, and the undetermined coefficient t represents the orbital. pq t pqrs Parameters that need to be found by the optimizer satisfy

[0081] It is important to note that after transforming the initial state of the target system into a cluster operator in fermionic form through a hypothetical method, due to e T Exponentially coupled cluster operators are not unitary operators, therefore e cannot be directly used. T The exponentially coupled cluster operator is mapped onto the qubit using a predefined mapping method, but it cannot construct the corresponding quantum circuit. Therefore, it is necessary to construct a unitary operator version of the exponentially coupled cluster operator, namely the unitary coupled cluster (UCC) operator.

[0082] For example, it can first be defined Where T = ∑ i T i ,and …It should be noted that if the cluster operator T in UCC contains only the term T1, then this is called a single-excitation coupled cluster (UCCS); if the cluster operator T in UCC contains both T1 and T2, then this is called a single-double excitation coupled cluster (UCCSD).

[0083] Correspondingly, for UCCS and UCCSD, it is assumed that the corresponding quantum circuits are the same, for example, as follows: Figure 4 As shown, Figure 4 This is a schematic diagram of a quantum circuit structure corresponding to a proposed method, specifically a four-qubit quantum circuit diagram corresponding to the UCC method. The diagram shows a quantum circuit diagram of 4 qubits q0, q1, q2, and q3, where X -π / 2 X π / 2 This represents the X gate and Y gate with parameters of -π / 2 and π / 2 respectively. Similarly, the icons... And its connection to a solid line represents a CNOT gate, Z θ This represents a Z-gate with parameter θ. The proposed principle can include: a proposed formula, for example, the matrix operator U(θ) corresponding to a quantum circuit. For UCC, the corresponding proposed formula is:

[0084]

[0085] in, That is, the proposed hypothesis, P i It is a generator.

[0086] For example, for describing the hydrogen molecule, |0011> Hartree-Fock State, that is

[0087] When T = T1, it is the Hamiltonian constructed by the first four single excitations; when T = T1 + T2, it is the Hamiltonian constructed by the single excitation and double excitation.

[0088] Step 2: Select the mapping method and transform the cluster operator in the form of fermions of the target system into a cluster operator in the form of Pauli operators.

[0089] Step 3: Decompose the cluster operator in the form of the Pauli operator into the corresponding unitary operator and evolve it to obtain the evolved quantum state as the experimental state of the target system to be solved.

[0090] For example, when transforming fermionic cluster operators into Pauli operator forms using the Jordan-Wigner transform, it is necessary to introduce the asymptotic approximation theorem, namely the Trotter formula, which is the core of quantum simulation algorithms: lim n→∞ (e iAt / n eiBt / n ) n =e i(A+B ) t , where A and B are Hermitian operators, t is a real number, and n is a positive integer.

[0091] It should be noted that, using Todd's formula, an exponential function can be decomposed into several sub-exponential function terms. Todd's decomposition emphasizes the tendency for the larger n is, the closer it is to the original expression, rather than considering the specific value of n.

[0092] For example, suppose After the Jordan-Wigner transform, we can see that:

[0093]

[0094]

[0095]

[0096] Where X represents the Pauli-X gate, Y represents the Pauli-Y gate, Z represents the Pauli-Z gate, and the subscripts indicate the qubit numbers of each quantum logic gate.

[0097] S203: The Hartree Fock state in fermion form is encoded onto a qubit using a pre-set encoding method to obtain a quantum state in Pauli operator form.

[0098] Specifically, we can first determine N qubits and then use a pre-set encoding method to transform the Hartree Fock state in fermion form into the Hilbert space in Pauli operator form, so that each fermion state can be represented by a quantum state.

[0099] The electronic information of the target system includes α electrons and β electrons, and the quantum state in the form of the Pauli operator can be represented in the following form:

[0100]

[0101] p is the spin orbital number of the α or β electron, and M is the number of spin orbitals of the α or β electron.

[0102] For example, from the Jordan-Wigner mapping to the Parity transform or the Bravyi-Kitaev mapping, because the number of electrons and spin electrons in the target system are conserved—and this is true for any Slater determinant that preserves the number of α electrons—it is clear that the ground state is simply a linear combination of Slater determinants. Furthermore, since calculating the ground state energy can essentially be viewed as a problem of electron distribution among orbitals, this information can be used to simplify the calculation. Specifically, if the expected occupancy of an orbital is close to 0 or 1, it can be removed from the calculation. Therefore, the calculation is simplified to include only the most important orbitals; this is known as performing the calculation of the target system's energy in a reduced active space.

[0103] For example, the Slater determinant of the Jordan-Wigner transform can be expressed as:

[0104]

[0105]

[0106] In one alternative implementation, the pre-set encoding method can be one of Jordan-Wigner transform, Parity transform, Bravyi-Kitaev transform, and SegmentParity transform.

[0107] S204: Calculate the energy of the target system based on the Hamiltonian of the target system and the quantum state and evolution wave function in the form of the Pauli operator.

[0108] In quantum computing, the selection of the wavefunction requires a reference wavefunction as a basis vector. For example, in quantum chemistry, the Hartree Fock state vector is generally used as the reference wavefunction to satisfy:

[0109] ψ(θ)=U(θ)|ψ> Hartree-Fock

[0110] Where ψ(θ) represents the wavefunction corresponding to a set of parameters θ, and U(θ) represents the matrix operator corresponding to a set of parameters θ. (Refer to the wavefunction |ψ>) Hartree-Fock In chemistry, this corresponds to the Hartree Fock ground state, which means that all the electrons in the molecule are in their lowest orbitals.

[0111] The wavefunction has been generated; now it is necessary to measure the expected value of the Hamiltonian. The Hamiltonian of the target system in the second-order quantization method can be mapped to a linear combination of local Pauli operator products through a pre-defined transformation. The expected value of the second-order quantization operator must be equivalent to the expected value of the corresponding first-order quantization operator. Since the first-order quantization operator preserves the number of electrons, the second-order quantization operator must contain an equal number of production and annihilation operators. Thus, the second-order quantization form of the electron Hamiltonian can be obtained using these requirements:

[0112]

[0113] It should be noted that, see Figure 5 , Figure 5 This is a schematic diagram of a quantum circuit with qubit reduction provided by an embodiment of the present invention. Since the electron number conservation and spin electron number conservation are satisfied for a specific target system, the value of the N / 2th qubit is M in the Parity transform or Bravyi-Kitaev mapping. α The remainder after dividing by 2 is used to determine the value of the Nth qubit (M). α +M β The remainder of 2 is taken, but this means that two qubits do not need to be simulated, thus simplifying the process. Therefore, by using a pre-defined encoding method, the dimension of the Hamiltonian matrix of the target system is reduced to 2. N -2, and the number of qubits used for encoding can also be reduced to N-2.

[0114] In one alternative implementation, calculating the energy of the target system based on its Hamiltonian and the quantum states and evolution wavefunctions in the form of Pauli operators may include:

[0115] Step a: Obtain the fermion Hamiltonian corresponding to the target system, and transform the fermion Hamiltonian corresponding to the target system into the Pauli Hamiltonian of the target system.

[0116] Specifically, based on the mechanical analysis of the target system, the Hamiltonian of this system can be obtained. Obtaining the fermionic Hamiltonian corresponding to the target system requires the use of the creation operator. and annihilation operator a q To achieve this, they satisfy the opposition to easy relations.

[0117] For example, for the hydrogen molecule system, the corresponding fermion Hamiltonian is:

[0118] It's important to note that in quantum computing, the fermionic form of the Hamiltonian cannot be directly derived in a circuit. Therefore, a process is needed to convert the integral expectation value into a form readable by the quantum circuit; this process is called mapping. It's crucial to understand that mapping merely changes the form of the Hamiltonian; the system energy information represented by different types of Hamiltonians is equivalent. Furthermore, for a quantum simulation circuit or a real quantum chip, Pauli operators are easier to manipulate and generate. Therefore, the fermionic Hamiltonian corresponding to the target system can be transformed into the Pauli Hamiltonian of the target system, facilitating subsequent simulation operations.

[0119] Following the example above, for the hydrogen molecule system, its corresponding fermion Hamiltonian is transformed into the Pauli Hamiltonian as follows:

[0120]

[0121] Step b: Based on the sub-terms of the Pauli Hamiltonian decomposition of the target system, construct the quantum circuits corresponding to each sub-term of the Pauli Hamiltonian of the target system.

[0122] Specifically, obtain the experimental state |ψ of the target system. n After that, it is necessary to start using the quantum expectation estimation algorithm to calculate the experimental state |ψ n >Expectation over the molecular Hamiltonian. The so-called quantum expectation estimate refers to the fact that the Hamiltonian H of multi-electron systems, Heisenberg models, quantum Ising models, etc., can be expanded into a sum of multiple sub-terms, i.e.:

[0123]

[0124] Where h is a real number, σ is the Pauli operator, α, β and γ ∈ (X, Y, Z, I), and i, j and k represent the subspaces in which the Hamiltonian quantum terms operate.

[0125] Since the observables are linear, the average energy of the system can be calculated using the following formula:

[0126] E = <ψ * |H|ψ>

[0127] Where, ψ * Since ψ is orthogonal and uniform, the right side of the equation can also be expanded into this form:

[0128]

[0129] Therefore, we can obtain the average energy E of the system by first calculating the expectation of each sub-term and then summing the expectations. It should be noted that the measurement of the expectation of each sub-term can be performed on a quantum processor, while a classical processor can handle the summation of the expectations.

[0130] For example, suppose the Hamiltonian of a system is H, it can ultimately be expanded into this form:

[0131]

[0132] In this formula, all sub-term coefficients h are 1, and it is assumed that the obtained experimental state is of the following form:

[0133] |ψ>=a|00>+b|01>+c|10>+d|11>

[0134] Among them, a 2 b 2 c 2 d 2 These refer to the probabilities P of collapsing to |00>, |01>, |10>, and |11> when measuring the experimental state. S By applying the Hamiltonian's sub-terms H1, H2, and H3 to the experimental state, we can obtain the expected values ​​E1, E2, and E3 in sequence, specifically:

[0135] E1=<ψ * |H1|ψ>

[0136] E2=<ψ * |H2|ψ>

[0137] E3=<ψ * |H3|ψ>

[0138] Taking E1, E2, and E3 as examples, for the desired E1, the coefficient h is the desired value, and there is no need to construct a circuit for measurement. For the expected value E2, its Hamiltonian is Because the measurement operation is in σ Z Above (with σ) Z The measurement is performed on the eigenvectors of the qubits (which are subspaces formed by the basis vectors), so it is only necessary to add a measurement gate to the qubits and then pass the measurement results to a classical processor for summation.

[0139] Step c: Measure the energy expectation of the experimental state using the quantum circuits corresponding to each subterm of the Pauli Hamiltonian of the target system.

[0140] Specifically, by expanding the measurement circuit of each sub-term expectation of the Pauli Hamiltonian of the target system, the measurement circuit of each sub-term expectation E(i) can be obtained. Then, the quantum processor transmits E(i) to the classical processor in sequence for summation, and the energy expectation of the target system in the experimental state is obtained.

[0141] It should be noted that, since the measurement operation is performed at σ Z The above is performed, for those containing σ x σ y The Hamiltonian cannot be directly measured at this point; it requires the determination of σ. x and σ y Performing a basis change operation, that is, letting the experimental state evolve again, due to σ x =H×σ Z ×H, That is, for σ x and σ y Before measurement, Hadamard gates and gates need to be added to the corresponding qubits respectively. The gate is then used to sum the measurement results, which are then passed to a classical processor.

[0142] It should be emphasized that the above-mentioned design methods, mapping methods and optimization methods are merely examples and do not constitute a limitation on the present invention. For example, design methods also include HE (Hardware Efficient) and SP (Symmetry Preserved) methods.

[0143] As can be seen, this invention first determines the target system information, including the Hamiltonian, electronic information, and electron spin orbital information of the target system. Based on the electronic information and electron spin orbital information, the Hartree Fock state in fermion form of the target system is obtained. Through a pre-set encoding method, the Hartree Fock state in fermion form is encoded onto a qubit to obtain a quantum state in Pauli operator form. Finally, based on the Hamiltonian of the target system, and the quantum state in Pauli operator form and the evolution wave function, the energy of the target system is calculated. This invention can provide support for the realization of quantum chemical simulation calculation of the energy of the target system, improve the calculation speed and accuracy, and promote the further development of quantum chemical simulation applications.

[0144] See Figure 6 , Figure 6 This is a schematic diagram of a device for calculating the energy of a target system using quantum chemistry, provided in an embodiment of the present invention. Figure 2 Corresponding to the process shown, the apparatus includes:

[0145] The determination module 601 is used to determine the target system information, which includes the Hamiltonian, electronic information and electron spin orbital information of the target system.

[0146] The module 602 is used to obtain the Hartree Fock state in the fermion form of the target system based on the electronic information and the electron spin orbital information.

[0147] The conversion module 603 is used to encode the Hartree Fock state in fermion form onto a quantum bit through a pre-set encoding method to obtain a quantum state in Pauli operator form;

[0148] The calculation module 604 is used to calculate the energy of the target system based on the Hamiltonian of the target system and the quantum state in the form of the Pauli operator and the evolution wave function.

[0149] Specifically, after the obtaining module, the device further includes:

[0150] The acquisition module is used to acquire the experimental state of the target system based on the Hartree Fock state in the fermionic form of the target system.

[0151] Specifically, the acquisition module includes:

[0152] An evolution unit is used to evolve the Hartree Fock state according to a pre-selected scheme, and obtain the evolved quantum state as the test state of the target system.

[0153] Specifically, the evolutionary unit includes:

[0154] Computational subunits are used to compute cluster operators in the fermion form of the target system;

[0155] The transformation subunit is used to select the mapping method and transform the cluster operator in the form of fermions of the target system into a cluster operator in the form of Pauli operators;

[0156] The decomposition subunit is used to decompose the cluster operator in the form of the Pauli operator into the corresponding unitary operator form and evolve it to obtain the evolved quantum state as the test state of the target system to be solved.

[0157] Compared with existing technologies, this invention first determines the target system information, including the Hamiltonian, electronic information, and electron spin orbital information of the target system. Based on the electronic information and electron spin orbital information, the Hartree Fock state in fermion form of the target system is obtained. Through a pre-set encoding method, the Hartree Fock state in fermion form is encoded onto a qubit to obtain a quantum state in Pauli operator form. Finally, based on the Hamiltonian of the target system, the quantum state in Pauli operator form, and the evolution wave function, the energy of the target system is calculated. This invention can support the realization of quantum chemical simulation calculation of the energy of the target system, improve the calculation speed and accuracy, and promote the further development of quantum chemical simulation applications.

[0158] This invention also provides a storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.

[0159] Specifically, in this embodiment, the storage medium can be configured to store a computer program for performing the following steps:

[0160] S201: Determine the target system information, which includes the Hamiltonian, electronic information, and electron spin orbital information of the target system;

[0161] S202: Based on the electronic information and electron spin orbital information, obtain the Hartree Fock state in the fermion form of the target system;

[0162] S203: Encode the Hartree Fock state in fermion form onto a qubit using a pre-set encoding method to obtain a quantum state in Pauli operator form;

[0163] S204: Calculate the energy of the target system based on the Hamiltonian of the target system and the quantum state and evolution wave function in the form of the Pauli operator.

[0164] Specifically, in this embodiment, the storage medium may include, but is not limited to, USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks, and other media capable of storing computer programs.

[0165] This invention also provides an electronic device, including a memory and a processor, characterized in that the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0166] Specifically, the aforementioned electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the aforementioned processor, and the input / output device is connected to the aforementioned processor.

[0167] Specifically, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0168] S201: Determine the target system information, which includes the Hamiltonian, electronic information, and electron spin orbital information of the target system;

[0169] S202: Based on the electronic information and electron spin orbital information, obtain the Hartree Fock state in the fermion form of the target system;

[0170] S203: Encode the Hartree Fock state in fermion form onto a qubit using a pre-set encoding method to obtain a quantum state in Pauli operator form;

[0171] S204: Calculate the energy of the target system based on the Hamiltonian of the target system and the quantum state and evolution wave function in the form of the Pauli operator.

[0172] This invention can also provide a quantum computer operating system, which realizes the calculation of the energy of a target system using quantum chemistry according to any of the above-described method embodiments provided in this invention.

[0173] Embodiments of this application may also provide a quantum computer, which includes the aforementioned quantum computer operating system.

[0174] The above description, based on the embodiments shown in the figures, details the structure, features, and effects of the present invention. The above description is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the figures. Any changes made in accordance with the concept of the present invention, or equivalent embodiments modified to have equivalent changes, that do not exceed the spirit covered by the specification and figures, should be within the protection scope of the present invention.

Claims

1. A method for calculating the energy of a target system using quantum chemistry, characterized in that, The method includes: The target system information is determined, including the Hamiltonian, electronic information, and electron spin orbital information of the target system. Based on the aforementioned electronic information and electron spin orbital information, the fermionic form of the target system is obtained. state; By using a pre-set encoding method, the fermion form The state is encoded onto a qubit to obtain a quantum state in the form of a Pauli operator; wherein the pre-set encoding method includes: Parity transform; the electronic information of the target system includes Electronics and The electron, in the form of the Pauli operator, is represented by the following form: in, for electronic or The spin orbital number of the electron. for electronic or The number of electron spin orbitals, and , ; The energy of the target system is calculated based on its Hamiltonian, the quantum state in Pauli operator form, and the evolution wave function; wherein, if the spin orbital number of the target system is... The dimension of the Hamiltonian matrix of the target system is And the number of qubits used for encoding is .

2. The method according to claim 1, characterized in that, The fermion form of the target system is obtained Following the state, the method further includes: According to the fermion form of the target system The experimental state of the target system is obtained.

3. The method according to claim 2, characterized in that, The fermion form according to the target system The experimental state of the target system is obtained, including: According to the pre-selected design method, the... The state is evolved to obtain the evolved quantum state as the test state of the target system.

4. The method according to claim 3, characterized in that, The method of setting up according to the pre-selected scheme is used to... The state evolves to obtain the evolved quantum state as the test state of the target system, including: Calculate the cluster operator in fermionic form for the target system; Select a mapping method and transform the target system's fermion-form cluster operators into Pauli-form cluster operators; The cluster operator in the form of the Pauli operator is decomposed into the corresponding unitary operator and evolved to obtain the evolved quantum state as the test state of the target system to be solved.

5. A device for calculating the energy of a target system using quantum chemistry, characterized in that, The device includes: The determination module is used to determine the target system information, which includes the Hamiltonian, electronic information, and electron spin orbital information of the target system. The acquisition module is used to obtain the fermion form of the target system based on the electronic information and electron spin orbital information. state; The conversion module is used to convert the fermions into their pre-set encoding form. The state is encoded onto a qubit to obtain a quantum state in the form of a Pauli operator; wherein the pre-set encoding method includes: Parity transform; the electronic information of the target system includes Electronics and The electron, in the form of the Pauli operator, is represented by the following form: in, for electronic or The spin orbital number of the electron. for electronic or The number of electron spin orbitals, and , ; The calculation module is used to calculate the energy of the target system based on the Hamiltonian of the target system, and on the quantum state in the form of the Pauli operator and the evolution wave function; wherein, if the number of spin orbitals of the target system is... The dimension of the Hamiltonian matrix of the target system is And the number of qubits used for encoding is .

6. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 4 when it is run.

7. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and device for calculating energy of target system based on quantum chemistry and medium

    CN114492815A