Abstract
The search for global minima is a critical challenge across multiple fields including engineering, finance, and artificial intelligence, particularly with non-convex functions that feature multiple local optima, complicating optimization efforts. We introduce the Quantum Global Minimum Finder (QGMF), an innovative quantum computing approach that efficiently identifies global minima. QGMF combines binary search techniques to shift the objective function to a suitable position and then employs Variational Quantum Search to precisely locate the global minimum within this targeted subspace. Designed with a O(n)-depth circuit architecture, QGMF also utilize the logarithmic benefits of binary search to enhance scalability and efficiency. This work demonstrates the impact of QGMF in advancing the capabilities of quantum computing to overcome complex non-convex optimization challenges effectively.
Subject terms: Computer science, Applied mathematics
Introduction
Optimization challenges permeate a diverse range of fields, including science1, engineering2, and economics3. Central to these challenges is the quest to find the global minimum of a function, representing the most optimized state or solution within a given domain. Despite considerable research efforts4,5, accurately pinpointing global minimum in complex landscapes, characterized by multiple local minima, remains challenging. Traditional strategies, such as the brute-force approaches mentioned in6,7, necessitate traversing all elements in the search space, which becomes impractical for large datasets due to the “curse of dimensionality”.
Alternative optimization techniques, including gradient-based8, non-gradient-based9, and genetic algorithms10, offer strategies to navigate the search space more efficiently. Yet, these methods often fall short in guaranteeing the discovery of the global optimum, particularly in complex, non-convex functions11 that pose the risk of trapping these algorithms in local optima.
Quantum computing emerges as a revolutionary paradigm, offering a novel approach to these longstanding optimization challenges. Unlike classical systems, which process information in binary bits, quantum systems utilize qubits, enabling the representation of multiple states simultaneously through superposition12. This capability allows quantum algorithms to explore vast search spaces more efficiently, potentially accelerating the discovery of global minimum for specific problem classes.
Among the quantum computing methodologies, Quantum Annealing (QA) has gained prominence for its potential in solving a subset of optimization problems known as “combinatorial optimization problems”13. QA leverages the principles of quantum mechanics to navigate the search space, aiming to converge on the global minimum by exploiting quantum tunneling and superposition. However, the practical application of QA is constrained by the need for adiabatic evolution14 and faces challenges in guaranteeing solution optimality within realistic computational timeframes.
Grover’s algorithm15 is a quantum algorithm that provides a quadratic speedup for searching unsorted databases, finding a specific item in
time, where N is the number of items, compared to O(N) time in classical computing. In16, the author modified the Grover’s quantum algorithm15 to solve real-world problems in identifying a global minimum, employing a relatively small number of quantum bits to find the global minimum. Despite the reduction to
, the number of function evaluations still exhibits an exponential dependency on the number of qubits, given that
, where n is the number of qubits.
Although Grover’s algorithm and the quantum amplitude amplification technique17 provide quadratic speedup across various scientific and computational problems, their practical application faces limitations due to the exponential growth in quantum circuit complexity as more qubits are added. The advent of Variational Quantum Search (VQS)18 introduces an innovative method that capitalizes on variational quantum algorithms and parameterized quantum circuits. VQS notably improves the odds of identifying desirable elements, while ensuring the maximal depth of quantum circuits increases linearly with the qubit count, a fact validated for systems up to 26 qubits.
This paper introduces the Quantum Global Minimum Finder (QGMF), an innovative quantum algorithm designed to efficiently locate the global minima of any given function, which is challenging due to potential multiple local optima. The QGMF algorithm combines a binary search technique with the VQS (the VQS part does not have an oracle). Characterized by its O(n)-depth circuit design, the QGMF also leverage the logarithmic advantage of binary search to enhance scalability and efficiency. This method represents an advance in tackling complex optimization problems across various fields by harnessing the power of quantum computing.
In19 and20, the adaptive search method involves iteratively applying Grover’s algorithm to the improving region – defined as the set of points where the objective function value is better than a current threshold – to find better solutions. In contrast, the QGMF proposed in this paper employs a binary search to efficiently determine a shift value that adjusts the entire objective function up or down. This shifted objective function has a limited number of negative objective values, allowing the VQS to effectively identify the minimum among them. This approach not only achieves logarithmic efficiency due to the binary search but also benefits from the reduced circuit depth of VQS compared to Grover’s algorithm, enhancing practicality for near-term quantum devices.
The remainder of the paper is structured as follows: In “Method: QGMF” section, we detail the QGMF, including its components such as quantum circuit, binary search, and VQS. “Complexity analysis and case study” section presents a complexity analysis and case study to evaluate the performance of the QGMF. Finally, “Discussion” section explores the broader implications of our findings and suggests directions for future research, while considering the limitations of the current study.
Method: QGMF
This section details the QGMF, beginning with a high-level description to introduce the general concept and operational framework of the QGMF. It describes each component of the QGMF, including the quantum circuits used for an Oracle, a quantum adder, and the VQS without an oracle. Additionally, the method incorporates a binary search technique to efficiently shift the objective function such that it helps VQS to effectively find the global minimum. The section also includes the pseudocode for the QGMF algorithm (Algorithm 1) and visual representations of the quantum circuits involved (Fig. 2), offering a comprehensive guide to understanding and implementing the QGMF.
Fig. 2.
Two quantum circuits used for the QGMF. (a) and (b) depict quantum circuits employed to measure
and
, which are utilized in Eq. (8). Note that the VQS part does not have an oracle..
High-level description of QGMF
Assumption: We consider an arbitrary function f(x) without any restrictions on its properties, including convexity, continuity, differentiability, discreteness, etc.
Problem: Our goal is to determine the global minimum (
) of the function f(x) over a specific domain D.
Solution: The idea is to determine
through an iterative process, as depicted in Fig. 1. In this approach, we shift the function f(x) along the y-axis by an amount of
in the ith iteration. This process continues until the number of negative values of f(x) falls between 1 and a predefined threshold T, with the count of negative values determined by the VQS.
Fig. 1.
High-level overview of the QGMF algorithm for finding the global minimum of f(x). In this specific example, since f(x) is initially positive for all inputs, it needs to be shifted downward along the y-axis to generate negative values. This downward shift is accomplished by shifting the function by
. After the initial downward shift by
, the function produces a significant number of negative values (exceeding our specified threshold T), indicating the need for a smaller shift by
. Following this adjustment, the count of negative values of
becomes smaller than T, enabling us to easily identify the minimum among the remaining negative numbers denoted as
. Finally, we utilize Eq. (1) to calculate the value of
.
Then we find the minimum of existing negative values (
) and utilize Eq. (1) to compute the global minimum.
![]() |
1 |
It is important to note that the function f(x) may have an infinite number of values. Nevertheless, given that f(x) is encoded through sampling, the count of evaluated f(x) values becomes finite.
Conforming to the “quantum Church-Turing thesis”21, it is conjectured that a quantum computer, given sufficient resources, can effectively simulate any classical computation and, in certain scenarios, execute it more efficiently than classical counterparts. Consequently, we can realize any classical function f(x) as a quantum oracle
, enabling the exploitation of quantum computing’s distinctive properties within QGMF.
To identify the global minimum of a classical function, it is essential to transform this function into a quantum oracle
. This transformation has been the focus of various studies, such as those documented in22, which explore methodologies for representing classical functions within quantum frameworks. Building upon this foundation, quantum arithmetic operations-highlighted in both23 and our previous work24-introduce the capabilities for executing multiplication, addition, and averaging within a quantum domain. However, the efficient conversion of real-valued functions from f(x) to
demands further exploration. Past research, including efforts by25, has begun to tackle the complexities associated with quantum arithmetic for real-valued functions. Integrating these established techniques into our approach promises a robust pathway towards achieving our objective.
Defining the oracle
To exploit quantum parallelism, we first apply Hadamard gates to create a uniform superposition of different inputs (Eq. (2)). This prepares a quantum state that encompasses all inputs simultaneously.
![]() |
2 |
The next step in QGMF is to define the quantum oracle
which takes the input
and yields the output
in 2’s complement format, as expressed in Eq. (3). “Data embedding” section in Appendix details the methodologies for data embedding, focusing on basis embedding and 2’s complement.
![]() |
3 |
The oracle is typically treated as a black-box quantum operator, with the objective of determining its global minimum while considering its output in 2’s complement representation.
To prevent overflow during the shifting phase, an additional overflow qubit was introduced immediately following the oracle. Utilizing a CNOT gate in conjunction with the MSQ entangles it with the MSQ, ensuring adherence to the 2’s complement conditions (e.g., sign extension)26 (refer to section A).
If needed, one can add any number of extra overflow qubits by following the same procedure. However, for our considerations, we assumed that
. Additionally, given the worst-case scenario due to the lower and upper bounds of the shift
in Algorithm 1, where
, we have
. Indeed, we need to accommodate the range
, requiring m bits. Consequently, introducing one overflow qubit is sufficient.
By applying the oracle to the superposition of all potential inputs, we acquire a superposition of all oracle’s outputs, as outlined in Eq. (4), where
.
![]() |
4 |
Quantum adder
The next step is implementing the adder circuit (“
”) to add state
with the value
, which generates
. This can be achieved by using the Quantum Fourier Transform (QFT)-based adder23. Initially, we convert the state
from the computational basis to the Fourier basis by applying the QFT to it, resulting in a new state in the QFT basis denoted as
(see Eq. (5)).
![]() |
5 |
Subsequently, Eq. (6) is employed to rotate the j-th qubit by an angle of
using the
gate. This rotation introduces a new phase of
for the j-th qubit where
. The resulting state after these rotations is denoted as
.
![]() |
6 |
Finally, we apply
to return to the computational basis, yielding
as shown in Eq. (7).
![]() |
7 |
It is essential to underscore that the operator
is designed to work exclusively with positive integers. However, in situations where the shift “
” is a negative integer, we need to perform a conversion from the 2’s complement form of the negative number to its positive decimal representation and then apply it to the A operator. For example, if we intend to use
with a 3-qubit configuration, we first convert
to its 2’s complement form, which is
, equivalent to 6 in positive decimal notation. Consequently, we should utilize A(6) in this scenario.
Algorithm 1.
QGMF algorithm for finding the
of
.
Variational quantum search and binary search
In the pursuit of the global minimum, we employ an iterative approach that combines binary search and VQS. In each iteration, the VQS is applied to search for the negative values of the states after the adder, represented as
and shown in Fig. 2. Subsequently, the number of negative values (
) is used as a key metric for establishing the termination criteria of the binary search and for modifying its lower and upper limits. The binary search can help to quickly shift the position of the function, as illustrated in Fig. 1, such that the
for the shifted function is between 1 and T, usually within several iterations.
Variational quantum search (VQS)
VQS is a variational quantum algorithm (VQA) proposed in18. As a variational alternative to Grover’s algorithm, VQS has undergone testing on searching unstructured databases comprising up to 26 qubits. The goal of VQS is to search good elements in an unstructured database, where the good elements’ label qubit in the VQS circuit is in state
. VQS employs an Ansatz
from18, which is optimized to transform the quantum state from a superposition of all elements to a superposition of solely good elements. The objective function in VQS is expressed as:
![]() |
8 |
where
and
are measurements of two quantum circuits given in Fig. 2, achieved by the Hadamard test27, and can be expressed as Eqs. (9) and (10):
![]() |
9 |
![]() |
10 |
The MSQ of
, given in Eq. (7), corresponds to the overflow qubit described in Section A, and serves as the label qubit of VQS. When
is applied to this state, the resulting state is shown in Eq. (11).
![]() |
11 |
When the objective function specified in Eq. (8) reaches its global minimum, the parameters of the Ansatz also reach their optimal values, i.e.,
, terminating the VQS iteration18 . At this point, the quantum state
represents a superposition solely of the good elements, or equivalently, only the negative values in the states after the adder. This state can also be expressed as Eq. (12), where
represents the amplitude of the basis state
, corresponding to the
good element, or equivalently, the
distinct negative value. Then, the count of negative values, denoted by
, is determined by measuring the state
, i.e., this count is equal to the number of unique states measured.
![]() |
12 |
Theoretically, Eq. (12) includes only good elements. In other words, the
corresponding to bad elements is 0. However, in practice, if a near-optimal
is obtained instead of the global optimal, some bad elements may still be present.
Binary search
We employ a binary search method, detailed in Algorithm 1, to optimize the shift value
iteratively, aiming to refine our search for the global minimum effectively. The algorithm initiates by setting the shift
to the midpoint between the current lower and upper bounds, defined as
and
, respectively, where n represents the number of qubits.
In each iteration, we measure state
as specified in Eq. (12) to determine the count of negative function values, denoted as
. If the number of distinct negative values
exceeds a predefined threshold T, it suggests an excess of negative values, prompting an upward shift adjustment, and we assign the current
to the lower bound of the subsequent iteration. Conversely, if
is approximately zero, indicating that the shifted objective function values are predominantly above the x-axis, a downward shift is applied, and we assign the current
to the upper bound of the subsequent iteration.
By checking lines 16, 22, and 27 of Algorithm 1, it is sufficient to determine whether
exceeds the predefined threshold T, without requiring the exact value of
if it is greater than T. During the measurement process, once the number of distinct negative values measured exceeds T, we terminate the measurement process for that iteration. Consequently, the maximum number of points we need to measure per iteration is limited to T, a small constant.
The binary search continues until
falls within the range of 1 to T, at which point the process is terminated, and the minimum value among the detected negative values,
, is identified. The global minimum
is then calculated using
, given in Eq. (1). Note that the threshold T is a small constant, leading to a constant time complexity of O(T) for searching through the remaining negative values.
Handle unbalanced state probabilities
The probability of measuring any state
is given by
. Let
denote the minimum probability among these states. To reliably measure all
states, the number of shots should be large enough to ensure that even the least probable states are detected.
For ease of expression, we define the balanced and unbalanced coefficients below.
Balanced
: When the coefficients are balanced (i.e., none of the
are excessively small compared to others), Algorithm 1 performs effectively because all
states are likely to be measured within a reasonable number of shots.
Unbalanced
: If some
coefficients are significantly smaller than others, the corresponding
states have very low probabilities of being measured. This imbalance can lead to incomplete sampling of the solution space, potentially affecting the algorithm’s performance.
To address the issue of unbalanced
, we integrate the following four steps into Algorithm 1.
Step 1 - Identifying Minimum
: When
, we begin by identifying the minimum value among all
, denoted as
.
Step 2 - Adjusting the Threshold
: We then increase the threshold
by
, where
is a very small positive value. This adjustment shifts all objective values upward, ensuring that the high-probability
states (which were previously negative) become positive and are effectively filtered out.
Step 3 - Focusing on Low-Probability States: After the adjustment in Step 2, the VQS focuses on finding smaller objective values (i.e., values that are lower than
), if any. These smaller objective values were low-probability
states that were not measured in Step 1. As all high-probability
states were filtered out in the previous step, the probability of the states corresponding to these smaller objective values becomes high and they are much more likely to be measured, without the need to set a very high number of shots.
Step 4 - Iterative Measurement: If promising elements are detected among these low-probability states, we proceed with the QGMF method. Otherwise, we conclude that the
values are balanced and terminate the algorithm.
These four steps are reflected in lines 17 - 23 of Algorithm 1. Note that the purpose of these four steps is to be able to measure low-probability states without setting the number of shots to an extremely large value in the case of unbalanced state probabilities.
One of the advantages of using the QGMF approach is that it allows us to avoid setting an excessively large number of shots, even for a large number of qubits, n. Specifically, when n is large, it can lead to numerous negative values (
). In such cases, the VQS can terminate the measurement process once more than T distinct states have been measured, update the Low value in Algorithm 1, and continue to the next iteration, as described in lines 27-28 of Algorithm 1. For this reason, we have chosen to set the number of shots to a fixed value, typically in the range of 5,000-10,000.
Complexity analysis and case study
This section delves into the complexity analysis and empirical simulation of the QGMF algorithm. Given that QGMF is a VQA, its performance metrics such as complexity and efficiency are influenced by several factors, including circuit depth, convergence rate, and number of measurements.
The adder circuit used in this paper consists of QFT and its inverse as well as one layer of Rz gates. Therefore, the complexity of the adder circuit, essential for shifting operations, is comparable to that of the QFT at time complexity of
, where n is the number of qubits28. The number of CR operations required for the QFT is
. Furthermore, the VQS plays a pivotal role in the local search phase, featuring a linear depth complexity of O(n), thereby reducing the required quantum resources.
In the QGMF method, we employ only one oracle whose circuit depth is crucial for understanding the computational complexity of our algorithm. The oracle, denoted as
used in Eq. (3), implements the function f(x) and prepares the quantum state
. Preparing such an arbitrary quantum state is a well-studied problem in quantum computing. According to Theorem 1 in29, any n-qubit quantum state can be deterministically prepared using only single- and two-qubit gates with a circuit depth of
and
ancillary qubits.
Note that in the VQS part of the circuit, as shown in Fig. 2, the
’s depth is
and 15 if using type-I and type-II Ansatzs, respectively, according to18. In summary, the QGMF has a O(n)-depth circuit complexity, including all circuit parts such as the oracle, the QFT based adder, and the VQS.
The optimization complexity, critical for identifying the optimal parameters of VQS, can be quantified based on the number of iterations and measurements. According to the findings documented in18,30, less than 300 iterations are necessary to achieve the desired state in most runs, highlighting the algorithm’s efficiency in parameter optimization. The number of measurements is twice the number of iterations.
Recent studies have confirmed the effectiveness of VQS in systems with up to 26 qubits, as detailed in18,30. Efforts are currently underway to extend VQS capabilities to more qubits. For computational complexity analysis, it is important to recognize that in scenarios involving more than 26 qubits - where VQS’s efficiency has not yet been confirmed - Grover’s Search algorithm can be utilized as an interim solution. According to15, this algorithm offers a quadratic speedup. Despite this advantage, preliminary analysis suggests that VQS could potentially outperform Grover’s algorithm in terms of circuit depth when applied to systems larger than 26 qubits. This suggests that the QGMF might achieve more than quadratic speedup in finding optimal solutions, indicating a promising avenue for further research in quantum computing efficiency.
The outer loop of Algorithm 1 is a binary search, which is known to run in logarithmic time in the worst case. Therefore, we can expect the QGMF’s outer iteration to converge quickly. The results given in this figure are obtained from simulation using Pennylane31,32. Simulation tests indicate that the QGMF is as accurate as the classical brute-force method. As shown in Fig. 3, the number of binary search steps required by the QGMF to locate the global minimum is within 15 for all the 13 cases we studied. These simulations assessed QGMF’s adaptability to different quantum oracles by encoding potential function values in quantum states. Each state involved a randomly generated, normalized input vector of dimension
, adhering to quantum circuitry norms. Detailed construction of the random oracle and comparisons with classical brute-force results are provided in Algorithm 2, underscoring the framework’s potential efficacy in quantum computing applications.
Fig. 3.

Efficiency of the QGMF in identifying the global minimum of a randomly generated oracle, indicated by the number of binary search steps required (left vertical axis) across various qubit counts. The figure contrasts this with the total number of elements a classical brute-force search must navigate to theoretically ensure pinpointing the global minimum (right vertical axis). The function
, where
, is also depicted to illustrate the exponential growth of the search space. Note that while “Data embedding” section discusses creating sparse quantum states with a small number of non-zero elements (calculated via the approach mentioned in Algorithm. 2), the dashed red curve represents the worst-case scenario where all possible computational basis states are non-zero. This provides a clear comparison with classical search methods by illustrating the algorithm’s efficiency even when dealing with the maximum possible number of non-zero elements. .
Note that the results in this section are based on perfect state vector calculations and we utilized the Pennylane simulation platform31.
Apply QGMF to determine the chromatic number of a graph
The chromatic number of a graph, typically denoted as
, is one of the most fundamental and widely studied concepts in graph theory. It represents the smallest number of distinct colors required to color the vertices of a graph G such that no two adjacent vertices share the same color. This associated problem, known as the vertex coloring problem, arises in numerous real-world applications, from scheduling and resource allocation to frequency assignment in wireless networks and register allocation in compilers.
Despite its seemingly simple formulation, determining the chromatic number is a highly complex task. The problem is classified as NP-hard, meaning that no polynomial-time algorithm is known for finding the chromatic number for arbitrary graphs. This makes the chromatic number a critical subject of study not only in theoretical computer science but also in practical fields where optimization and resource minimization are crucial.
The combinatorial nature of the problem means that as the size and complexity of the graph grow, finding the chromatic number becomes increasingly difficult. This is where QGMF offers a promising alternative to classical methods.
Problem definition
The vertex coloring problem is a classic combinatorial optimization problem that seeks to assign colors to the vertices of a graph
, where
is the set of vertices and
is the set of edges, such that no two adjacent vertices share the same color. Formally, our objective is to find a function
that assigns a color
to each vertex
, where
represents the number of available colors, subject to the constraint that for every edge
,
.
The goal is to determine the minimum number of colors
required to achieve a proper coloring, known as the chromatic number
, defined as:
![]() |
As an illustration, in Fig. 4, we have a graph with four vertices
, where the edges represent adjacency constraints. The edges between the vertices are defined as follows:
,
,
,
, and
. The objective is to assign a color to each vertex such that no two adjacent vertices share the same color. In this case, the constraints are:
![]() |
where
denotes the color assigned to vertex
.
Fig. 4.

An example graph with four vertices.
Binary encoding of colors
We encode the colors assigned to each vertex using binary variables. For a graph with
vertices and up to
colors, the colors can be represented using
qubits. Therefore, we need
qubits, to encode the colors of the vertices. We refer to this encoding as Color Encoding.
In Fig. 4, for example, we have a graph with four vertices
, with edges connecting
,
,
,
, and
. To determine the chromatic number, we encode the color assignments into qubits. Since we want to use up to four different colors, we assign two qubits per vertex to represent the binary encoding of the colors. For instance, the colors can be encoded as follows:
![]() |
Constraint encoding
To enforce the constraints, we use a controlled-U gate33, where the quantum adder
(refer to “Complexity analysis and case study” section) is applied as the operation
. This allows us to build a controlled quantum adder, denoted as
, as shown in Fig. 5.
Fig. 5.

Controlled quantum adder circuit
.
For each constraint, which involves two adjacent nodes in the graph, we apply a
. If two adjacent vertices share the same color (i.e., their qubit states are the same), the adder circuit adds
to the Counter Register (C), which tracks the number of violations and stores this count in binary. In the worst-case scenario, where all vertices of a fully connected graph are assigned the same color, the number of violations reaches its maximum.
As an example, for the graph shown in Fig. 4, the corresponding quantum circuit is constructed as illustrated in Fig. 6 for a single color state. The complete circuit requires extensions to account for all possible color states.
Fig. 6.
Binary encoding of vertex colors and color assignment constraints for the color state
for the graph shown in Fig. 4, which has four vertices. The full circuit includes three additional copies of this structure, covering all four possible colors. Each vertex is represented by two qubits, encoding one of the four possible colors.
Efficient search to find
Using the counter register as the oracle for the QGMF, we can determine the minimum number of violations based on our color inputs. To find the chromatic number
, we employ a binary search over the possible number of colors. By using binary search, we aim to find the smallest possible
, with the binary search terminating when the number of violations reaches a near-zero probability and remains stable. At that point, we can obtain a good estimate of
.
For example, in Fig. 4, we need at least one color and at most four colors (Fig. 7a, b and c show the binary encoding for four, two, and one colors, respectively). We start by considering the middle integer, which is two. To encode two colors for each vertex, we can apply a Hadamard gate on one of the two qubits used to encode the vertex colors, as shown in Fig. 7b. The number of violations is 2, so we update our lower bound to 2 and select the middle integer between 2 and 4, which is 3. As shown in Fig. 8, this satisfies our termination condition, and we determine that the chromatic number
is 3.
Fig. 7.
Binary encoding of different number of colors for vertex
of graph in Fig. 4, where
,
,
, and
represent red, green, blue, and yellow, respectively.
Fig. 8.
Graph of the minimum number of violations versus the number of colors
for graph shown in Fig. 4.
Discussion
In this paper, we introduce the QGMF, an innovative approach designed to efficiently locate the global minimum of quantum oracles. The QGMF integrates a binary search with the VQS, harnessing quantum computing’s potential to outperform traditional brute-force methods significantly. Our analysis confirms the effectiveness of QGMF, demonstrating its superior performance in complex optimization scenarios. The implications of our study are profound, opening new avenues in fields such as finance, chemistry, and machine learning.
Future research will focus on evaluating QGMF under realistic quantum conditions, expanding its applications across various sectors, and refining quantum oracles to enhance their utility and performance. Despite its promising outcomes, we recognize the limitations of our current study, primarily the assumption of ideal quantum computing conditions which might not accurately represent the complexities faced in noisy quantum environments. Additionally, the scalability and practical deployment of QGMF in real-world applications require further exploration to fully realize its potential.
Acknowledgements
This research was supported by the NSF ERI program, under award number 2138702. This work used the Delta system at the National Center for Supercomputing Applications through allocation CIS220136 and CIS240211 from the Advanced Cyberinfrastructure Coordination Ecosystem: Services & Support (ACCESS) program, which is supported by National Science Foundation grants #2138259, #2138286, #2138307, #2137603, and #2138296. We acknowledge the use of IBM Quantum services for this work. The views expressed are those of the authors, and do not reflect the official policy or position of IBM or the IBM Quantum team.
Appendix A: Data embedding
This section outlines data embedding techniques in quantum computing, focusing on basis embedding and 2’s complement representation. It highlights the advantages of 2’s complement in simplifying arithmetic operations within quantum systems, providing a foundation for its application in the QGMF, especially detailed in “Quantum adder” section. Furthermore, the 2’s complement described in this section provides a label qubit that is an essential input to VQS, a core part of QGMF, as described in “Variational quantum search and binary search” section.
Basis embedding
In quantum computing, there are several ways to encode data like basis embedding, angle embedding, amplitude embedding, and so on31. In this paper, we used basis embedding. Basis embedding associates each input with a computational basis state of a qubit system. Therefore, data has to be in the form of binary strings. The embedded quantum state is the bit-wise translation of a binary string to the corresponding states of the quantum subsystems. For example,
is represented by the 4-qubit quantum state
.
2’s complement representation
Various methods exist for encoding signed integer numbers in binary representation, including Signed Magnitude, 1’s complement, and 2’s complement26. In Table 1, different representations of signed integer numbers encoded in a 4-qubit binary format are shown. 2’s complement serves as a fundamental method for representing signed integers in binary form and its format also ensures that the number 0 has only one representation, making it unambiguous26. In this representation, the leftmost digit serves as the sign indicator: “0” signifies a positive number, and “1” denotes a negative number. Additionally, p binary digits can accommodate a range of integer values (
) as defined in Eq. (13).
![]() |
13 |
The concepts discussed are also applicable to the basis embedding of a 2’s complement quantum binary state
, where the Most Significant Qubit (MSQ) signifies the sign of
, in accordance with Eq. (14).
![]() |
14 |
Positive Numbers: Converting a positive decimal integer x to 2’s complement is straightforward, resembling the process for unsigned binary representation26. For example
.
Table 1.
Signed binary representations for 4-qubit encoding. It is evident that Signed Magnitude and 1’s complement have dual representations for the number 0, which proves inefficient in arithmetic operations. The 2’s complement emerges as the standard method for encoding signed integer numbers in binary format26.
| Binary | Signed magnitude | 1’s complement | 2’s complement |
|---|---|---|---|
![]() |
0 | 0 | 0 |
![]() |
1 | 1 | 1 |
![]() |
2 | 2 | 2 |
![]() |
3 | 3 | 3 |
![]() |
4 | 4 | 4 |
![]() |
5 | 5 | 5 |
![]() |
6 | 6 | 6 |
![]() |
7 | 7 | 7 |
![]() |
0 | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
0 | ![]() |
Negative Numbers: To convert negative decimal integer x to 2’s complement, we use the procedure below:
Obtain the binary representation of the corresponding positive number (
).Invert all qubits (change 0s to 1s and vice versa).
Add 1 to the result.
For example, 
.
Addition and subtraction: In the 2’s complement, addition and subtraction operations mirror those of their unsigned counterparts, with a crucial consideration for the number of qubits required to accommodate the result. For instance, adding two 4-qubit numbers in 2’s complement demonstrates this:
![]() |
The mistaken positive result from adding two negative numbers highlights the inadequacy of 4 qubits for representing
, which necessitates at least 5 qubits according to Eq. (13). By expanding the operands to 5 qubits we have:
![]() |
This adjustment accurately preserves the negative outcome, and the introduced qubit is termed an overflow qubit. Notably, in 2’s complement representation, extending a number necessitates the preservation of its sign, achieved by duplicating the MSQ before appending it, a rule named Sign Extension26.
Thus, effectively conducting addition and subtraction in 2’s complement entails:
Converting all numbers to 2’s complement, ensuring uniform qubit length.
Avoiding overflow by adding necessary overflow qubits, e.g., adding two 4-qubit numbers may require a 5th qubit for accurate representation. Therefore, we need to have at least 5 qubits.
Finally, carry out addition or subtraction using these extended representations. Note that in this context, subtraction, expressed as “
”, can be performed by adding “a” to the 2’s complement of “b”.
Multiplication: Suppose we have two numbers, m and k, represented in unsigned binary format. We can express these numbers as
and
, where,
and
are the individual qubits of m and k, taking values from the set
, and
and
represent the number of qubits used to represent m and k, respectively. The multiplication of m and k can be expressed as
. To perform this multiplication in a way compatible with 2’s complement representation, we can follow these steps:
First, convert both m and k into their respective 2’s complement representations.
Next, expand the representation of both numbers by adding overflow qubits to make them each consist of
qubits. Ensure that the added overflow qubits replicate the MSQ according to the sign extension rule.After extending the representations, carry out the standard binary multiplication.
For example, consider a scenario where we have a 3-qubit binary number m and a 4-qubit binary number k, and we wish to calculate the product
. If
and
, their binary representations would be
and
. Utilizing the sign extension rule and incorporating overflow qubits extends both numbers to 7 qubits. Thus, we get
and
. In unsigned binary, these extended versions of m and k denote 126 and 125, respectively. When these numbers are multiplied in their unsigned form, the result is
. This product can be represented in a 7-qubit binary format as
, which corresponds to 6 in 2’s complement notation.
Appendix B: Random oracle builder function
In this section, we present the pseudocode for the Random Oracle Builder function (Algorithm 2), which generates test vectors and their associated global minimum values to analyze our proposed algorithm.
Algorithm 2 generates a random, sparse vector rand_vec, where each non-zero element represents the amplitude of a computational basis state in the quantum superposition. These amplitudes are assigned randomly to simulate complex and challenging optimization problems. Unlike the equal superposition produced by applying an oracle
, where each computational basis state has a probability of
, our approach may produce probabilities less than
. This design intentionally introduces additional complexity to demonstrate the robustness and efficiency of the QGMF algorithm under more difficult conditions.
The vector rand_vec specifically represents the amplitudes assigned to non-zero computational basis states. Non-zero elements in the vector correspond to the possible values generated by the function (oracle), while zero elements indicate outcomes not produced. By creating a sparse quantum state with non-zero amplitudes assigned to only a subset of basis states, we increase the variability and complexity of the optimization problem. The sparsity of rand_vec is determined by selecting a random number of non-zero elements, generated using the following code snippet: num_ones = numpy.random.randint(1,
size/100
+ 2)
Here, size is
, which represents the total number of possible computational basis states for n qubits. This approach ensures that the quantum state remains sparse by including only a small proportion (approximately 1%) of non-zero elements, making the optimization task more challenging and realistic.
Algorithm 2.
Random oracle builder
Author contributions
M.S. and J.Z. both contributed to the conceptualization, methodology, and analysis throughout the research. M.S. took the lead in writing the majority of the code, while J.Z. focused on code design, data interpretation, and experimental setup. Both authors collaborated on writing the manuscript and preparing all figures. Each author reviewed the manuscript thoroughly before submission.
Data availability
The datasets generated and/or analysed during the current study are available in the GitHub repository, https://github.com/natanil-m/quantum_global_minimum_finder.
Declarations
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
These authors contributed equally: Mohammadreza Soltaninia and Junpeng Zhan.
References
- 1.Floudas, C. A. & Pardalos, P. M. State of the Art in Global Optimization: Computational Methods and Applications (Springer Science & Business Media, 2013). [Google Scholar]
- 2.Boyd, S., Vandenberghe, L. & Faybusovich, L. Convex optimization. IEEE Trans. Autom. Control51, 1859–1859. 10.1109/TAC.2006.884922 (2006). [Google Scholar]
- 3.Dixit, A. K. Optimization in Economic Theory[SPACE]https://academic.oup.com/book/0/chapter/420796084/chapter-pdf/52079915/isbn-9780198772101-book-part-1.pdf (Oxford University Press, 1990).
- 4.Ge, R., Huang, F., Jin, C. & Yuan, Y. Escaping from saddle points-online stochastic gradient for tensor decomposition. In Conference on Learning Theory, 797–842 (PMLR, 2015).
- 5.Choromanska, A., Henaff, M., Mathieu, M., Arous, G. B. & LeCun, Y. The loss surfaces of multilayer networks. In Artificial Intelligence and Statistics, 192–204 (PMLR, 2015).
- 6.Mahoor, M., Salmasi, F. R. & Najafabadi, T. A. A hierarchical smart street lighting system with brute-force energy optimization. IEEE Sens. J.17, 2871–2879 (2017). [Google Scholar]
- 7.Ploskas, N. & Sahinidis, N. V. Review and comparison of algorithms and software for mixed-integer derivative-free optimization. J. Glob. Optim. 1–30 (2022).
- 8.Ruder, S. An overview of gradient descent optimization algorithms. arXiv:1609.04747 [cs.LG] (2017).
- 9.Larson, J., Menickelly, M. & Wild, S. M. Derivative-free optimization methods. Acta Numer.28, 287–404. 10.1017/S0962492919000060 (2019). [Google Scholar]
- 10.Katoch, S., Chauhan, S. S. & Kumar, V. A review on genetic algorithm: past, present, and future. Multimed. Tools Appl.80, 8091–8126 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Clarke, F. H. Optimization and Nonsmooth Analysis (SIAM, 1990). [Google Scholar]
- 12.Knill, E. Quantum computing. Nature463, 441–443 (2010). [DOI] [PubMed] [Google Scholar]
- 13.Rajak, A., Suzuki, S., Dutta, A. & Chakrabarti, B. K. Quantum annealing: an overview. Philos. Trans. R. Soc. A Math. Phys. Eng. Sci.381, 10.1098/rsta.2021.0417 (2022). [DOI] [PubMed]
- 14.Albash, T. & Lidar, D. A. Adiabatic quantum computation. Rev. Mod. Phys.90, 015002. 10.1103/RevModPhys.90.015002 (2018). [Google Scholar]
- 15.Grover, L. K. A fast quantum mechanical algorithm for database search. In Symposium on the Theory of Computing (1996).
- 16.Zhu, J., Huang, Z. & Kais, S. Simulated quantum computation of global minima. Mol. Phys.107, 2015–2023. 10.1080/00268970903117126 (2009). [Google Scholar]
- 17.Brassard, G., Høyer, P., Mosca, M. & Tapp, A. Quantum amplitude amplification and estimation[SPACE]10.1090/conm/305/05215 (2002). [Google Scholar]
- 18.Zhan, J. Variational quantum search with shallow depth for unstructured database search. arXiv:2212.09505 [quant-ph] (2023).
- 19.Baritompa, W. P., Bulger, D. W. & Wood, G. R. Grover’s quantum algorithm applied to global optimization. SIAM J. Optim.15, 1170–1184. 10.1137/040605072 (2005). [Google Scholar]
- 20.Gilliam, A., Woerner, S. & Gonciulea, C. Grover adaptive search for constrained polynomial binary optimization. Quantum5, 428 10.22331/q-2021-04-08-428 (2021).
- 21.Bernstein, E. & Vazirani, U. Quantum complexity theory. SIAM J. Comput.26, 1411–1473. 10.1137/S0097539796300921 (1997). [Google Scholar]
- 22.Häner, T., Roetteler, M. & Svore, K. M. Optimizing quantum circuits for arithmetic. arXiv:1805.12445 [quant-ph] (2018).
- 23.Ruiz-Perez, L. & Garcia-Escartin, J. C. Quantum arithmetic with the quantum Fourier transform. Quantum Inf. Process.16, 1–14 (2017). [Google Scholar]
- 24.Zhan, J. Quantum multiplier based on exponent adder. arXiv:2309.10204 [quant-ph] (2023).
- 25.Seidel, R., Tcholtchev, N., Bock, S., Becker, C.K.-U. & Hauswirth, M. Efficient floating point arithmetic for quantum computers. IEEE Access10, 72400–72415 (2022). [Google Scholar]
- 26.Patterson, D. A. & Hennessy, J. L. Computer Organization and Design ARM Edition: The Hardware Software Interface (Morgan Kaufmann, 2016). [Google Scholar]
- 27.Bravo-Prieto, C. et al. Variational quantum linear solver. Quantum7, 1188. 10.22331/q-2023-11-22-1188 (2023).
- 28.Yuan, Y. et al. An improved qft-based quantum comparator and extended modular arithmetic using one ancilla qubit. New J. Phys.25, 103011. 10.1088/1367-2630/acfd52 (2023). [Google Scholar]
- 29.Zhang, X. M., Li, T. & Yuan, X. Quantum state preparation with optimal circuit depth: Implementations and applications. Phys. Rev. Lett.[SPACE]10.1103/PhysRevLett.129.230504 (2022). [DOI] [PubMed] [Google Scholar]
- 30.Zhan, J. Near-perfect reachability of variational quantum search with depth-1 ansatz. arXiv:2301.13224 [quant-ph] (2023).
- 31.Bergholm, V. et al. Pennylane: Automatic differentiation of hybrid quantum-classical computations. arXiv:1811.04968 (2022).
- 32.Soltaninia, M. & Zhan, J. Comparison of quantum simulators for variational quantum search: A benchmark study. arXiv:2309.05924 [quant-ph] (2023).
- 33.Song, G. & Klappenecker, A. Optimal realizations of controlled unitary gates. Quantum Inf. Comput.3, 139–156 (2002). [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The datasets generated and/or analysed during the current study are available in the GitHub repository, https://github.com/natanil-m/quantum_global_minimum_finder.
































































