METHOD AND APPARATUS FOR OBTAINING GROUND STATE OF QUANTUM SYSTEM

Information

  • Patent Application
  • 20230162079
  • Publication Number
    20230162079
  • Date Filed
    November 21, 2022
    2 years ago
  • Date Published
    May 25, 2023
    a year ago
  • CPC
    • G06N10/20
    • G06N10/60
  • International Classifications
    • G06N10/20
    • G06N10/60
Abstract
Some aspects of the disclosure provide a method for obtaining a ground state of a quantum system. The method includes preparing an initial state of the quantum system and performing an n-step evolution and post-processing operation on the quantum system, where n is a first positive integer. The n-step evolution and post-processing operations includes one or more steps that increase a proportion of the ground state in one or more output states of the one or more steps step by step. The method also includes obtaining an output quantum state in an nth step in the n-step evolution and post-processing operation and determining the ground state of the quantum system based on the output quantum state in the nth step in the n-step evolution and post-processing operation. Apparatus and non-transitory computer-readable storage medium counterpart embodiments are also contemplated.
Description
FIELD OF THE TECHNOLOGY

Embodiments of this application relate to the field of quantum technologies, including determining a ground state of a quantum system.


BACKGROUND OF THE DISCLOSURE

A ground state of a quantum system refers to an eigenstate of the quantum system with lowest energy. Obtaining a ground state of a quantum system represents obtaining a most stable state of the quantum system, which has important applications in many studies.


In the related art, a solution to solving the ground state of the quantum system based on imaginary time evolution is provided. A theory of solving the ground state in this solution is clear, which makes a process of approaching the ground state have theoretical guarantee. But e−Hτ it uses is non-unitary, and cannot be directly decomposed into a single bit gate or a double bit gate which is applicable to a quantum circuit, which makes it difficult to implement this solution in an actual implementation.


SUMMARY

Embodiments of this disclosure provide a method, an apparatus, a device, a medium, and a program product for obtaining a ground state of a quantum system.


Some aspects of the disclosure provide a method for obtaining a ground state of a quantum system. The method includes preparing an initial state of the quantum system and performing an n-step evolution and post-processing operation on the quantum system, where n is a first positive integer. The n-step evolution and post-processing operations includes one or more steps that increase a proportion of the ground state in one or more output states of the one or more steps step by step. The method also includes obtaining an output quantum state in an nth step in the n-step evolution and post-processing operation and determining the ground state of the quantum system based on the output quantum state in the nth step in the n-step evolution and post-processing operation.


Some aspects of the disclosure provide an apparatus for obtaining a ground state of a quantum system. The apparatus includes processing circuitry. The processing circuitry prepares an initial state of the quantum system, and performs an n-step evolution and post-processing operation on the quantum system, where n is a first positive integer. The n-step evolution and post-processing operations includes one or more steps that increase a proportion of the ground state in one or more output states of the one or more steps step by step. The processing circuitry obtains an output quantum state in an nth step in the n-step evolution and post-processing operation, and determines the ground state of the quantum system based on the output quantum state in the nth step in the n-step evolution and post-processing operation.


Some aspects of the disclosure provide another method for obtaining a ground state of a quantum system. The method includes using a variational quantum circuit to construct a trial quantum state, adjusting one or more parameters of the variational quantum circuit to cause the trial quantum state to approach a target quantum state of the quantum system, setting the trial quantum state constructed by using the variational quantum circuit as a ground state of the quantum system in response to the one or more parameters of the variational quantum circuit meeting a stop optimization condition, and determining an energy expectation value of a Hamiltonian of the quantum system under the trial quantum state as a ground state energy of the quantum system.


The technical solutions provided in the embodiments of this disclosure may include the following beneficial effects:


The target quantum system is gradually evolved from the initial state to the ground state by performing multi-step evolution and post-processing on the target quantum system, to obtain the ground state of the target quantum system. In the evolution process, the auxiliary qubit is introduced to implement unitary evolution, thereby providing a quantum simulation algorithm based on a non-Hermitian process, to simulate the ground state of the target quantum system. A real-time unitary evolution related to a Hamiltonian of the system is used for achieving an effect of virtual and real evolution, thus implementing simulation of the ground state of the target quantum system in theory. In addition, this process can be directly implemented by using a quantum circuit, which fully improves operability of the solution.





BRIEF DESCRIPTION OF THE DRAWINGS

To describe technical solutions in embodiments of this disclosure more clearly, the following briefly introduces accompanying drawings required for describing the embodiments. The accompanying drawings in the following description show some embodiments of this disclosure.



FIG. 1 is a flowchart of a method for obtaining a ground state of a quantum system according to an embodiment of this disclosure.



FIG. 2 is a schematic diagram of a structure of a quantum circuit for implementing a non-Hermitian quantum simulation algorithm according to an embodiment of this disclosure.



FIG. 3 is a schematic diagram of a structure of a quantum circuit for implementing a non-Hermitian quantum simulation algorithm in combination with a variational quantum circuit according to an embodiment of this disclosure.



FIG. 4 is a schematic diagram of compressing a quantum state by using a variational quantum circuit according to an embodiment of this disclosure.



FIG. 5 is a schematic diagram of experimental data according to an embodiment of this disclosure.



FIG. 6 is a schematic diagram of experimental data according to another embodiment of this disclosure.



FIG. 7 is a schematic diagram of experimental data according to another embodiment of this disclosure.



FIG. 8 is a block diagram of an apparatus for obtaining a ground state of a quantum system according to an embodiment of this disclosure.





DESCRIPTION OF EMBODIMENTS

To make objectives, technical solutions, and advantages of this disclosure clearer, the following further describes implementations of this disclosure in further detail with reference to the accompanying drawings.


The following are explanations of some key terms involved in this disclosure.


1. Quantum computing: It refers to a calculation method based on quantum logic, and a basic unit storing data is qubit.


2. Qubit: It refers to a basic unit of quantum computing. 0 and 1 are used as basic units of binary in the related computers. Unlike the related computers, 0 and 1 can be processed at the same time through quantum computing, and a system can be in a linear superposition state of 0 and 1: |ψcustom-characterα|0custom-character+β|1custom-character. α and β represent complex probability amplitudes of the system on 0 and 1. Squares of their moduli |α|2 and |β|2 respectively represent probabilities of being at 0 and 1.


3. Quantum circuit: It is a representation of a universal quantum computer, and represents hardware implementation of a corresponding quantum algorithm/program under a quantum gate model. If the quantum circuit includes an adjustable parameter to control a quantum gate, it is called a parameterized quantum circuit (PQC) or a variational quantum circuit (VQC), both of which are the same concept.


4. Hamiltonian: It refers to a Hermitian conjugate matrix describing total energy of a quantum system. The Hamiltonian is a physical term and an operator describing total energy of a system, which is usually represented by H.


5. Eigenstate: For a Hamiltonian matrix H, a solution meeting an equation H|ψcustom-character=E|ψcustom-character is called an eigenstate |ψcustom-character of H, and has eigenenergy E. A ground state corresponds to an eigenstate of a quantum system with a lowest energy.


6. Noisy intermediate-scale quantum (NISQ): NISQ hardware in the near future is a key direction of the current stage and research of quantum computing development. At this stage, due to limitation of a scale and noise, the quantum computing cannot be used as an engine of general computing for the time being, but on some issues, it can already achieve a result of surpassing a strongest classic computer, which is often called quantum hegemony or quantum superiority.


7. Variational quantum eigensolver (VQE): Estimation for a ground state energy of a specific quantum system through a variational circuit (PQC/VQC) is a typical quantum classical hybrid computational paradigm, which is widely applied to the field of quantum chemistry.


8. Non-unitary: All unitary matrices meet UU=I, and all evolution processes directly allowed in quantum mechanics can be described by the unitary matrix. U is a unitary matrix. U is a conjugate transpose of U. In addition, a matrix that does not meet the condition is non-unitary, which can only be experimentally implemented through auxiliary means or even exponential resources. However, a non-unitary matrix often has a stronger expression capability and faster ground state projection effect. The foregoing “exponential resources” mean that demand for resources exponentially increases with increase of a quantity of qubits, and the exponential resources may mean that a total quantity of quantum circuits to be measured is exponential, that is, exponential calculation time is required accordingly.


9. Pauli string: A general Hamiltonian can usually be decomposed into a sum of a set of Pauli strings for a term composed of Cartesian products of a plurality of Pauli operators of different lattice points. The VQE is usually decomposed according to the Pauli string and measured term by term.


10. Pauli operator: It is also referred to as a Pauli matrix, is a group of three 2×2 unitary Hermitian complex matrices (also referred to as unitary matrices), and is generally represented by a Greek letter σ (Sigma). A Pauli X operator is








σ
x

=

[



0


1




1


0



]


,




a Pauli Y operator is








σ
y

=

[



0



-
i





i


0



]


,




and a Pauli Z operator is







σ
z

=


[



1


0




0



-
1




]

.





Obtaining a ground state of a quantum system represents obtaining a most stable state of the quantum system, which has very important applications in study of basic properties of quantum physics and quantum chemistry systems, a solution to a combinatorial optimization problem, pharmaceutical research, and the like. An important application scenario of a quantum computer is to effectively solve or express the ground state of the quantum system. Currently, some research institutions and manufacturers are constantly studying new quantum computers, and are committed to exploring the solution to the ground state.


The following is descriptions of a solution to obtaining the ground state of the quantum system provided in the related art.


Solution 1: Solve the ground state of the quantum system through imaginary time evolution.


The imaginary time evolution is a basic method to solve the ground state of the quantum system.


A time-dependent Schrödinger equation is:








i






t



ψ

(

r
,
t

)



=

H


ψ

(

r
,
t

)



;




H is a Hamiltonian of a target quantum system, ψ(r, t) represents a quantum state of the target quantum system at a moment of t, and i is an imaginary unit.


A stationary state Schrödinger equation is:







i(r)=Eiϕi(r);


ϕi(r)(r=1,2,3 . . . ) is an eigenstate, and corresponds to eigenenergy Ei. E0≤E1≤E2≤E3 . . . , E0 is ground state energy. Imaginary time is defined as τ=it, then an imaginary time Schrödinger equation is:











t



ψ

(

r
,
t

)


=


-
H




ψ

(

r
,
t

)

.






In order to calculate the ground state of the target quantum system, an initial state τ=0 is randomly given when ψ(r,0), which can be written as superposition of an eigenstate ψ(r,0)=Σiciϕi(r), and ci is an expansion factor.


A wave function at τ is:







ψ

(

r
,
τ

)

=



e


-
H


τ




ψ

(

r
,
0

)


=




i



c
i



e


-

E
i



τ





ϕ
i

(
r
)



=



e


-

E
0



τ


[



c
0



ϕ
0


+




i
=
1




c
i



e


-

(


E
i

-

E
0


)



τ





ϕ
i

(
r
)




]

.







Because Ei≥E0, along with evolution of ψ(r,τ), compared with ϕ0, other states decay faster, and only the ground state is left in the end.


Solution 2: Variational quantum eigensolver (VQE).


The VQE is a fault-tolerant quantum algorithm that can run on an NISQ quantum devices and can simulate the ground state of the target quantum system.


An initial quantum state |ψ0custom-character is given. Generally, an all-zero state, a uniform superposition state, or a Hartree-Fock state may be considered, and may be written as a linear combination of the eigenstate. A parameterized quantum circuit U(θ) is provided, so that U(θ)|ψ0custom-character=|ψ(θ)custom-character. As long as a quantum state space expressed by the parameterized quantum circuit includes the ground state of the target quantum system, a process of solving the ground state E0 of the target quantum system can be transformed into an optimization process of a parameter in the quantum circuit:







E
0

=


min
θ





ψ
(

θ




"\[LeftBracketingBar]"

H


"\[RightBracketingBar]"




ψ

(
θ
)





.






A set of optimal θ may be found through a gradient descent method. Then, the parameterized quantum circuit is updated, to obtain an eigenstate ϕ0 corresponding to the ground state energy.


Solution 3: Solve the ground state of the quantum system through variational imaginary time evolution.


In the variational imaginary time evolution, a process of imaginary time evolution is simulated by using a variational method combining classical and quantum, so as to solve the ground state of the target quantum system.


An initial state |ψ(0)custom-character is provided, and the imaginary time evolution is defined as:





|ψ(τ)custom-character=A(τ)e−Hτ|ψ(0)custom-character.







A

(
τ
)

=

1





ψ

(
θ
)





"\[LeftBracketingBar]"


e


-
2


H

τ




"\[RightBracketingBar]"




ψ

(
θ
)










is a normalization factor.


Wick rotation Schrödinger equation is:















"\[LeftBracketingBar]"


ψ

(
τ
)







t


=


-

(

H
-

E
τ


)






"\[LeftBracketingBar]"


ψ

(
τ
)






.




Eτ=custom-characterψ(τ)|H|ψ(τ)custom-character. Then, a trial wavefunction |ϕ(θ(τ))custom-character with a parameter is used for approximating |ψ(τ)custom-character, to obtain:





|ϕ(θ)custom-character=V(θ)|ψ(0)custom-character.


This simulation can be achieved through McLachlan's variational principle:









δ





(






t



+
H


-

E
τ


)



ψ

(
τ
)








=
0.




The solution 1 described above, that is, the method of solving the ground state of the quantum system through the imaginary time evolution, has a clear theory for solving the ground state, which makes a process of approaching the ground state theoretically guaranteed. But e−Hτ it uses is non-unitary, and cannot be directly decomposed into a single bit gate or a double bit gate which is applicable to a quantum circuit.


In the solution 2 described above, the VQE needs to assume a reasonable and reliable parameterized quantum circuit, causing a quantum state space expressed by the VQE to cover the target quantum state. Moreover, as a quantum system becomes more and more complex, a trial quantum circuit becomes deeper and deeper, and a parameter space is very large. Because an optimization space is very complex and is easy to fall into a local optimal solution, the ground state cannot be obtained.


According to the solution 3 described above, the method of solving the ground state of the quantum system through the variational imaginary time evolution, the parameterized quantum circuit is used for simulating the imaginary time evolution process. The evolution process needs to be slow enough, to optimize the parameter of the quantum circuit step by step, and to ensure that an accurate ground state is finally obtained.


This disclosure provides a new technical solution, to implement effective ground state simulation through a non-Hermitian simulation idea. The method has a good reference value for both a ground state simulation method put forward theoretically to reduce difficulty of operation and design of scientists in a recent NISQ stage, and ground state simulation for multi-bit and high-quality quantum hardware that may be implemented in the future.


In addition, the method for obtaining a ground state of a quantum system provided in this disclosure, may be implemented through a quantum computer, or in a mixed device environment of a classic computer and the quantum computer. For example, the classic computer and the quantum computer cooperate to implement the method. In the mixed device environment of the classic computer and the quantum computer, the classic computer executes a computer program to implement some classical calculations and control for the quantum computer, and the quantum computer implements operation such as controlling and measuring qubits. In the following method embodiment, for ease of description, the description is provided by merely using a computer device as the execution body of the steps. It is to be understood that the computer device may be the quantum computer, or may be a mixed execution environment including the classic computer and the quantum computer. This is not limited in the embodiments of this disclosure.



FIG. 1 is a flowchart of a method for obtaining a ground state of a quantum system according to an embodiment of this disclosure. The method may include the following steps (110 to 130):


In step 110, an initial state of a target quantum system is prepared.


In step 120, an n-step evolution and post-processing operation is performed on the target quantum system, a kth step of evolution including performing evolution on an input quantum state in a kth step to obtain a final state in the kth step of evolution, a kth step of post-processing including removing an influence of an auxiliary qubit used in the kth step of evolution from the final state in the kth step of evolution, to obtain an output quantum state in the kth step, the input quantum state in the kth step including a Cartesian product of an output quantum state in a (k−1)th step obtained through a (k−1)th step of post-processing and an initial state of the auxiliary qubit used in the kth step of evolution, k being a positive integer less than or equal to n, and in a case that k is equal to 1, an input quantum state in a first step including a Cartesian product of the initial state of the target quantum system and an initial state of an auxiliary qubit used in a first step of evolution.


In step 130, an output quantum state from an nth step is obtained through the n-step evolution and post-processing operation, to obtain a ground state of the target quantum system.


This disclosure designs a non-Hermitian quantum simulation algorithm to obtain the ground state of the target quantum system. The target quantum system refers to any quantum system whose ground state is to be obtained, and may be a quantum physical system or a quantum chemical system. This is not limited in this disclosure.


This disclosure designs a quantum circuit structure as shown in FIG. 2, on which the ground state of the target quantum system is obtained by implementing a quantum process similar to virtual and real evolution. In FIG. 2, “S” refers to a qubit space corresponding to a to-be-studied quantum system (that is, the target quantum system), and “A” refers to a qubit space corresponding to the auxiliary qubit. The n-step evolution and post-processing are performed on the target quantum system. Each step of evolution and post-processing includes executing an evolution process first and then executing a post-processing process. That is, a first step of evolution, a first step of post-processing, a second step of evolution, a second step of post-processing, . . . , an nth step of evolution, and an nth step of post-processing are sequentially performed.


In the embodiments of this disclosure, an input quantum state in the kth step of evolution is referred to as an input quantum state in the kth step. For example, an input quantum state in the first step of evolution is referred to as an input quantum state in the first step. In each step of the evolution process, the auxiliary qubit is used for helping implementing a unitary evolution process. In some examples, one auxiliary qubit is used in each step of the n-step evolution, and the auxiliary qubit is recycled in the n-step evolution. The kth step of evolution including performing evolution on an input quantum state in a kth step to obtain a final state in the kth step of evolution. The input quantum state in the kth step includes a Cartesian product of an output quantum state in a (k−1)th step obtained through a (k−1)th step of post-processing and an initial state of the auxiliary qubit used in the kth step of evolution. For the first step of evolution (that is, k=1), the first step of evolution includes performing evolution on the input quantum state in the first step to obtain the final state in the first step of evolution. An input quantum state in the first step includes a Cartesian product of the initial state of the target quantum system and an initial state of an auxiliary qubit used in the first step of evolution.


In some examples, each step of the evolution process is implemented through a quantum circuit. For the kth step of evolution, evolution is performed on the input quantum state in the kth step by using a kth quantum circuit, to obtain the final state in the kth step of evolution. In some examples, each step of the post-processing process is implemented through a measuring circuit. For the kth step of post-processing, a kth measuring circuit is used for performing classical data post-processing on the final state in the kth step of evolution, and projecting the auxiliary qubit used in the kth step of evolution to a 0 state, to obtain the output quantum state in the kth step.


As shown in FIG. 2, the quantum circuit used in the evolution process is represented by U(t). U(t)=e−iHt, H=HS⊗σx/yA. ⊗ represents a Cartesian product of two matrices, HS represents a Hamiltonian of the target quantum system, and σx/yA represents a Pauli operator acting on the auxiliary qubit. The Pauli operator may be a Pauli X operator








σ
x
A




(


σ
x
A

=

[



0


1




1


0



]


)


,




or a Pauli Y operator








σ
y
A




(


σ
y
A

=

[



0



-
i





i


0



]


)


,




and t represents time.


In some examples, the initial state of the target quantum system is prepared as |ψ0custom-character, and the initial state of the auxiliary qubit is prepared as |0custom-character, that is, an input quantum state |ϕ0custom-character=|ψ0custom-character|0custom-character in the first step corresponding to the first step of evolution. The input quantum state |ϕ0custom-character in first step implements unitary evolution through a quantum circuit U(t), to obtain the final state |ϕ1custom-characterof the first step of evolution:





1custom-character=U(t)|ψ0custom-character|0custom-character





=cos(HSt)|ψ0custom-character|0custom-characteri sin(HSt)⊗σx/yA0custom-character|0custom-character.





=cos(HSt)|ψ0custom-character|0custom-character+sin(HSt)|ψ0custom-character|1custom-character


The final state |ϕ1custom-character of the first step of evolution is then performed classical data post-processing through the measuring circuit (not shown in FIG. 2), and the auxiliary qubit is projected to |0custom-character, to obtain an output quantum state |ϕ′1custom-character in the first step:





|ϕ′1custom-character=PU(t)|ψ0custom-character|0custom-character=cos(HSt)|ψ0custom-character|0custom-character.


P is a projection operator,







P
=


1
2



(

1
+

σ
z
A


)



,


σ
z
A

=

[



1


0




0



-
1




]






is a Pauli operator acting on the auxiliary qubit, and the Pauli operator is a Pauli Z operator.


In the same way, it can be deduced that a final state |ϕncustom-character of the nth step of evolution obtained through the n-step evolution is:





ncustom-character=U(t)n0custom-character00 . . . 0custom-character





=cosn(HSt)|ψ0custom-character|00 . . . 0custom-character+cosn-1(HSt)sin(HSt)|ψ0custom-character|00 . . . 1)+ . . . +sinn(HSt)|ψ0custom-character|11 . . . 1custom-character


An nth measuring circuit is used for performing classical data post-processing on the final state |ϕncustom-character of the nth step of evolution. The auxiliary qubit is projected to |0custom-character, to obtain an output quantum state |ϕ′ncustom-character in the nth step:





|ϕ′ncustom-characterPU(t)n0custom-character|00 . . . 0custom-character=cosn(HSt)|ψ0custom-character|00 . . . 0custom-character.


P is a projection operator,







P
=


1

2
n




(

1
+

σ
z

A
1



)



(

1
+

σ
z

A
2



)





(

1
+

σ
z

A
n



)



,

σ
z

A
k






represents a Pauli operator acting on the auxiliary qubit used in kth step of evolution, and the Pauli operator is a Pauli Z operator.


After the foregoing n-step evolution and post-processing, an output quantum state |ϕ′ncustom-character in the nth step of evolution is finally obtained, and is the ground state of the target quantum system.


Further, an energy eigenvalue En (that is, ground state energy E of the target quantum system) corresponding to the output quantum state |ϕ′ncustom-character in the nth step:






E
=


E
n

=






ϕ
n






"\[LeftBracketingBar]"


H
S



"\[RightBracketingBar]"




ϕ
n









ϕ
n




ϕ
n






=






ϕ
n






"\[LeftBracketingBar]"


PH
S



"\[RightBracketingBar]"




ϕ
n









ϕ
n






"\[LeftBracketingBar]"

P


"\[RightBracketingBar]"




ϕ
n






.







P2=P and [P, HS]=0 (indicating that P and HS are commutative) are used. It can be found that according to a property of a cos function, for a single-step evolution time scale t with appropriate length, the following condition is met:





cos(Egt)>cos(Ek≠gt)>0,0<Eg<Ek≠g


Eg represents ground state energy, and Ek≠g represents non-ground state energy. For HS whose eigenspectrum is not positive, the eigenspectrum can be translated to positive through HS+λIS. After lowest energy E′g is obtained, Eg=E′g−λ is reversely deduced. λ is a translation parameter determined by prediction, and IS is an identity matrix.


After the foregoing n-step evolution, Cos(Egt)>cos(Ek≠gt)>0. Therefore, an effective non-Hermitian quantum simulation algorithm is obtained, which has an effect similar to virtual and real evolution, that is: With gradual increase of evolution steps, a proportion of the ground state of the target quantum system becomes larger and larger, while a proportion of an excited state becomes smaller and smaller, and finally the ground state of the target quantum system is obtained.


In the foregoing process, technical solutions provided in this disclosure naturally show the following advantages: 1) An effect of virtual and real evolution is achieved by using real-time unitary evolution related to a Hamiltonian of a system, which can be directly achieved through the quantum circuit. 2) The auxiliary qubit used in each step of evolution can be recycled, that is, one auxiliary qubit is needed in total, which saves qubit resources. 3) It does not depend on the variational quantum circuit, and the optimization process is clearer and more stable in theory. 4) The classical data post-processing instead of related post-selection of measurement result is used, which reduces complexity of a quantum experiment at cost of consuming classical computing resources.


In order to implement that the quantum simulation algorithm provided in this disclosure follows an effect similar to the virtual and real quantum dynamics evolution in an operation process, this disclosure uses a method of real-time quantum dynamics evolution under the auxiliary qubit and then performing classical data post-processing, to obtain quantum evolution of the target quantum system:





T=ntcustom-character=cosn(HSt)|ω0custom-character.


It is necessary to calculate custom-characterϕn|PHSncustom-character and custom-characterϕn|P|ϕncustom-character when the energy eigenvalue is obtained, and







P
=


1

2
n




(

1
+

σ
z

A
1



)



(

1
+

σ
z

A
2



)





(

1
+

σ
z

A
n



)



,




n being a quantity of steps of dynamics evolution. It is not difficult to see that, as a quantity of steps n increases, a combination term of Pauli matrix in P exponentially (2n) increases, that is, classical computational complexity presents 2n exponential growth. Therefore, this disclosure further provides an alternative solution to the classical data post-processing.


Because the projection operator P meets P2=P and [P, HS]=0, it can be proved that:






custom-characterψ1|z11custom-character=custom-characterψ2|z1I22custom-character=custom-characterψ3|z1I2I33custom-character= . . . ;






custom-characterψ1|HSZ11custom-character=custom-characterψ2|HSZ1I22custom-character=custom-characterψ3|HSZ1I2I33custom-character= . . . .


Because custom-characterψn|Zkncustom-character=custom-characterψ0|eiHS⊗YkZke−iHS⊗Yk0custom-character it can be proved that:












ψ
n





"\[LeftBracketingBar]"


Z
1



"\[RightBracketingBar]"




ψ
n




=





ψ
n





"\[LeftBracketingBar]"


Z
2



"\[RightBracketingBar]"




ψ
n




=





ψ
n





"\[LeftBracketingBar]"


Z
3



"\[RightBracketingBar]"




ψ
n




=




;









ψ
n





"\[LeftBracketingBar]"



Z
1



Z
2




"\[RightBracketingBar]"




ψ
n




=





ψ
n





"\[LeftBracketingBar]"



Z
1



Z
3




"\[RightBracketingBar]"




ψ
n




=





ψ
n





"\[LeftBracketingBar]"



Z
2



Z
3




"\[RightBracketingBar]"




ψ
n




=




;



……







ψ
n





"\[LeftBracketingBar]"



Z
1



Z
2





Z
n




"\[RightBracketingBar]"




ψ
n




.





In addition, because custom-characterψn|HSZkncustom-character=custom-characterψ0|iHS⊗YkHSZke−iHS⊗Ykψcustom-character, it can be proved that:












ψ
n





"\[LeftBracketingBar]"



H
S



Z
1




"\[RightBracketingBar]"




ψ
n




=





ψ
n





"\[LeftBracketingBar]"



H
S



Z
2




"\[RightBracketingBar]"




ψ
n




=





ψ
n





"\[LeftBracketingBar]"



H
S



Z
3




"\[RightBracketingBar]"




ψ
n




=




;









ψ
n





"\[LeftBracketingBar]"



H
S



Z
1



Z
2




"\[RightBracketingBar]"




ψ
n




=





ψ
n





"\[LeftBracketingBar]"



H
S



Z
1



Z
3




"\[RightBracketingBar]"




ψ
n




=





ψ
n





"\[LeftBracketingBar]"



H
S



Z
2



Z
3




"\[RightBracketingBar]"




ψ
n




=




;



……







ψ
n





"\[LeftBracketingBar]"



H
S



Z
1



Z
2





Z
n




"\[RightBracketingBar]"




ψ
n




.





Therefore, an energy expectation value corresponding to evolution steps n may be finally written as:









E
=





ψ
n





"\[LeftBracketingBar]"


PH
S



"\[RightBracketingBar]"




ψ
n








ψ
n





"\[LeftBracketingBar]"

P


"\[RightBracketingBar]"




ψ
n











=








C
n
0






ψ
0





"\[LeftBracketingBar]"


H
S



"\[RightBracketingBar]"




ψ
0





+


C
n
1






ψ
1





"\[LeftBracketingBar]"



H
S



Z
1




"\[RightBracketingBar]"




ψ
1





+


C
n
2






ψ
2





"\[LeftBracketingBar]"



H
S



Z
1



Z
2




"\[RightBracketingBar]"




ψ
2





+

+







C
n
n






ψ
n





"\[LeftBracketingBar]"



H
S



Z
1



Z
2





Z
n




"\[RightBracketingBar]"




ψ
n














C
n
0






ψ
0



ψ
0





+


C
n
1






ψ
1





"\[LeftBracketingBar]"


Z
1



"\[RightBracketingBar]"




ψ
1





+


C
n
2






ψ
2





"\[LeftBracketingBar]"



Z
1



Z
2




"\[RightBracketingBar]"




ψ
2





+

+







C
n
n






ψ
n





"\[LeftBracketingBar]"



Z
1



Z
2





Z
n




"\[RightBracketingBar]"




ψ
n









.








In this way, for a result of an nth step, only two terms need to be calculated: custom-characterψn|HSZ1Z2 . . . Znn) and (ψn|Z1Z2 . . . Znn), thereby greatly reducing calculation amount. It can be inferred that complexity of energy eigenvalue calculation increases linearly with the evolution steps by 2n.


In conclusion, according to the technical solutions provided in the embodiments of this disclosure, the target quantum system is gradually evolved from the initial state to the ground state by performing multi-step evolution and post-processing on the target quantum system, to obtain the ground state of the target quantum system. In the evolution process, the auxiliary qubit is introduced to implement unitary evolution, thereby providing a quantum simulation algorithm based on a non-Hermitian process, to simulate the ground state of the target quantum system. A real-time unitary evolution related to a Hamiltonian of the system is used for achieving an effect of virtual and real evolution, thus implementing simulation of the ground state of the target quantum system in theory. In addition, this process can be directly implemented by using a quantum circuit, which fully improves operability of the solution.


In addition, the auxiliary qubit used in each step of evolution can be recycled, that is, one auxiliary qubit is needed in total, which saves quantum computing resources.


Because if a Hamiltonian of the target quantum system is larger in scale and more complex in form, the evolution steps to obtain its ground state may be longer, which means a deeper quantum circuit. This exerts pressure on a recent medium-sized quantum chip with noise. In order to further improve efficiency of ground state simulation and better apply to quantum hardware at present, according to an exemplary embodiment of this disclosure, a non-Hermitian evolutionary algorithm is skillfully combined with a variational quantum circuit structure. In some examples, the quantum circuit used in each step of evolution is followed by a variational quantum circuit. As shown in FIG. 3, “S” refers to a qubit space corresponding to a to-be-studied quantum system (that is, the target quantum system), and “A” refers to a qubit space corresponding to the auxiliary qubit. U(t) represents the quantum circuit used in the evolution process, U(t)=e−iHt, H=HS⊗σx/yA. ⊗ represents a Cartesian product of two matrices, HS represents a Hamiltonian of the target quantum system, and σx/yA represents a Pauli operator acting on the auxiliary qubit. The Pauli operator may be a Pauli X operator








σ
x
A




(


σ
x
A

=

[



0


1




1


0



]


)


,




or a Pauli Y operator








σ
y
A




(


σ
y
A

=

[



0


1




1


0



]


)


,




and t represents time. U(θ) is an introduced variational quantum circuit, so that after each layer is performed evolution operation through U(t), U(θ) is further optimized. Using a first layer as an example, an optimization goal of U(θ) is to adjust a parameter of U(O), to cause







min
θ






ϕ
1





"\[LeftBracketingBar]"




U


(
θ
)



H
S



U

(
θ
)




"\[RightBracketingBar]"




ϕ
1




.





Using a kth step of evolution and post-processing process as an example, after the final state in the kth step of evolution is obtained, a variational quantum circuit corresponding to the kth step of evolution is used for performing transformation on the final state in the kth step of evolution, to obtain a quantum state after a kth step of transformation. A parameter of the variational quantum circuit corresponding to the kth step of evolution is adjusted, so that an energy expectation value of the quantum state after the kth step of transformation is minimized. In a case that the parameter of the variational quantum circuit corresponding to the kth step of evolution meets a stop optimization condition, the quantum state after the kth step of transformation is obtained. The kth step of post-processing is performed on the quantum state after the kth step of transformation, to obtain the output quantum state in the kth step.


In this way, on the one hand, U(t) is a powerful driving force to make the quantum state evolve to the ground state, and does not rely on parameter optimization of a variational structure. On the other hand, it is also a reliable driving force to jump out of variational optimization and lead to a local optimal solution. With auxiliary of U(θ), by introducing a certain degree of variation, the quantum state is led to a lower energy more quickly, which greatly helps to reduce a quantity of modules of U(t) needed originally, that is, depth of the quantum circuit is reduced.


In some examples, a parameter optimization strategy of updating the variational quantum circuit layer by layer is used, to control a quantity of parameters whose variation in is implemented in a small space as possible, and to create a simpler optimization surface, which is more conducive to obtaining a current global optimal solution. For example, in a process of adjusting the parameter of the variational quantum circuit corresponding to the kth step of evolution, a parameter of a variational quantum circuit corresponding to another step of evolution is kept unchanged. After the adjusting the parameter of the variational quantum circuit corresponding to the kth step of evolution is completed, a parameter of a variational quantum circuit corresponding to a (k+1)th step of evolution is adjusted.


In a circuit structure shown in FIG. 3, an example in which each quantum circuit U(t) is followed by a variational quantum circuit U(θ) is used only. In some other embodiments, some U(t) may be followed by U(θ), and other U(t) may not be followed by U(θ). This is not limited in this disclosure.


In this embodiment, by combining a simple variational quantum circuit, the non-Hermitian evolution algorithm is combined with the variational quantum circuit structure, which is helpful to reduce the depth of the quantum circuit, and can further improve hardware efficiency of simulation.


In the foregoing embodiments, the quantum circuit U(t)=e−iHt used in evolution is usually approximately expressed by using Trotter decomposition, and operations of a series of single-bit and double-bit quantum gates in real circuit operation:







e

-
iHt






(


e

-



iH
1


t

n





e

-



iH
2


t

n







e

-



iH
K


t

n




)

n

.









H
=



i
K



H
i

·

e

-



iH
i


t

n









may be expressed as operations of single-bit and double-bit quantum gates. The Hamiltonian of the target quantum system may be decomposed as a sum of a series of Pauli strings. K is a number of terms in the Pauli string obtained by decomposing the Hamiltonian. H; refers to a Hamiltonian corresponding to one term of the Pauli strings. It is not difficult to see that the more complex the target quantum system H is, the deeper a quantum circuit U(t) corresponding to single-step evolution is. In addition, a plurality of quantum evolution steps mean a plurality of U(t), that is, deeper and deeper quantum circuits. For a current development stage of a quantum computing chip, depth of a quantum circuit gate is still greatly limited by hardware noise. In order to better show an advantage of the algorithm of this disclosure on a complex issue, this disclosure provides another exemplary embodiment, in which efficiency of hardware usage is further improved by using a method of compressing the quantum states by using the variational quantum circuit.


In an exemplary embodiment, the n-step evolution and post-processing described above are alternatively implemented by using the following methods:


1. constructing a trial quantum state by using a target variational quantum circuit;


2. adjusting a parameter of the target variational quantum circuit so that the trial quantum state approaches a target quantum state;


3. determining the trial quantum state constructed by the target variational quantum circuit as the ground state of the target quantum system in a case that the parameter of the target variational quantum circuit meets a stop optimization condition; and determining an energy expectation value of a Hamiltonian of the target quantum system under the trial quantum state as ground state energy of the target quantum system.


The quantum state is compressed by the variational quantum circuit. That is, a trial quantum state |ψ(ωt)custom-character is constructed by using a quantum circuit (that is, the “target variational quantum circuit”, which alternatively implements functions of the quantum circuit U(t) (in some examples, and the variational quantum circuit U(θ))) with an appropriate quantity of to-be-optimized parameters and a medium scale. Then its parameters are optimized to be as close to the target quantum state |ϕ(t)) as possible. ωt∈Rp is an P-dimensional vector composed of parameters. Quantum state evolution starting from a moment t to a next moment t+dt can be written as:





|ϕ(t+dt)custom-character=e−iHdt|ψ(ωt)custom-character.


Then ωt+dt is optimized to cause:







max

ω

t
+
dt








"\[LeftBracketingBar]"





ψ

(

ω

t
+
dt


)





"\[LeftBracketingBar]"


e

-
iHdt




"\[RightBracketingBar]"




ψ

(

ω
t

)






"\[RightBracketingBar]"


2

.





This calculation can be obtained through the quantum circuit shown in FIG. 4.


Finally, starting from the initial state |ϕ(t0)custom-character, through a plurality of steps of quantum evolution, a circuit compressed version of the quantum state |ψ(ωT)custom-character corresponding to the final state |ϕ(tT=NT)) is obtained.


Some experiments completed by using technical solutions of this disclosure are described below.


The non-Hermitian quantum simulation algorithm provided in this disclosure is used for simulating a ground state of a hydrogen molecule (H2). A quantum computing process shown in FIG. 2 is used. A Hamiltonian HS of the hydrogen molecule under a Pauli basis is:






H
S
=g
0
+g
1
Z
1
+g
2
Z
2
+g
3
Z
1
Z
2
+g
4
X
1
X
2
+g
5
Y
1
Y
2.








X
i

=

(



0


1




1


0



)


,


Y
i

=

(



0



-
i





i


0



)


,


and



Z
i


=

(



1


0




0



-
1




)






are all Pauli operators, i=1 or 2. Set g0=0.2252, g1=0.3435, g2=−0.4347, g3=0.5716, g4=0.0910, and g5=0.0910. The ground state of the target quantum system is prepared as










"\[LeftBracketingBar]"


ψ
0




=


1

2





(

1
,
1

)

.






A dynamics evolution step size dt=0.2. Quantum simulation is performed on an IBMQ simulator, to obtain a result shown in FIG. 5.


Line 51 in FIG. 5 shows that an energy expectation value of the target quantum system gradually decreases with the evolution steps. The ground state energy is reached in steps n=7, and the ground state simulation is successfully achieved.


The non-Hermitian quantum simulation algorithm provided in this disclosure is further applied to simulate a ground state of a one-dimensional transverse field Ising model. A quantum computing process shown in FIG. 2 and FIG. 3 is used. A Hamiltonian HS of a transverse field Ising model with four lattice points is:







H
S

=


a







i
,
j






Z
i



Z
j




+

h




i



X
i

.








Both








X
i

=

(



0


1




1


0



)


,


and



Z
i


=


Z
j

=

(



1


0




0



-
1




)



,




are Pauli operators. Zi and Zj are Pauli operators representing different lattice points. Set a=h=1/√{square root over (2)}. The ground state of the target quantum system is prepared as










"\[LeftBracketingBar]"


ψ
0




=


1
2




(

1
,
1
,
1
,
1

)

.






dynamics evolution step size dt=0.2. Quantum simulation is performed on an IBMQ simulator, to obtain a result shown in FIG. 6.



FIG. 6 shows that the energy expectation value of the target quantum system gradually decreases with the evolution steps. Line 61 is a result of its exact ground state, line 62 is a result obtained by using the quantum computing process shown in FIG. 2, and line 63 is a result obtained by using the quantum computing process shown in FIG. 3. It can be seen that: 1) Both algorithms in FIG. 2 and FIG. 3 can implement simulation for a ground state of a target Hamiltonian. 2) A speed of implementing the ground state can be accelerated in combination with the variational quantum circuit, and the evolution steps are greatly reduced to 3 steps.


Finally, the non-Hermitian quantum simulation algorithm provided in this disclosure is further applied to simulate a ground state of a one-dimensional transverse field Ising model with 8 lattice points. A quantum computing process shown in FIG. 2 and FIG. 3 is used. A Hamiltonian HS of a transverse field Ising model with eight lattice points is:







H
S

=


a







i
,
j






Z
i



Z
j




+

h




i



X
i

.








Both








X
i

=

(



0


1




1


0



)


,


and



Z
i


=


Z
j

=

(



1


0




0



-
1




)







are Pauli operators. Zi and Zj are Pauli operators representing different lattice points. Set a=h=1/√{square root over (2)}. The ground state of the target quantum system is prepared as










"\[LeftBracketingBar]"


ψ
0




=


1

2


2






(

1
,
1
,
1
,
1
,
1
,
1
,
1
,
1

)

.






A dynamics evolution step size dt=0.2. Quantum simulation is performed on an IBMQ simulator, to obtain a result shown in FIG. 7.



FIG. 7 shows that the energy expectation value of the target quantum system gradually decreases with the evolution steps. Line 71 is a result of its exact ground state, line 72, line 73, and line 74 are results obtained by using the quantum computing process shown in FIG. 2, and line 75 is a result obtained by using the quantum computing process shown in FIG. 3. It can be seen that: 1) Both algorithms in FIG. 2 and FIG. 3 can implement simulation for a ground state of a target Hamiltonian. 2) The evolution step size is gradually increased by using the algorithm in FIG. 2, which can accelerate a convergence speed. 3) A speed of implementing the ground state can be accelerated in combination with the variational quantum circuit, and the evolution steps are greatly reduced to 3 steps.


The following is an apparatus embodiment of this disclosure, which can be used to perform the method embodiments of this disclosure. For exemplary details not disclosed in the apparatus embodiments of this disclosure, refer to the method embodiments of this disclosure.



FIG. 8 is a block diagram of an apparatus for obtaining a ground state of a quantum system according to an embodiment of this disclosure. The apparatus has functions for implementing the foregoing method embodiments. The functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The apparatus may be the computer device described above, or may be disposed in the computer device. One or more modules, submodules, and/or units of the apparatus can be implemented by processing circuitry, software, or a combination thereof, for example. As shown in FIG. 8, an apparatus 800 may include: an initial state preparing module 810, an evolution processing module 820, and a ground state obtaining module 830.


The initial state preparing module 810 is configured to prepare an initial state of a target quantum system.


The evolution processing module 820 is configured to perform n-step evolution and post-processing on the target quantum system, a kth step of evolution including performing evolution on an input quantum state in a kth step to obtain a final state in the kth step of evolution, a kth step of post-processing including removing an influence of an auxiliary qubit used in the kth step of evolution from the final state in the kth step of evolution, to obtain an output quantum state in the kth step, the input quantum state in the kth step including a Cartesian product of an output quantum state in a (k−1)th step obtained through a (k−1)th step of post-processing and an initial state of the auxiliary qubit used in the kth step of evolution, k being a positive integer less than or equal to n, and in a case that k is equal to 1, an input quantum state in a first step including a Cartesian product of the initial state of the target quantum system and an initial state of an auxiliary qubit used in a first step of evolution; and


The ground state obtaining module 830 is configured to obtain an output quantum state in an nth step obtained through the n-step evolution and post-processing, to obtain a ground state of the target quantum system.


In an exemplary embodiment, the evolution processing module 820 is configured to:


perform, for the kth step of evolution, evolution on the input quantum state in the kth step by using a kth quantum circuit, to obtain the final state in the kth step of evolution; and


perform, for the kth step of post-processing, classical data post-processing on the final state in the kth step of evolution by using a kth measuring circuit, and projecting the auxiliary qubit used in the kth step of evolution to a 0 state, to obtain the output quantum state in the kth step.


In an exemplary embodiment, a process of obtaining a final state |ϕncustom-character of an nth step of evolution through the n-step evolution is as follows:





ncustom-character=U(t)n0custom-character|00 . . . 0custom-character





=cosn(HSt)|ψ0custom-character00 . . . 0)+cosn-1(HSt)sin(HSt)|ψ0custom-character|00 . . . 1custom-character+sinn(HSt)|ψ0custom-character|11 . . . 1custom-character


U(t) representing the quantum circuit used for evolution, |ψ0custom-character representing the initial state of the target quantum system, U(t)=e−iHt, H=HS⊗σx/yA, HS representing a Hamiltonian of the target quantum system, σx/yA representing a Pauli operator acting on the auxiliary qubit, and t representing time.


In an exemplary embodiment, a process of performing classical data post-processing on the final state |ϕncustom-character of an nth step of evolution is as follows:





|ϕ′ncustom-character=PU(t)nψ0custom-character00 . . . 0custom-character=cosn(HSt)|ψ0custom-character00 . . . 0custom-character,


P being a projection operator,







P
=


1

2
n




(

1
+

σ
z

A
1



)



(

1
+

σ
z

A
2



)





(

1
+

A
z

A
n



)



,




and σzAk representing a Pauli operator acting on the auxiliary qubit used in the kth step of evolution.


In an exemplary embodiment, one auxiliary qubit is used in each step of the n-step evolution, and the auxiliary qubit is recycled in the n-step evolution.


In an exemplary embodiment, the evolution processing module 820 is further configured to:


perform, after the final state in the kth step of evolution is obtained, transformation on the final state in the kth step of evolution by using a variational quantum circuit corresponding to the kth step of evolution, to obtain a quantum state after a kth step of transformation;


adjust a parameter of the variational quantum circuit corresponding to the kth step of evolution, so that an energy expectation value of the quantum state after the kth step of transformation is minimized;


obtain, in a case that the parameter of the variational quantum circuit corresponding to the kth step of evolution meets a stop optimization condition, the quantum state after the kth step of transformation; and


perform the kth step of post-processing on the quantum state after the kth step of transformation, to obtain the output quantum state in the kth step.


In an exemplary embodiment, the evolution processing module 820 is further configured to:


keep, in a process of adjusting the parameter of the variational quantum circuit corresponding to the kth step of evolution, a parameter of a variational quantum circuit corresponding to another evolution step unchanged; and


adjust, after the adjusting the parameter of the variational quantum circuit corresponding to the kth step of evolution is completed, a parameter of a variational quantum circuit corresponding to a (k+1)th step of evolution.


In an exemplary embodiment, the n-step evolution and post-processing are alternatively implemented by using the following methods:


constructing a trial quantum state by using a target variational quantum circuit;


adjusting a parameter of the target variational quantum circuit so that the trial quantum state approaches a target quantum state; and


determining the trial quantum state constructed by the target variational quantum circuit as the ground state of the target quantum system in a case that a parameter of the target variational quantum circuit meets a stop optimization condition; and determining an energy expectation value of a Hamiltonian of the target quantum system under the trial quantum state as ground state energy of the target quantum system.


In an exemplary embodiment, the apparatus 800 further includes an energy calculating module (not shown in FIG. 8), which is configured to calculate the ground state energy E of the target quantum system according to the following formula:







E
=






ϕ
n






"\[LeftBracketingBar]"


H
S



"\[RightBracketingBar]"




ϕ
n









ϕ
n




ϕ
n






=





ϕ
n






"\[LeftBracketingBar]"


PH
S



"\[RightBracketingBar]"




ϕ
n









ϕ
n






"\[LeftBracketingBar]"

P


"\[RightBracketingBar]"




ϕ
n








,




HS representing the Hamiltonian of the target quantum system, |ϕncustom-character representing the final state in the nth step of evolution, |ϕ′ncustom-character representing the output quantum state in the nth step, P being the projection operator,







=


1

2
n




(

1
+

σ
z

A
1



)



(

1
+

σ
z

A
2



)





(

1
+

A
z

A
n



)



,




and σzAk representing the Pauli operator acting on the auxiliary qubit used in the kth step of evolution.


In this disclosure, the target quantum system is gradually evolved from the initial state to the ground state by performing multi-step evolution and post-processing on the target quantum system, to obtain the ground state of the target quantum system. In the evolution process, the auxiliary qubit is introduced to implement unitary evolution, thereby providing a quantum simulation algorithm based on a non-Hermitian process, to simulate the ground state of the target quantum system. A real-time unitary evolution related to a Hamiltonian of the system is used for achieving an effect of virtual and real evolution, thus implementing simulation of the ground state of the target quantum system in theory. In addition, this process can be directly implemented by using a quantum circuit, which fully improves operability of the solution.


When the apparatus provided in the foregoing embodiments implements functions of the apparatus, the division of the foregoing functional modules is merely an example for description. In the practical application, the functions may be assigned to and completed by different functional modules according to the requirements, that is, the internal structure of the device is divided into different functional modules, to implement all or some of the functions described above. In addition, the apparatus and method embodiments provided in the foregoing embodiments belong to the same concept. For the specific implementation process, reference may be made to the method embodiments, and details are not described herein again.


The term module (and other similar terms such as unit, submodule, etc.) in this disclosure may refer to a software module, a hardware module, or a combination thereof. A software module (e.g., computer program) may be developed using a computer programming language. A hardware module may be implemented using processing circuitry and/or memory. Each module can be implemented using one or more processors (or processors and memory). Likewise, a processor (or processors and memory) can be used to implement one or more modules. Moreover, each module can be part of an overall module that includes the functionalities of the module.


An exemplary embodiment of this disclosure further provides a computer device, the computer device being configured to perform the method for obtaining a ground state of a quantum system. In some examples, the computer device is a quantum computer, or the computer device is a mixed execution environment formed by a quantum computer and a classic computer.


An exemplary embodiment of this disclosure further provides a computer-readable storage medium (such as, a non-transitory computer-readable storage medium), storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by a processor to perform the method for obtaining a ground state of a quantum system.


In some examples, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), solid state drives (SSD), an optical disc, or the like. The RAM may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM).


In an exemplary embodiment, a computer program product or a computer program is 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 instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the method for obtaining a ground state of a quantum system.


It is to be understood that “plurality of” mentioned in the specification means two or more. The “and/or” describes an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. The character “/” generally indicates an “or” relationship between the associated objects. In addition, the step numbers described in this specification merely exemplarily show a possible execution sequence of the steps. In some other embodiments, the steps may not be performed according to the number sequence. For example, two steps with different numbers may be performed simultaneously, or two steps with different numbers may be performed according to a sequence contrary to the sequence shown in the figure. This is not limited in the embodiments of this disclosure.


The foregoing descriptions are merely examples of the embodiments of this disclosure, but are not intended to limit this disclosure. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of this disclosure shall fall within the scope of this disclosure.

Claims
  • 1. A method for obtaining a ground state of a quantum system, comprising: preparing an initial state of the quantum system;performing an n-step evolution and post-processing operation on the quantum system, wherein n is a first positive integer, the n-step evolution and post-processing operations includes one or more steps that increase a proportion of the ground state in one or more output states of the one or more steps step by step;obtaining an output quantum state in an nth step in the n-step evolution and post-processing operation; anddetermining the ground state of the quantum system based on the output quantum state in the nth step in the n-step evolution and post-processing operation.
  • 2. The method according to claim 1, wherein: the n-step evolution and post-processing operation comprises n steps in a sequence with an evolution and a post-processing in respective steps, a kth step in the n-step evolution and post-processing operation comprises a kth evolution and a kth post-processing, the kth evolution performs evolution on an input quantum state of the kth Step to obtain a final state of the kth evolution, the kth post-processing removes an influence of an auxiliary qubit used in the kth evolution from the final state of the kth evolution to obtain an output quantum state of the kth step, k is a second positive integer that is less than or equal to n.
  • 3. The method according to claim 2, wherein: when k is larger than 1, the input quantum state in the kth step comprises a Cartesian product of an output quantum state of a (k−1)th step in the n-step evolution and post-processing operation and an initial state of the auxiliary qubit used in the kth evolution; andwhen k is equal to 1, an input quantum state in a first step in the n-step evolution and post-processing operation comprises a Cartesian product of the initial state of the quantum system and an initial state of an auxiliary qubit used in a first evolution of the first step.
  • 4. The method according to claim 3, wherein the performing the n-step evolution and post-processing operation on the quantum system comprises: performing the kth evolution by using a kth quantum circuit, to obtain the final state of the kth evolution.
  • 5. The method according to claim 3, wherein the performing the n-step evolution and post-processing operation on the quantum system comprises: performing the kth post-processing by using a kth measuring circuit, and the kth post-processing projecting the auxiliary qubit used in the kth evolution to a 0 state, to obtain the output quantum state of the kth step.
  • 6. The method according to claim 3, wherein an auxiliary qubit is reused in each evolution in the n-step evolution and post-processing operation.
  • 7. The method according to claim 3, wherein at least an mth step in the n-step evolution and post-processing operation comprises an mth variational quantum circuit corresponding to an mth evolution of the mth step, m is a positive integer equal or smaller than n, the method comprises: performing an mth transformation on a final state of the mth evolution by using the mth variational quantum circuit corresponding to the mth evolution, to obtain a transformed quantum state of the mth step;adjusting one or more parameters of the mth variational quantum circuit corresponding to the mth evolution to minimize an energy expectation value of the transformed quantum state of the mth step;obtaining, in response to the one or more parameters of the mth variational quantum circuit corresponding to the mth step of evolution meeting a stop optimization condition, the transformed quantum state after the mth transformation; andperforming an mth post-processing on the transformed quantum state after the mth transformation, to obtain the output quantum state of the mth step.
  • 8. The method according to claim 7, wherein each step in the n-step evolution and post-processing operation is performed by a variational quantum circuit corresponding to an evolution of the step.
  • 9. The method according to claim 8, further comprising: during the adjusting the one or more parameters of the mth variational quantum circuit corresponding to the mth evolution of the mth step, keeping parameters of other variational quantum circuits of other steps unchanged.
  • 10. The method according to claim 8, further comprising: adjusting, after the adjusting the one or more parameters of the mth variational quantum circuit corresponding to the mth evolution, parameters of another variational quantum circuit in another step of the n-step evolution and post-processing operation.
  • 11. An apparatus for obtaining a ground state of a quantum system, comprising processing circuitry configured to: prepare an initial state of the quantum system;perform an n-step evolution and post-processing operation on the quantum system, wherein n is a first positive integer, the n-step evolution and post-processing operations includes one or more steps that increase a proportion of the ground state in one or more output states of the one or more steps step by step;obtain an output quantum state in an nth step in the n-step evolution and post-processing operation; anddetermine the ground state of the quantum system based on the output quantum state in the nth step in the n-step evolution and post-processing operation.
  • 12. The apparatus according to claim 11, wherein: the n-step evolution and post-processing operation comprises n steps in a sequence with an evolution and a post-processing in respective steps, a kth step in the n-step evolution and post-processing operation comprises a kth evolution and a kth post-processing, the kth evolution performs evolution on an input quantum state of the kth Step to obtain a final state of the kth evolution, the kth post-processing removes an influence of an auxiliary qubit used in the kth evolution from the final state of the kth evolution to obtain an output quantum state of the kth step, k is a second positive integer that is less than or equal to n.
  • 13. The apparatus according to claim 12, wherein: when k is larger than 1, the input quantum state in the kth step comprises a Cartesian product of an output quantum state of a (k−1)th step in the n-step evolution and post-processing operation and an initial state of the auxiliary qubit used in the kth evolution; andwhen k is equal to 1, an input quantum state in a first step in the n-step evolution and post-processing operation comprises a Cartesian product of the initial state of the quantum system and an initial state of an auxiliary qubit used in a first evolution of the first step.
  • 14. The apparatus according to claim 13, wherein the processing circuitry comprises: a kth quantum circuit configured to perform the kth evolution to obtain the final state of the kth evolution.
  • 15. The apparatus according to claim 13, wherein the processing circuitry comprises: a kth measuring circuit configured to perform the kth post-processing, and the kth post-processing projecting the auxiliary qubit used in the kth evolution to a 0 state, to obtain the output quantum state of the kth step.
  • 16. The apparatus according to claim 13, wherein an auxiliary qubit is reused in each evolution in the n-step evolution and post-processing operation.
  • 17. The apparatus according to claim 13, further comprising: at least an mth variational quantum circuit corresponding to an mth evolution of an mth step in the mth step of the n-step evolution and post-processing operation comprises, m is a positive integer equal or smaller than n, andthe processing circuitry is configured: perform an mth transformation on the final state of the mth evolution by using the mth variational quantum circuit corresponding to the mth evolution, to obtain a transformed quantum state of the mth step;adjust one or more parameters of the mth variational quantum circuit corresponding to the mth evolution to minimize an energy expectation value of the transformed quantum state of the mth step;obtain, in response to the one or more parameters of the mth variational quantum circuit corresponding to the mth step of evolution meeting a stop optimization condition, the transformed quantum state after the mth transformation; andperform an mth post-processing on the transformed quantum state after the mth transformation, to obtain the output quantum state of the mth step.
  • 18. The apparatus according to claim 17, further comprising, for each step of the n-step evolution and post-processing operation, a variational quantum circuit corresponding to an evolution of the step.
  • 19. The apparatus according to claim 18, wherein the processing circuitry is configured to: during an adjustment of the one or more parameters of the mth variational quantum circuit corresponding to the mth evolution of the mth step, keeping parameters of other variational quantum circuits of other steps unchanged; andadjust, after the adjustment of the one or more parameters of the mth variational quantum circuit corresponding to the mth evolution, parameters of another variational quantum circuit in another step of the n-step evolution and post-processing operation.
  • 20. A method for obtaining a ground state of a quantum system, comprising: using a variational quantum circuit to construct a trial quantum state;adjusting one or more parameters of the variational quantum circuit to cause the trial quantum state to approach a target quantum state of the quantum system;setting the trial quantum state constructed by using the variational quantum circuit as a ground state of the quantum system in response to the one or more parameters of the variational quantum circuit meeting a stop optimization condition; anddetermining an energy expectation value of a Hamiltonian of the quantum system under the trial quantum state as a ground state energy of the quantum system.
Priority Claims (1)
Number Date Country Kind
202110726300.8 Jun 2021 CN national
RELATED APPLICATIONS

The present application is a continuation of International Application No. PCT/CN2021/126203, entitled “METHOD AND APPARATUS FOR OBTAINING GROUND STATE OF QUANTUM SYSTEM, DEVICE, MEDIUM, AND PROGRAM PRODUCT” and filed on Oct. 25, 2021, which claims priority to Chinese Patent Application No. 202110726300.8, entitled “METHOD AND APPARATUS FOR OBTAINING GROUND STATE OF QUANTUM SYSTEM, DEVICE, MEDIUM, AND PROGRAM PRODUCT” filed on Jun. 29, 2021. The entire disclosures of the prior applications are hereby incorporated by reference in their entirety.

Continuations (1)
Number Date Country
Parent PCT/CN2021/126203 Oct 2021 US
Child 17991736 US