Max Independent Set and Quantum Alternating Operator Ansatz
Zain H. Saleem

TL;DR
This paper investigates the application of the quantum alternating operator ansatz to the maximum independent set problem, analyzing its performance and behavior through simulations on various graphs.
Contribution
It provides the first detailed simulation analysis of the quantum alternating operator ansatz for MIS, highlighting the impact of circuit depth, initial states, and graph asymmetry.
Findings
Feasible states distribution is asymmetric for MIS, unlike Max-Cut.
Algorithm favors larger independent sets in asymmetric graphs.
Approximation ratios depend on initial state choices.
Abstract
The maximum independent set (MIS) problem of graph theory using the quantum alternating operator ansatz is studied. We perform simulations on the Rigetti Forest simulator for the square ring, , and graphs and analyze the dependence of the algorithm on the depth of the circuit and initial states. The probability distribution of observation of the feasible states representing maximum independent sets is observed to be asymmetric for the MIS problem, which is unlike the Max-Cut problem where the probability distribution of feasible states is symmetric. For asymmetric graphs it is shown that the algorithm clearly favors the independent set with the larger number of elements even for finite circuit depth. We also compare the approximation ratios for the algorithm when we choose different initial states for the square ring graph and show that it is dependent on the choice…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
MAX INDEPENDENT SET AND THE QUANTUM ALTERNATING OPERATOR ANSATZ
Zain H. Saleem
Argonne National Laboratory, 9700 S. Cass Ave., Lemont, IL 60439, USA
Abstract
The maximum independent set (MIS) problem of graph theory using the quantum alternating operator ansatz is studied. We perform simulations on the Rigetti Forest simulator for the square ring, , and graphs and analyze the dependence of the algorithm on the depth of the circuit and initial states. The probability distribution of observation of the feasible states representing maximum independent sets is observed to be asymmetric for the MIS problem, which is unlike the Max-Cut problem where the probability distribution of feasible states is symmetric. For asymmetric graphs it is shown that the algorithm clearly favors the independent set with the larger number of elements even for finite circuit depth. We also compare the approximation ratios for the algorithm when we choose different initial states for the square ring graph and show that it is dependent on the choice of the initial state.
I Introduction
The quantum computation community has been expressing growing interest in developing algorithms that can be implemented on near-term quantum machines preskil . Several hybrid classical-quantum algorithms farhi2014 ; perruzo ; moll have been proposed that can take advantage of the available quantum resources in the presence of noisy gates and small decoherence times. The Quantum Approximate Optimization Algorithm (QAOA) farhi2014 and the Variational Quantum Eigensolver (VQE) perruzo are two such classical-quantum algorithms. QAOA has been put forward to tackle combinatorial optimization problems, and the VQE algorithm has application in quantum chemistry problems where the ground state of a wave function needs to be determined. The VQE algorithm is used as a subroutine in QAOA.
In most of the hybrid algorithms the quantum part of the algorithm involves preparing a quantum circuit, and the classical part involves optimization. In the Quantum Approximate Optimization Algorithm a quantum state is created by a p-depth circuit specified by 2p variational parameters. The algorithm has been shown to be not efficiently simulatable classically even at the lowest p=1 depth farhi2016 . QAOA is thus a good candidate algorithm to study quantum advantage on near-term quantum machines. Although one can theoretically prove the success of QAOA in the limit as it approximates adiabatic quantum annealing farhi2014 in that limit, little is known about its performance when .
A significant amount of work on QAOA has been done in the context of the Max-Cut problem, which is an unconstrained optimization problem. However, not much work has been done on constrained combinatorial optimization problems in the quantum algorithms context shengtao . The maximum independent set (MIS) problem is considered an “unconstrained optimization” problem. Unlike the Max-Cut problem, in which all the states are feasible, the feasible states in the MIS problem consist of a subset of the configuration space. For such “constrained optimization” problems a quantum alternating operator ansatz stuart2017 ; shengtao has been proposed. In this paper we present a simulation of the quantum alternating operator ansatz on the Rigetti Forest simulator riggeti .
II Quantum Approximate Optimization Algorithm
The QAOA algorithm was proposed for unconstrained discrete optimization problems, such as Max-Sat, Max-Cut, and Max-Clique. Formally, consider
[TABLE]
where denotes a binary label and is the th binary clause. The goal in optimization problems is to find a binary vector that maximizes the number of satisfied clauses .
For unconstrained combinatorial optimization problems the quantum state is typically initialized to the superposition state . For the cost Hamiltonian , let denote a unitary operator with an angle , defined by
[TABLE]
We also define a driver Hamiltonian , which flips qubits independently. The unitary operator for the Hamiltonian with an angle is defined as
[TABLE]
The ground state of the driver Hamiltonian is . The quantum approximate optimization algorithm uses an alternating quantum circuit of depth depending on Hamiltonians and to maximize the expected cost function, with angle parameters and :
[TABLE]
If we denote expectation of the cost function as ,
[TABLE]
and let be the maximum of over the angles, , the objective of QAOA algorithm is to maximize by properly choosing parameters . The approximation improves as we increase , and at infinite depth we have . The expectation is calculated by repeated measurements on quantum computers. The variational parameters are optimized on classical computers, for example, by using the Nelder–Mead method as part of the VQE subroutine.
III Max-Cut
The Max-Cut combinatorial optimization problem is stated as follows: Given a graph with nodes and edges , find a subset such that the number of edges between and is maximized. Finding an exact solution for the Max-Cut problem is NP-hard karp1972a , but efficient polynomial-time classical algorithms do exist that find an approximate answer within some fixed factor of the optimum solution.
To apply the QAOA algorithm on the Max-Cut problem, we first encode the graph of the particular problem instance into a cost Hamiltonian for which any bit string gives an energy that is the negative of the number of the cut edges. Such a cost Hamiltonian is given by
[TABLE]
Here is the Pauli Z matrix applied to qubit , is the set of edges, and is the adjacency matrix of the graph, with if nodes are connected and zero otherwise. Since this is an unconstrained optimization problem, the initial state is prepared as a uniform superposition of all the bit strings. The mixing Hamiltonian is just a sum of the Pauli matrices acting on the th qubit.
[TABLE]
III.1 Simulation of Max-Cut QAOA
We simulate the QAOA algorithm on the Rigetti Forest simulator riggeti . The simulations are performed without including the noisiness of the gates. The variational quantum eigensolver subroutine is used to find the optimized parameters and . Within the VQE we use the classical Nelder–Mead method. The algorithm is run over 50 iterations, and the arithmetic averages of the probabilities of the states over these 50 iterations is calculated.
We choose the square ring, , and graphs given in Figures 3–3 for our simulations. For the square ring graph the Max-Cuts are the and sets corresponding to the and states, respectively. For the graph, the Max-Cuts are and corresponding to the and states, respectively. Similarly for the states the Max-Cuts are the and sets corresponding to the and states, respectively. Since this is an unconstrained optimization problem, every set is a cut and represents a feasible solution. However, we expect to see the peaks in the probability distribution at the states representing the Max-Cuts.
The results of the simulation for the three graphs (square ring, , and ) are provided in Figure 4. One can see that the peaks are located at the Max-Cut solutions. For small values of , other solutions also contribute; but as the value of is increased, the Max-Cut solutions dominate, and all other peaks disappear from the distribution. We also note that the probability distribution is symmetric in the Max-Cut and the feasible solutions.
IV Quantum Alternating Operator Ansatz
A general QAOA circuit is defined by two parameterized families of operators: a family of phase separation operators that depends on the cost function and a family of that depends on the domain and its structure. In the earlier implementation of unconstrained QAOA the feasible set of states consisted of the entire configuration space, and therefore the mixing operator in the algorithm was . The constrained optimization problems, however, require optimization over feasible solutions that are typically a subset of a configuration space. The feasible solution set is specified by a set of Boolean functions (hard constraints) that are satisfied by the feasible solutions. If the mixing operators preserve feasibility, then given a feasible initial state, the QAOA algorithm will produce a final state that, when measured, gives a feasible solution. This is achieved by the quantum alternating operator ansatz, which comprises three main components: the initial state, the phase operators, and the mixing operators. The initial state must be feasible, and it must be trivial to implement such that it can be created by a constant depth quantum circuit from the state. The family of mixing unitaries are required to take feasible states to feasible states for all values of parameters and must also provide transitions between all feasible solutions. For an objective function we define to be the Hamiltonian that acts as on basis states The phase separation operators are required to be diagonal in the computational basis, and therefore the phase separation unitary is defined as up to trivial global phase terms.
V Maximum Independent Set
Consider a graph , with the set of nodes of the graph and the set of edges. Let be the neighbors of the node in . Positive weights are associated with each node . A subset of is represented by a vector , where means is in the subset and means is not in the subset. A subset x is called an independent set if no two nodes in the subset are connected by an edge: for all . The maximum independent set is the independent set with the largest number of nodes. We are interested in finding a maximum weighted independent set .
No known polynomial-time classical algorithm solves the maximum independent set unless P=NP Tre . The best algorithm known for general graphs give approximations within a polynomial factor. MIS can be approximated to a2 on bounded-degree graphs with maximum degree , but it still remains APX-complete a3 . The best-known classical algorithm for the weighted maximum independent set is the greedy local search algorithm chandra , which also gives a polynomial factor approximation.
The three QAOA components for this maximum independent set problem are as follows.
- •
Initial state: The initial state can be the trivial state or any state representing the independent set.
- •
Phase separation Hamiltonian: The objective function counts the number of vertices in , and the Hamiltonian corresponding to the function is
[TABLE]
- •
Mixing Hamiltonian: When constructing the mixing Hamiltonian, we note two points: (1) given an independent set , adding a vertex to preserves feasibility only if none of the neighbors of are already in ; and (2) we can always remove any vertex without affecting the feasibility of the state. The transformation rule that preserves the feasibility is to flip the bit if and only if , where are the vertices adjacent to . Keeping these observations in mind, we can construct the following Hamiltonian: , where
[TABLE]
This is the Hamiltonian-based implementation of the mixing unitaries. A sequential implementation of the mixing unitaries is provided in stuart2017 and has some advantages, but we will leave that implementation for later work.
V.1 Simulation of Maximum Independent Set
The domain in the MIS problem is the n-bit strings corresponding to the independent sets in . We again simulate the quantum alternating operator ansatz for the square ring, , and graphs. In the case of the MIS problem, not all sets are feasible solutions of the problem. For example, in the square ring graph, the independent sets are , and corresponding to the states , and , respectively. All other sets are not feasible solutions. Two maximum independent sets in the square ring graph correspond to and . For the graph, the maximum independent sets are and corresponding to the and states, respectively. Similarly for the states the maximum independent sets are the and sets corresponding to the and states, respectively.
Below we present the results of our simulations. The MIS problem differs from the MAX-Cut problem in two crucial ways. (1) The probability distribution of the states is asymmetric. This is due to the asymmetry in the mixing operator. Unlike the Max-Cut problem where the mixing operator acts symmetrically on all qubits, in the MIS problem the mixing operator acts asymmetrically. (2) The initial state in the MIS problem can be any of the independent sets. In the Max-Cut problem the choice of the initial state was obvious, whereas in the independent set problem we can choose any of the independent sets as the initial state.
Asymmetric probability distribution: We analyze the probability distribution for the three graphs: square ring, , and . The initial state we use is the same empty set state for the three graphs. As expected, the probability distributions shown in Figure 5 are asymmetric in all three cases. As the value of is increased, however, the distributions become more symmetric. The reason is that increasing allows more mixing to take place between the feasible solutions.
The square ring and graphs are symmetric whereas the graph is an asymmetric graph. We note that for the graph, even when (finite circuit depth), the contribution from the independent set containing a larger number of elements is considerably larger than from any other set.
Dependence on initial states: We also check the dependence of the outcome of our quantum approximate optimization algorithm on the choice of initial states. Here we analyze only the square ring graph. In the experiments that tested the dependence of the algorithm on the circuit depth and asymmetry of the probability distribution, we used the zero state (empty set) as our initial state. Here we run our simulations with the and initial states.
We can see that for lower values of the initial state dominates the probability distribution. As the value of is increased, however, the distribution becomes more and more symmetrical.
VI Initial States and Approximation Ratio
The analytical calculation of is tricky for the MIS problem even on bounded-degree graphs because the mixing Hamiltonian contains the exponential of noncommuting Pauli matrices. We therefore calculate numerically the expectation of the cost function for the square ring graph. Let us define . For we have to calculate , where is the initial state. We perform the numerical calculation for different choices of initial states. The expectation values for the independent sets (IS’s) , , , and are the same, and the expectation values for the maximal independent sets and are the same. For the minimum depth QAOA circuit and we plot as cancels out of the expectation value.
[TABLE]
The maximum value for the expectation , and for the MIS’s, empty set, and IS’s, respectively. We note that the approximation ratio is better for the empty set compared with the independent set states.
VII Conclusion
We have studied the maximum weighted independent set problem using the quantum alternating operator ansatz. We note that the probability distribution of observance of the maximum independent states is asymmetric; in contrast, the probability distribution of the Max-Cut states is symmetrically distributed. We also calculated the approximation ratios for our graph for different initial states. In this paper we considered a simple graph and observed the differences with the unconstrained problem.
Much more research is needed in order to understand our results analytically. We intend to run the experiments on larger graphs with larger circuit depths; and as the parameter space increases, it will be useful to understand improvements that can be made in the classical parameter optimization algorithms. We also plan to execute the algorithm on a quantum computer and see how far we can push it on a noisy intermediate-scale quantum device (NISQ).
Acknowledgments: I thank Stuart Hadfield and Shengtao Wang for valuable discussions. This material was based upon work supported by the U.S. Department of Energy, Office of Science, under contract DE-AC02-06CH11357.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1(1) J. Preskill, Quantum 2, 79 (2018)
- 2(2) E. Farhi, J. Goldstone, and S. Gutmann, (2014), ar Xiv:1411.4028.
- 3(3) A. Peruzzo, J. Mc Clean, P. Shadbolt, M.-H. Yung, X.-Q. Zhou, P. J. Love, A. Aspuru-Guzik, and J. L. O Brien, Nature Communications 5, 4213 (2014).
- 4(4) N. Moll, P. Barkoutsos, L. S. Bishop, J. M. Chow, A. Cross, D. J. Egger, S. Filipp, A. Fuhrer, J. M. Gambetta, M. Ganzhorn, A. Kandala, A. Mezzacapo, P. Muller, W. Riess, G. Salis, J. Smolin, I. Tavernelli, and K. Temme, Quantum Science and Technology 3, 030503 (2018).
- 5(5) E. Farhi and A. W. Harrow, (2016), ar Xiv:1602.07674
- 6(6) S. Hadfield, Z. Wang, B. O Gorman, E. G. Rieffel, D. Venturelli, and R. Biswas, ar Xiv:1709.03489.
- 7(7) H Pichler, ST Wang, L Zhou, S Choi, MD Lukin ar Xiv preprint ar Xiv:1808.10816
- 8(8) Luca Trevisan, Technical Report TR 04-065, Electronic Colloquium on Computational Complexity, 2004.
