SOLVING INEQUALITY CONSTRAINED OPTIMIZATION PROBLEM ON HYBRID QUANTUM-CLASSICAL COMPUTING SYSTEM

Information

  • Patent Application
  • 20250190834
  • Publication Number
    20250190834
  • Date Filed
    January 25, 2024
    a year ago
  • Date Published
    June 12, 2025
    7 months ago
  • CPC
    • G06N10/60
    • G06N10/20
  • International Classifications
    • G06N10/60
    • G06N10/20
Abstract
A method of performing computation in a hybrid quantum-classical computing system includes computing an approximate cost function of an optimization problem with variables constrained by an inequality, wherein the inequality constraint is included using a polynomial approximation of a Heaviside step function, mapping the approximate cost function of the optimization problem to a model Hamiltonian, setting a quantum processor in an initial state, executing one or more iterations, each iteration including applying a parametrized quantum circuit to the quantum processor based on a set of variational parameters and the model Hamiltonian, measuring an expectation value of the model Hamiltonian, and replacing the set of the variational parameters with another set of variational parameters, and outputting the set of the variational parameters after executing the one or more iterations.
Description
BACKGROUND
Field

The present disclosure generally relates to a method of performing computation in a hybrid quantum-classical computing system, and more specifically, to a method of solving an inequality constrained optimization problem in a hybrid computing system that includes a classical computer and a quantum computer that includes trapped ions.


Description of the Related Art

In current state-of-the-art quantum computers, control of qubits is imperfect (noisy) and the number of qubits used in these quantum computers generally range from a hundred qubits to thousands of qubits. The number of quantum gates that can be used in such a quantum computer (referred to as a “noisy intermediate-scale quantum device” or “NISQ device”) to construct circuits to run an algorithm within a controlled error rate is limited due to the noise.


For solving some optimization problems, a NISQ device having shallow circuits (with small number of gate operations to be executed in time-sequence) can be used in combination with a classical computer (referred to as a hybrid quantum-classical computing system). For example, a classical computer (also referred to as a “classical optimizer”) instructs a controller to execute quantum gate operations on a NISQ device (also referred to as a “quantum processor”) and measure an outcome of the quantum processor. Subsequently, the classical optimizer instructs the controller to prepare the quantum processor in a slightly different state, and repeats execution of the gate operation and measurement of the outcome. This cycle is repeated until the approximate solution can be extracted. Such hybrid quantum-classical computing system having an NISQ device may outperform classical computers in finding approximate solutions to such optimization problems.


An optimization problem with variables constrained by an inequality is typically solved by introducing slack variables to convert an inequality constraint to an equality constraint. However, when mapping the optimization problem onto a quantum processor, the introduced slack variables need to be mapped onto qubits of the quantum processor. Thus, the number of qubits can grow quickly and varies depending on the inequality constraint.


Therefore, there is a need for improved methods for solving inequality constrained optimization problems on a hybrid quantum-classical computing system.


SUMMARY

Embodiments of the present disclosure provide a method of performing computation in a hybrid quantum-classical computing system including a classical computer and a quantum processor. The method includes computing, by a classical computer, an approximate cost function of an optimization problem with variables constrained by an inequality, wherein the inequality constraint is included using a polynomial approximation of a Heaviside step function, mapping, by the classical computer, the approximate cost function of the optimization problem to a model Hamiltonian to be implemented on a quantum processor including a plurality of trapped ions, each of which has two hyperfine states defining a qubit, selecting, by the classical computer, a set of variational parameters to construct a parametrized quantum circuit including an entangling circuit based on the model Hamiltonian and a mixing circuit, setting, by a system controller, the quantum processor in an initial state, executing one or more iterations, each iteration including applying, by the system controller, the parametrized quantum circuit to the quantum processor based on the set of the variational parameters and the model Hamiltonian, to transform the quantum processor to a trial state, measuring, by the system controller, an expectation value of the model Hamiltonian, and replacing, by the classical computer, the set of the variational parameters with another set of variational parameters, if a difference between the measured expectation value of the model Hamiltonian and the expectation value of the model Hamiltonian measured in a previous iteration is more than a predetermined value, and outputting, by the classical computer, the set of the variational parameters after executing the one or more iterations.


Embodiments of the present disclosure also provide a hybrid quantum-classical computing system. A hybrid quantum-classical computing system includes a quantum processor including a plurality of trapped ions, each of the trapped ions having two hyperfine states defining a qubit, one or more lasers configured to emit a laser beam, which is provided to trapped ions in the quantum processor, and a classical computer configured to compute an approximate cost function of an optimization problem with variables constrained by an inequality, wherein the inequality constraint is included using a polynomial approximation of a Heaviside step function, map the approximate cost function of the optimization problem to a model Hamiltonian to be implemented on the quantum processor, select a set of variational parameters to construct a parametrized quantum circuit including an entangling circuit based on the model Hamiltonian and a mixing circuit, control a system controller to set the quantum processor in an initial state, execute one or more iterations, each iteration including control the system controller to apply the parametrized quantum circuit to the quantum processor based on the set of the variational parameters and the model Hamiltonian, to transform the quantum processor to a trial state, control the system controller to measure an expectation value of the model Hamiltonian, and replace the set of the variational parameters with another set of variational parameters, if a difference between the measured expectation value of the model Hamiltonian and the expectation value of the model Hamiltonian measured in a previous iteration is more than a predetermined value, and output the set of the variational parameters after executing the one or more iterations.


Embodiments of the present disclosure further provide a hybrid quantum-classical computing system including non-volatile memory having a number of instructions stored therein. The number of instructions, when executed by one or more processors, causes the hybrid quantum-classical computing system to perform operations including computing, by a classical computer, an approximate cost function of an optimization problem with variables constrained by an inequality, wherein the inequality constraint is included using a polynomial approximation of a Heaviside step function, mapping, by the classical computer, the approximate cost function of the optimization problem to a model Hamiltonian to be implemented on a quantum processor including a plurality of trapped ions, each of which has two hyperfine states defining a qubit, selecting, by the classical computer, a set of variational parameters to construct a parametrized quantum circuit including an entangling circuit based on the model Hamiltonian and a mixing circuit, setting, by a system controller, the quantum processor in an initial state, executing one or more iterations, each iteration including applying, by the system controller, the parametrized quantum circuit to the quantum processor based on the set of the variational parameters and the model Hamiltonian, to transform the quantum processor to a trial state, measuring, by the system controller, an expectation value of the model Hamiltonian, and replacing, by the classical computer, the set of the variational parameters with another set of variational parameters, if a difference between the measured expectation value of the model Hamiltonian and the expectation value of the model Hamiltonian measured in a previous iteration is more than a predetermined value, and outputting, by the classical computer, the set of the variational parameters after executing the one or more iterations.





BRIEF DESCRIPTION OF THE DRAWINGS

So that the manner in which the above-recited features of the present disclosure can be understood in detail, a more particular description of the disclosure, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate only typical embodiments of this disclosure and are therefore not to be considered limiting of its scope, for the disclosure may admit to other equally effective embodiments.



FIG. 1 is a schematic partial view of an ion trap quantum computing system according to one embodiment.



FIG. 2A depicts a schematic energy diagram of each ion in an ion chain according to one embodiment.



FIG. 2B depicts a schematic motional sideband spectrum of an ion in an ion chain according to one embodiment.



FIG. 3 depicts a flowchart illustrating a method 300 of obtaining a solution to an inequality constrained optimization problem by a quantum variational method, according to one embodiment.



FIG. 4A illustrates an inequality constraint, according to one embodiment.



FIG. 4B illustrates an inequality constraint, according to one embodiment.



FIG. 4C illustrates polynomial approximations of the Heaviside step function, according to one embodiment.



FIGS. 5A, 5B, 5C, and 5D illustrate quantum circuits that implements terms in an entangling circuit, according to one embodiment.





To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures. In the figures and the following description, an orthogonal coordinate system including an X-axis, a Y-axis, and a Z-axis is used. The directions represented by the arrows in the drawing are assumed to be positive directions for convenience. It is contemplated that elements disclosed in some embodiments may be beneficially utilized on other implementations without specific recitation.


DETAILED DESCRIPTION

Embodiments described herein are generally related to a method and a system for performing a computation using a hybrid quantum-classical computing system, and, more specifically, to providing an approximate solution to an optimization problem with one or more inequality constrains using a hybrid quantum-classical computing system that includes an ion chain including trapped ions.


General Hardware Configurations


FIG. 1 is a schematic partial view of an ion trap quantum computing system, or system 100, according to one embodiment. The system 100 includes a classical (digital) computer 102, a system controller 104 and a quantum processor that is an ion chain106 having trapped ions (i.e., five shown) that extend along the Z-axis. The classical computer 102 includes a central processing unit (CPU), memory, and support circuits (or I/O). The memory is connected to the CPU, and may be one or more of a readily available memory, such as a read-only memory (ROM), a random access memory (RAM), floppy disk, hard disk, or any other form of digital storage, local or remote. Software instructions, algorithms and data can be coded and stored within the non-volatile memory for instructing the CPU. The support circuits (not shown) are also connected to the CPU for supporting the processor in a conventional manner. The support circuits may include conventional cache, power supplies, clock circuits, input/output circuitry, subsystems, and the like.


An imaging objective 108, such as an objective lens with a numerical aperture (NA), for example, of 0.37, collects fluorescence along the Y-axis from the ions and maps each ion onto a multi-channel photo-multiplier tube (PMT) 110 for measurement of individual ions. Non-copropagating Raman laser beams from a laser 112, which are provided along the X-axis, perform operations on the ions. A diffractive beam splitter 114 creates an array of static Raman beams 116 that are individually switched using a multi-channel acousto-optic modulator (AOM) 118 and is configured to selectively act on individual ions. A global Raman laser beam 120 illuminates all ions at once. The system controller (also referred to as a “RF controller”) 104 controls the AOM 118 and thus controls laser pulses to be applied to trapped ions in the ion chain 106. The system controller 104 includes a central processing unit (CPU) 122, a read-only memory (ROM) 124, a random access memory (RAM) 126, a storage unit 128, and the like. The CPU 122 is a processor of the system controller 104. The ROM 124 stores various programs and the RAM 126 is the working memory for various programs and data. The storage unit 128 includes a nonvolatile memory, such as a hard disk drive (HDD) or a flash memory, and stores various programs even if power is turned off. The CPU 122, the ROM 124, the RAM 126, and the storage unit 128 are interconnected via a bus 130. The system controller 104 executes a control program which is stored in the ROM 124 or the storage unit 128 and uses the RAM 126 as a working area. The control program will include software applications that include program code that may be executed by processor in order to perform various functionalities associated with receiving and analyzing data and controlling any and all aspects of the methods and hardware used to create the ion trap quantum computer system 100 discussed herein.



FIG. 2A depicts a schematic energy diagram of each ion in the ion chain 106 according to one embodiment. In one example, each ion may be a positive Ytterbium ion, 171Yb+, which has the 2S1/2 hyperfine states (i.e., two electronic states) with an energy split corresponding to a frequency difference (referred to as a “carrier frequency”) of ω01/2π=12.6 GHz. A qubit is formed with the two hyperfine states, used to represent computational basis |0custom-character and |1custom-character(|icustom-character(i∈Z)), where the hyperfine ground state (i.e., the lower energy state of the 2S1/2 hyperfine states) is chosen to represent |0custom-character. Hereinafter, the terms “hyperfine states,” “internal hyperfine states,” and “qubit states” may be interchangeably used to represent computational basis states |0custom-characterand |1custom-character(|icustom-character(i∈Z)). Each ion may be cooled (i.e., kinetic energy of the ion may be reduced) to near the motional ground state |0custom-characterm for any motional mode m with no phonon excitation (i.e., nph=0) by known laser cooling methods, such as Doppler cooling or resolved sideband cooling, and then the qubit state prepared in the hyperfine ground state |0custom-characterby optical pumping. Here, |0custom-characterrepresents the individual qubit state of a trapped ion whereas |0custom-characterm with the subscript m denotes the motional ground state for a motional mode m of the ion chain 106.


An individual qubit state of each trapped ion may be manipulated by, for example, a mode-locked laser at 355 nanometers (nm) via the excited 2P1/2 level (denoted as |ecustom-charactercustom-character). As shown in FIG. 2A, a laser beam from the laser may be split into a pair of non-copropagating laser beams (a first laser beam with frequency ω1 and a second laser beam with frequency ω2) in the Raman configuration, and detuned by a one-photon transition detuning frequency Δ=ω1−ω0e with respect to the transition frequency ω0e between |0custom-character and |ecustom-character, as illustrated in FIG. 2A. A two-photon transition detuning frequency δ includes adjusting the amount of energy that is provided to the trapped ion by the first and second laser beams, which when combined is used to cause the trapped ion to transfer between the hyperfine states |0custom-character and |1custom-character. When the one-photon transition detuning frequency Δ is much larger than a two-photon transition detuning frequency (also referred to simply as “detuning frequency”) δ=ω1−ω2−ω01 (hereinafter denoted as ±μ, μ being a positive value), single-photon Rabi frequencies Ω0e(t) and Ω1e(t) (which are time-dependent, and are determined by amplitudes and phases of the first and second laser beams), at which Rabi flopping between states |0custom-character and |ecustom-character and between states |1custom-character and |ecustom-characterrespectively occur, and a spontaneous emission rate from the excited state |ecustom-character, Rabi flopping between the two hyperfine states |0custom-character and |1custom-character (referred to as a “carrier transition”) is induced at the two-photon Rabi frequency Ω(t). The two-photon Rabi frequency Ω(t) has an intensity (i.e., absolute value of amplitude) that is proportional to Ω0eΩ1e/2Δ, where Ω0e and Ω1e are the single-photon Rabi frequencies due to the first and second laser beams, respectively. Hereinafter, this set of non-copropagating laser beams in the Raman configuration to manipulate internal hyperfine states of qubits (qubit states) may be referred to as a “composite pulse” or simply as a “pulse,” and the resulting time-dependent pattern of the two-photon Rabi frequency Ω(t) may be referred to as an “amplitude” of a pulse or simply as a “pulse,” which are illustrated and further described below. The detuning frequency δ=ω1−ω2−ω01 may be referred to as detuning frequency of the composite pulse or detuning frequency of the pulse. The amplitude of the two-photon Rabi frequency Ω(t), which is determined by amplitudes of the first and second laser beams, may be referred to as an “amplitude” of the composite pulse.


It should be noted that the particular atomic species used in the discussion provided herein is just one example of atomic species which has stable and well-defined two-level energy structures when ionized and an excited state that is optically accessible, and thus is not intended to limit the possible configurations, specifications, or the like of an ion trap quantum computer according to the present disclosure. For example, other ion species include alkaline earth metal ions (Be+, Ca+, Sr+, Mg+, and Ba+) or transition metal ions (Zn+, Hg+, Cd+).



FIG. 2B depicts a schematic motional sideband spectrum of each ion in the ion chain 106 in a motional mode |nphcustom-characterM having frequency ωm according to one embodiment. As illustrated in FIG. 2B, when the detuning frequency of the composite pulse is zero (i.e., a frequency difference between the first and second laser beams is tuned to the carrier frequency, δ=ω1−ω2−ω01=0), simple Rabi flopping between the qubit states |0custom-character and |1custom-character (carrier transition) occurs. When the detuning frequency of the composite pulse is positive (i.e., the frequency difference between the first and second laser beams is tuned higher than the carrier frequency, δ=ω1−ω2−ω01=μ>0, referred to as a blue sideband), Rabi flopping between combined qubit-motional states |0custom-character|nphcustom-characterm and |1custom-character|nph+1), occurs (i.e., a transition from the m-th motional mode with n-phonon excitations denoted by |nphcustom-characterm to the m-th motional mode with (nph+1)-phonon excitations denoted by |nph+1custom-characterm occurs when the qubit state |0custom-character flips to |1custom-character). When the detuning frequency of the composite pulse is negative (i.e., the frequency difference between the first and second laser beams is tuned lower than the carrier frequency by the frequency ωm of the motional mode |nphcustom-characterm, δ=ω1−ω2−ω01=−μ<0, referred to as a red sideband), Rabi flopping between combined qubit-motional states |0custom-character|nphcustom-characterm and |1custom-character|nph−1custom-characterm occurs (i.e., a transition from the motional mode |nphcustom-characterm to the motional mode |nph−1custom-character, with one less phonon excitations occurs when the qubit state |0) flips to |1custom-character). A π/2-pulse on the blue sideband applied to a qubit transforms the combined qubit-motional state |0custom-character|nphcustom-characterm into a superposition of |0custom-character|nphcustom-characterm and |1custom-character|nph+1custom-characterm. A π/2-pulse on the red sideband applied to a qubit transforms the combined qubit-motional |0custom-character|nphcustom-characterm into a superposition of |0custom-character|nphcustom-characterm and |1custom-character|nph−1custom-characterm. When the two-photon Rabi frequency Ω(t) is smaller as compared to the detuning frequency δ=ω1−ω2−ω01=±μ, the blue sideband transition or the red sideband transition may be selectively driven. Thus, qubit states of a qubit can be entangled with a desired motional mode by applying the right type of pulse, such as a π/2-pulse, which can be subsequently entangled with another qubit, leading to an entanglement between the two qubits that is needed to perform an XX-gate operation in an ion trap quantum computer.


Hybrid Quantum-Classical Computing System

While currently available quantum computers may be noisy and prone to errors, a combination of both quantum and classical computers, in which a quantum computer is a domain-specific accelerator, may be able to solve optimization problems that are beyond the reach of classical computers. In such optimization problems, the quantum approximate optimization algorithm (QAOA) is used to perform search for optimal solutions from a set of possible solutions according to some given criteria, using a quantum computer and a classical computer. The combinatorial optimization problems that can be solved by the methods described herein may include a combinatorial optimization problem with inequality constrains.


A combinatorial optimization problem is modeled by an objective function (also referred to as a “cost function”) that maps events or values of one or more variables onto real numbers representing “cost” associated with the events or values and seeks to minimize the cost function. In some cases, the combinatorial optimization problem may seek to maximize the objective function. The combinatorial optimization problem is further mapped onto a simple physical system described by a model Hamiltonian (corresponding to the sum of kinetic energy and potential energy of all particles in the system) and the problem seeks a low-lying energy state of the physical system.


This hybrid quantum-classical computing system has at least the following advantages. First, an initial guess is derived from a classical computer, and thus the initial guess does not need to be constructed in a quantum processor that may not be reliable due to inherent and unwanted noise in the system. Second, a quantum processor performs a small-sized (e.g., between a hundred qubits and a few thousand qubits) but accelerated operation (that can be performed using a small number of quantum logic gates) between an input of a guess from the classical computer and a measurement of a resulting state, and thus a NISQ device can execute the operation without accumulating errors. Thus, the hybrid quantum-classical computing system may allow challenging problems to be solved, such as small but challenging combinatorial optimization problems, which are not practically feasible on classical computers, or suggest ways to speed up the computation with respect to the results that would be achieved using the best-known classical algorithm.


Typically, the optimization problem with an inequality constraint g(x)=Σi=1nlixi−B≤0 (for n variables xi, i=1, 2, . . . , n) is solved by converting the inequality constraint to an equality constraint h(x)−Σk=0N−12ksk=0 with nearly introduced slack variables sk. The number N of the slack variables sk needed is







N
=




log
2




(



max
x







i
=
1




n




l
i



x
i




-
B

)





,




which grows with the number n of variables xi and the inequality constraint B. In cases the optimization problem includes more than one inequality constraints, each inequality constraint introduces one set of slack variables sk. In mapping of the optimization problem onto a quantum processor, the number of qubits required to represent the optimization problem is equal to the total number n of variables xi and the number of N the slack variables sk. The number of qubits can grow quickly and varies depending on the inequality constrains B due to the number N of slack variables sk needed to encode the inequality constraints.


Thus, in the embodiments described herein, the inequality constraints are introduced without the use of slack variables sk. The inequality constraints are embedded in the optimization problem using a polynomial approximation to the Heaviside step function







Θ

(
x
)

=

{





1
,




x
>
0






0
,




x

0




.







FIG. 3 depicts a flowchart illustrating a method 300 of obtaining a solution to an inequality constrained optimization problem by a quantum variational method, such as the quantum approximate optimization algorithm (QAOA), according to one embodiment. In this example, a quantum processor is the ion chain 106 of n trapped ions, in which the two hyperfine states of each of the n trapped ions form a qubit, for example, the hyperfine ground state representing qubit state |0custom-character and the hyperfine excited state representing qubit state |1custom-character.


A quantum variational method, such as the QAOA, relies on a variational search by the well-known Rayleigh-Ritz variational principle. The variational method consists of iterations that include choosing a “trial state” of the quantum processor depending on a set of one or more parameters (referred to as “variational parameters”) and measuring an expectation value of the model Hamiltonian (e.g., energy) of the trial state. A set of variational parameters (and thus a corresponding trial state) is adjusted and an optimal set of variational parameters is found that minimizes the expectation value of the model Hamiltonian (e.g., the energy). The resulting expectation value (e.g., the energy) approximates the exact lowest energy of the model Hamiltonian.


The method 300 begins with block 302, in which, by a classical computer, such as the classical computer 102, an optimization problem with variables xi(i=1, 2, . . . , n) constrained by one or more inequality constraints to be solved by a quantum variational method is selected, for example, by use of a user interface of the classical computer, or retrieved from the memory of the classical computer. An inequality constrained optimization problem may be to minimize:








f

(
x
)

=





i
=
1


n
-
1






j
>
i

n



q
ij



x
i



x
j




+




i
=
1

n



q
ii



x
i





,




subject to one or more inequality constrains:








g

(
x
)

=






i
=
1

n



l
i



x
i



-
B


0


,



l
i




,




where x is a vector value having n variables x; (i=1, 2, . . . , n). The optimization problem may include one or more equality constraints:








h

(
x
)

=






i
=
1

n



c
i



x
i



-
C

=
0


,



c
i




.






Examples of inequality constrained optimization problems include the knapsack problem, which determines, given a set of items, each with a weight and a value, which items to include in the collection so that the total weight is less than or equal to a given limit and the total value is as large as possible. In the example of the knapsack problem with 5 variables, f(x)=Σi=15 vixi is to be maximized, subject to an inequality constraint:








h

(
x
)

=








i
=
1




5




w
i



x
i



-
W


0


,


x
i




{

0
,
1

}

.






In block 304, by the classical computer 102, a cost function L(x, λ0, λ1) that is to be minimized to solve the selected inequality constrained optimization problem is computed. The cost function L(x, λ0, λ1) is computed as:








L

(

x
,

λ
0

,

λ
1


)

=


f

(
x
)

+


λ
0



Θ
[

g

(
x
)

]


+



λ
1

[

h

(
x
)

]

2



,




where Θ(x) is the Heaviside step function







Θ

(
x
)

=

{





1
,




x
>
0






0
,




x

0




.






The Heaviside step function Θ(x) is scaled by a penalty value λ0 for violating the inequality constraint, which can be set depending on the optimization problem. The Heaviside step function Θ(x) can be applied depending on whether the inequality constraint involves ≤ (as shown in FIG. 4A) or ≥ (as shown in FIG. 4B). For example, the inequality constraint g(x)=Σi=1n lixi−B≤0 can be included as [g(x)] in the cost function (x, λ0, λ1) after scaling g(x) appropriately such that g(x) lies between −1 and 1.


In block 306, by the classical computer 102, an approximate cost function {tilde over (L)}(x, λ0, λ1) is computed. In the approximate cost function L(x, λ0, λ1), an odd degree 2k+1 polynomial approximation {tilde over (Θ)}(x)=Σi=1kpix2i+1 (including odd order polynomials pox, p1x3, p2x5, . . . , pkx2k+1) of the Heaviside step function Θ(x) is used. Polynomial approximations of different degrees 2k+1 are shown in FIG. 4C. As seen in FIG. 4C, a polynomial approximation of a higher degree 2k+1 produces a curve that is closer to the error function








erf


x

=


2

π






0


x




e

-

t
2




dt




,




which is close the Heaviside step function Θ(x).


In block 308, by the classical computer 102, the approximate cost function {tilde over (L)}(x, λ0, λ1) is mapped onto a model Hamiltonian HC to be implemented on the quantum processor, by mapping the variables xi(i=1, 2, . . . , n) to the Ising number operator {circumflex over (n)}i(i=1, 2, . . . , n) as







x
i

=



n
^

i

=


1
-

Z
i


2






where Zi is the Pauli Z operator. The quantum processor has n qubits and each number operator {circumflex over (n)}i(i=1, 2, . . . , n) is encoded in qubit i(i=1, 2, . . . , n) in the quantum processor. For example, the states where the number operator {circumflex over (n)}i is 0 and 1 are encoded as |0custom-character and |1) of the qubit i, respectively. Here, the number of variables xi(i=1, 2, . . . , n) equals the number of qubits i(i=1, 2, . . . , n) required to implement the approximate cost function {tilde over (L)}(x, λ0, λ1).


Minimizing the approximate cost function {tilde over (L)}(x, λ0, λ1) is now converted to finding a low-lying energy state of the model Hamiltonian HC:











H
C

=


H
f

+


λ
0




H
~

g


+


λ
1



H
h




,







H
f

=





i
=
1


n
-
1






j
>
i

n



q
ij




n
ˆ

i




n
ˆ

j




+




i
=
1

n



q
ii




n
ˆ

i













H
~

g

=





p
=
1

k



c
p



B


2

p

+
1




+




p
=
1

n



c
p




n
ˆ

p



+




p
=
1

n





q
=

p
+
1


n



c
pq




n
ˆ

p




n
ˆ

q




+




p
=
1

n





q
=

p
+
1


n





r
=

q
+
1


n



c
pqr




n
ˆ

p




n
ˆ

q




n
ˆ

r





+




,








H
h

=



λ
1

[





i
=
1

n



c
i




n
ˆ

i



-
C

]

2


,







where Hf and Hh are the model Hamiltonians converted from the terms f(x) and λ1[h(x)]2 in the cost function cost function L(x, λ0, λ1), respectively. Here, {tilde over (H)}g is the model Hamiltonian converted from the approximate term λ0{circumflex over (Θ)}[g(x)] corresponding to the inequality constraint in the approximate cost function L(x, λ0, λ1), and each term includes a product of up to (2k+1) number operators {circumflex over (n)}i(i=1, 2, . . . , n), where 2k+1 is the degree of the polynomial approximation of the Heaviside step function Θ(x). Further, Hg can be expressed in terms of the Pauli Z operators as:








H
g

=





p
=
1

k




c
p



B


2

p

+
1




+




p
=
1

n



c
p



Z
p



+




p
=
1

n





q
=

p
+
1


n



c
pq



Z
p



Z
q




+




p
=
1

n





q
=

p
+
1


n





r
=

q
+
1


n



c
pqr



Z
p



Z
q



Z
r





+




,




where the first term Σp=1k cpB2p+1 is simply an offset in the model Hamiltonian HC that can be ignored. The number of terms containing the Pauli Z operators Zi in each sum in {tilde over (H)}g is:








(



n




p



)

=


n
!




(

n
-
p

)

!



p
!




,




where p goes from 1 to min(n, k). The maximum number of Pauli Z operators Zi in any term in the expansion is min(n, k) for a 2k+1 degree of the polynomial approximation of the Heaviside step function Θ(x) because {circumflex over (n)}im={circumflex over (n)}i for any integer m≥1. Any number of inequality constraints can be embedded similarly, since all the terms of the same degree 2k+1 of the polynomial approximation of the Heaviside step function Θ(x) from different inequality constraints add up. The sum of all inequality constraints embedded this way is added to the cost function L(x, λ0, λ1) along with any equality constraints as in λ1[h(x)]2.


In the example of the knapsack problem with 5 variables, the term {tilde over (H)}g corresponding to the inequality constraint in the model Hamiltonian HC includes 5 terms with a single Pauli Z operator, which can be implemented on the quantum computer by single qubit rotations and typically do not contribute to circuit depth, 10 terms with two Pauli Z operators (Z5Z4, Z5Z3, Z5Z2, Z5Z1, Z4Z3, Z4Z2, Z4Z1, Z3Z2, Z3Z1, Z2Z1), 10 terms with three Pauli Z operators (Z5Z4Z3, Z5Z4Z2, Z5Z4Z1, Z5Z3Z2, Z5Z3Z1, Z5Z2Z1, Z4Z3Z2, Z4Z3Z1, Z4Z2Z1, Z3Z2Z1), 5 terms with four Pauli Z operators (Z5Z4Z3Z2, Z5Z4Z3Z1, Z5Z4Z2Z1, Z5Z3Z2Z1, Z4Z3Z2Z1), and 1 term with 5 Pauli Z operators (Z5Z4Z3Z2Z1).


In block 310, by the classical computer 102, a set of variational parameters (γ=γ1, γ2, . . . , γp, {right arrow over (β)}=β1, β2, . . . , βp) is selected to construct a sequence of gates (also referred to a “parametrized quantum circuit”) A(γ, β), which prepares the quantum processor in a trial state |ψ({right arrow over (γ)}, {right arrow over (β)})custom-character. For the initial iteration, a set of variational parameters ({right arrow over (γ)}, {right arrow over (β)}) may be randomly chosen for the initial iteration. This trial state |ψ({right arrow over (γ)}, {right arrow over (β)})custom-character is used to provide an expectation value of the model Hamiltonian HC. The trial state preparation circuit A({right arrow over (γ)}, {right arrow over (β)}) includes p layers (i.e., p-time repetitions) of an entangling circuit U(γl) that relates to the model Hamiltonian HC(U(γl)=e−iγlHC) and a mixing circuit UMixl) that relates to a mixing term HBi=2n Xi (UMixl)=e−iβlHB) (l=1, 2, . . . , p) as







A

(


γ


,

β



)

=



U
Mix

(

β
p

)




U
Mix

(

β

p
-
1


)



U

(

γ

p
-
1


)








U
Mix

(

β
1

)



U

(


γ
1

.

)






Each term Xi in the mixing term HB corresponds to a π/2-pulse applied to qubit i in the quantum processor.


The entangling circuit U(γl) that relates to the model Hamiltonian HC (U(γl)=e−iγlHC) may be converted to a product of exponential terms, referred to as Trotter terms by the technique of the Trotter product formula known in the art.


In the example of the knapsack problem with 5 variables, the term including Z5Z4 can be implemented using 2 C-NOT gates and one single qubit rotation gate RZ, as shown in FIG. 5A. The terms including Z4Z3, Z5Z4Z3, and Z5Z3 combined can be implemented using 4 C-NOT gates and 3 single qubit rotation gates RZ, as shown in FIG. 5B, although 8 C-NOT gates are required if those terms are implemented individually (without being combined). The terms including Z3Z2, Z4Z3Z2, Z5Z4Z3Z2, Z5Z3Z2, Z5Z2, Z5Z4Z2, and Z4Z2 combined can be implemented using 8 C-NOT gates and 7 single qubit rotation gates RZ, as shown in FIG. 5C, although 24 C-NOT gates are required if those terms are implemented individually (without being combined). The terms Z3Z1, Z4Z3Z1, Z4Z1, Z5Z4Z1, Z5Z4Z2Z1, Z2Z1, Z3Z2Z1, Z4Z3Z2Z1, Z5Z4Z3Z1, Z5Z3Z1, Z5Z3Z2Z1, Z5Z2Z1, and Z5Z1 combined can be implemented using 16 C-NOT gates and 15 single qubit rotation gates RZ, as shown in FIG. 5D, although 64 C-NOT gates are required if those terms are implemented individually (without being combined). Other combinations are also possible. Heuristic methods for circuit compilation and reduction can also be used.


In block 312, by a system controller, such as the system controller 104, the quantum processor is set in an initial state |ψ0). In some embodiments, the initial state |ψ0) may be in the hyperfine ground state of the quantum processor (in which all qubits are in the uniform superposition over computational basis states (in which all qubits are in the superposition of |0custom-character and |1custom-character, |0custom-character+|1custom-character). In some other embodiments, the initial state |ψ0custom-character is prepared in a superposition of states, one of which corresponds to the ground state of the model Hamiltonian HC.


In block 314, by the system controller, the parametrized quantum circuit A({right arrow over (γ)}, {right arrow over (β)}) is applied to the quantum processor to transform the quantum processor to the trial state |ψ({right arrow over (γ)}, {right arrow over (β)}custom-character) for evaluating an expectation of the model Hamiltonian HC.


In block 316, by the system controller, the expectation value F({right arrow over (γ)}, {right arrow over (β)})=custom-characterψ({right arrow over (γ)}, {right arrow over (β)})|HC|ψ({right arrow over (γ)}, {right arrow over (β)}custom-character) of the model Hamiltonian HC is measured. Repeated measurements of populations of the trapped ions in the ion chain 106 in the trial state |ψ({right arrow over (γ)}, {right arrow over (β)}custom-character), by collecting fluorescence from each trapped ion and mapping onto the PMT 110, yield the expectation value the model Hamiltonian HC.


In block 318, the measured expectation value F({right arrow over (γ)}, {right arrow over (β)}) of the model Hamiltonian HC is compared to the measured expectation value of the model Hamiltonian HC in the previous iteration, by the classical computer 102. If a difference between the two values (referred to as a residual) is less than a predetermined value (i.e., the expectation value sufficiently converges towards a fixed value), the method proceeds to block 322. If the difference between the two values is more than the predetermined value, the method proceeds to block 320.


In block 320, another set of variational parameters ({right arrow over (γ)}, {right arrow over (β)}), with which the current set of variational parameter ({right arrow over (γ)}, {right arrow over (β)}) is replaced, for a next iteration of blocks 314 to 318 is computed by the classical computer 102, in search for an optimal set of variational parameters ({right arrow over (γ)}, {right arrow over (β)}) to minimize the expectation value of the model Hamiltonian HC, F({right arrow over (γ)}, {right arrow over (β)})=custom-characterψ({right arrow over (γ)}, {right arrow over (β)})|HC|ψ({right arrow over (γ)}, {right arrow over (β)}custom-character). That is, the classical computer 102 executes a classical optimization method to find the optimal set of variational parameters







(


γ


,

β



)





(


min


γ


,

β






F

(


γ


,

β



)



)

.





Examples of conventional classical optimization methods include simultaneous perturbation stochastic approximation (SPSA), particle swarm optimization (PSO), Bayesian optimization (BO), and Nelder-Mead (NM).


In block 322, the result of the variational search is outputted, by the classical computer 102, to a user interface of the classical computer 102 and/or saved in the memory of the classical computer 102. The final results of the variational search includes the measured expectation value of the model Hamiltonian HC in the final iteration corresponding to the minimized value of the objective function L(x, λ0, λ1) and the measurement of the trail state |ψ({right arrow over (γ)}, {right arrow over (β)}custom-character) in the final iteration corresponding to the solutions to the inequality constrained optimization problem.


In the method for obtaining a solution to an inequality constrained optimization problem on a hybrid quantum-classical computing system described herein provides advantages over the conventional method for solving an inequality constrained optimization problem. Firstly, the number of qubits required to map an inequality constrained optimization problem on a quantum processor is determined by the number of variables in the inequality constrained optimization problem. Since the use of slack variables that are commonly used for solving an inequality constrained optimization problem is eliminated, no additional qubits to represent such slack variables are required. Secondly, the number of terms in a model Hamiltonian, to which a cost function of the inequality constrained optimization problem, is bounded by a degree of the polynomial approximation of the Heaviside step function that describes the inequality constraint. Thus, the number of terms in the model Hamiltonian does not grow with a problem size (i.e., the number of variables in the inequality constrained optimization problem). Lastly, the number of qubits or the number of terms in the model Hamiltonian does not depend on the number of inequality constraints or values that are included in the inequality constraints.


While the foregoing is directed to specific embodiments, other and further embodiments may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow.

Claims
  • 1. A method of performing computation in a hybrid quantum-classical computing system comprising a classical computer and a quantum processor, comprising: computing, by a classical computer, an approximate cost function of an optimization problem with variables constrained by an inequality, wherein the inequality constraint is included using a polynomial approximation of a Heaviside step function;mapping, by the classical computer, the approximate cost function of the optimization problem to a model Hamiltonian to be implemented on a quantum processor comprising a plurality of trapped ions, each of which has two hyperfine states defining a qubit;selecting, by the classical computer, a set of variational parameters to construct a parametrized quantum circuit comprising an entangling circuit based on the model Hamiltonian and a mixing circuit;setting, by a system controller, the quantum processor in an initial state;executing one or more iterations, each iteration comprising: applying, by the system controller, the parametrized quantum circuit to the quantum processor based on the set of the variational parameters and the model Hamiltonian, to transform the quantum processor to a trial state;measuring, by the system controller, an expectation value of the model Hamiltonian; andreplacing, by the classical computer, the set of the variational parameters with another set of variational parameters, if a difference between the measured expectation value of the model Hamiltonian and the expectation value of the model Hamiltonian measured in a previous iteration is more than a predetermined value; andoutputting, by the classical computer, the set of the variational parameters after executing the one or more iterations.
  • 2. The method of claim 1, wherein the optimization problem is a knapsack problem.
  • 3. The method of claim 1, wherein a number of the variables equals a number of the plurality of trapped ions.
  • 4. The method of claim 1, wherein the polynomial approximation of the Heaviside step function includes odd order polynomials.
  • 5. The method of claim 4, wherein the maximum number of terms in the model Hamiltonian is the highest order of polynomials in the polynomial approximation of the Heaviside step function.
  • 6. The method of claim 1, wherein the optimization problem is further constrained by one or more equalities.
  • 7. The method of claim 1, wherein the optimization problem is further constrained by one or more additional inequalities.
  • 8. A hybrid quantum-classical computing system, comprising: a quantum processor comprising a plurality of trapped ions, each of the trapped ions having two hyperfine states defining a qubit;one or more lasers configured to emit a laser beam, which is provided to trapped ions in the quantum processor; anda classical computer configured to: compute an approximate cost function of an optimization problem with variables constrained by an inequality, wherein the inequality constraint is included using a polynomial approximation of a Heaviside step function;map the approximate cost function of the optimization problem to a model Hamiltonian to be implemented on the quantum processor;select a set of variational parameters to construct a parametrized quantum circuit comprising an entangling circuit based on the model Hamiltonian and a mixing circuit;control a system controller to set the quantum processor in an initial state;execute one or more iterations, each iteration comprising: control the system controller to apply the parametrized quantum circuit to the quantum processor based on the set of the variational parameters and the model Hamiltonian, to transform the quantum processor to a trial state;control the system controller to measure an expectation value of the model Hamiltonian; andreplace the set of the variational parameters with another set of variational parameters, if a difference between the measured expectation value of the model Hamiltonian and the expectation value of the model Hamiltonian measured in a previous iteration is more than a predetermined value; andoutput the set of the variational parameters after executing the one or more iterations.
  • 9. The hybrid quantum-classical computing system of claim 8, wherein each of the trapped ions is 171Yb+ having 2S1/2 hyperfine states.
  • 10. The hybrid quantum-classical computing system of claim 8, wherein each of the trapped ions is one selected from Be+, Ca+, Sr+, Mg+, Ba+, Zn+, Hg+, Cd+.
  • 11. The hybrid quantum-classical computing system of claim 8, wherein the optimization problem is a knapsack problem.
  • 12. The hybrid quantum-classical computing system of claim 8, wherein a number of the variables equals a number of the plurality of trapped ions.
  • 13. The hybrid quantum-classical computing system of claim 8, wherein the polynomial approximation of the Heaviside step function includes odd order polynomials, andthe maximum number of terms in the model Hamiltonian is the highest order of polynomials in the polynomial approximation of the Heaviside step function.
  • 14. The hybrid quantum-classical computing system of claim 8, wherein the optimization problem is further constrained by one or more equalities.
  • 15. The hybrid quantum-classical computing system of claim 8, wherein the optimization problem is further constrained by one or more additional inequalities.
  • 16. A hybrid quantum-classical computing system comprising non-volatile memory having a number of instructions stored therein which, when executed by one or more processors, causes the hybrid quantum-classical computing system to perform operations comprising: computing, by a classical computer, an approximate cost function of an optimization problem with variables constrained by an inequality, wherein the inequality constraint is included using a polynomial approximation of a Heaviside step function;mapping, by the classical computer, the approximate cost function of the optimization problem to a model Hamiltonian to be implemented on a quantum processor comprising a plurality of trapped ions, each of which has two hyperfine states defining a qubit;selecting, by the classical computer, a set of variational parameters to construct a parametrized quantum circuit comprising an entangling circuit based on the model Hamiltonian and a mixing circuit;setting, by a system controller, the quantum processor in an initial state;executing one or more iterations, each iteration comprising: applying, by the system controller, the parametrized quantum circuit to the quantum processor based on the set of the variational parameters and the model Hamiltonian, to transform the quantum processor to a trial state;measuring, by the system controller, an expectation value of the model Hamiltonian; andreplacing, by the classical computer, the set of the variational parameters with another set of variational parameters, if a difference between the measured expectation value of the model Hamiltonian and the expectation value of the model Hamiltonian measured in a previous iteration is more than a predetermined value; andoutputting, by the classical computer, the set of the variational parameters after executing the one or more iterations.
  • 17. The hybrid quantum-classical computing system of claim 16, wherein the optimization problem is a knapsack problem.
  • 18. The hybrid quantum-classical computing system of claim 16, wherein a number of the variables equals a number of the plurality of trapped ions.
  • 19. The hybrid quantum-classical computing system of claim 16, wherein the polynomial approximation of the Heaviside step function includes odd order polynomials, and maximum number of terms in the model Hamiltonian is the highest order of polynomials in the polynomial approximation of the Heaviside step function.
  • 20. The hybrid quantum-classical computing system of claim 16, wherein the optimization problem is further constrained by one or more equalities, and the optimization problem is further constrained by one or more additional inequalities.
CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to U.S. Provisional Application Ser. No. 63/449,298 filed Mar. 1, 2023, which is herein incorporated by reference in its entirety.

Provisional Applications (1)
Number Date Country
63449298 Mar 2023 US