Towards Finding an Optimal Flight Gate Assignment on a Digital Quantum Computer
Yahui Chai, Lena Funcke, Tobias Hartung, Karl Jansen, Stefan Kuehn,, Paolo Stornati, Tobias Stollenwerk

TL;DR
This paper explores using a quantum algorithm called VQE to solve the airport gate assignment problem, showing promising results and better performance with entanglement, indicating potential for quantum optimization in complex logistical tasks.
Contribution
The paper introduces a qubit-efficient binary encoding and applies CVaR-VQE to the gate assignment problem, demonstrating improved solution quality and favorable scaling on classical simulations.
Findings
CVaR-VQE outperforms naive VQE in solution quality
Entangling gates improve the performance of the ansatz
Scaling of cost function calls is not exponential in tested regimes
Abstract
We investigate the performance of the variational quantum eigensolver (VQE) for the optimal flight gate assignment problem. This problem is a combinatorial optimization problem that aims at finding an optimal assignment of flights to the gates of an airport, in order to minimize the passenger travel time. To study the problem, we adopt a qubit-efficient binary encoding with a cyclic mapping, which is suitable for a digital quantum computer. Using this encoding in conjunction with the Conditional Value at Risk (CVaR) as an aggregation function, we systematically explore the performance of the approach by classically simulating the CVaR-VQE. Our results indicate that the method allows for finding a good solution with high probability, and the method significantly outperforms the naive VQE approach. We examine the role of entanglement for the performance, and find that ans\"atze with…
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.
Towards Finding an Optimal Flight Gate Assignment on a Digital Quantum Computer
Yahui Chai
Deutsches Elektronen-Synchrotron DESY, Platanenallee 6, 15738 Zeuthen, Germany
Lena Funcke
Transdisciplinary Research Area “Building Blocks of Matter and Fundamental Interactions” (TRA Matter) and Helmholtz Institute for Radiation and Nuclear Physics (HISKP), University of Bonn, Nußallee 14-16, 53115 Bonn, Germany
Center for Theoretical Physics, Co-Design Center for Quantum Advantage, and NSF AI Institute for Artificial Intelligence and Fundamental Interactions, Massachusetts Institute of Technology, 77 Massachusetts Avenue, Cambridge, MA 02139, USA
Tobias Hartung
Northeastern University - London, Devon House, St Katharine Docks, London, E1W 1LP, United Kingdom
Karl Jansen
Deutsches Elektronen-Synchrotron DESY, Platanenallee 6, 15738 Zeuthen, Germany
Stefan Kühn
Deutsches Elektronen-Synchrotron DESY, Platanenallee 6, 15738 Zeuthen, Germany
Computation-based Science and Technology Research Center,The Cyprus Institute, 20 Kavafi Street, 2121 Nicosia, Cyprus
Paolo Stornati
ICFO-Institut de Ciencies Fotoniques, The Barcelona Institute of Science and Technology, Av. Carl Friedrich Gauss 3, 08860 Castelldefels (Barcelona), Spain
Tobias Stollenwerk
Institute for Quantum Computing Analytics (PGI-12), Forschungszentrum Jülich, Wilhelm-Johnen-Straße, 52428 Jülich, Germany
Abstract
We investigate the performance of the variational quantum eigensolver (VQE) for the optimal flight gate assignment problem. This problem is a combinatorial optimization problem that aims at finding an optimal assignment of flights to the gates of an airport, in order to minimize the passenger travel time. To study the problem, we adopt a qubit-efficient binary encoding with a cyclic mapping, which is suitable for a digital quantum computer. Using this encoding in conjunction with the Conditional Value at Risk (CVaR) as an aggregation function, we systematically explore the performance of the approach by classically simulating the CVaR-VQE. Our results indicate that the method allows for finding a good solution with high probability, and the method significantly outperforms the naive VQE approach. We examine the role of entanglement for the performance, and find that ansätze with entangling gates allow for better results than pure product states. Studying the problem for various sizes, our numerical data show that the scaling of the number of cost function calls for obtaining a good solution is not exponential for the regimes we investigate in this work.
††preprint: MIT-CTP/5484
I Introduction
In recent years, variational quantum algorithms (VQAs) Peruzzo et al. (2014); McClean et al. (2016); Cerezo et al. (2021) have become increasingly relevant due to substantial progress in quantum hardware development. Such algorithms typically do not require deep quantum circuits that could only be faithfully executed on fully error-corrected quantum computers. Instead, they are amenable to noisy intermediate-scale quantum (NISQ) devices (see, e.g., Refs. Peruzzo et al. (2014); Kandala et al. (2017); Kokail et al. (2019); Hartung and Jansen (2019); Hempel et al. (2018); Barkoutsos et al. (2020); Atas et al. (2021); Mohammadbagherpoor et al. (2021) for various proof-of-principle demonstrations). While such algorithms are typically heuristics without proven performance guarantees, there are indications that VQAs can outperform classical algorithms for certain computationally hard problems. Besides various applications for quantum simulations, the solution of combinatorial optimization problems are further candidates of widespread applications that can be tackled with VQAs Farhi et al. (2014).
In order to assess the potential of VQA approaches for real-world applications, it can be useful to investigate applications beyond purely academic problems and to focus on certain industrial use-cases, as they typically exhibit additional complexity. One such example is the flight-gate assignment (FGA) problem Kim et al. (2017); Stollenwerk et al. (2019). The FGA problem is a quadratic assignment problem Finke et al. (1987) with additional constraints, as typical for real-world applications. Previous works mainly investigated the solution of the FGA problem Stollenwerk et al. (2019) and related problems Venturelli et al. (2016); Stollenwerk et al. (2020a, 2021) with quantum annealers. Here, the constraints are incorporated into an unconstrained cost function by penalty terms. These approaches have a number of disadvantages, one of which is the typically exponentially small subspace of valid solutions in the entire Hilbert space Stollenwerk et al. (2021). One method for mitigating this issue is to constrain the algorithm to only search the feasible subspace. This idea was originally proposed for quantum annealing Hen and Spedalieri (2016) and later adapted to variational algorithms Hadfield et al. (2019); Mohammadbagherpoor et al. (2021). The applicability of the latter approach for FGA was investigated by deriving suitable algorithmic primitives for constraint invariance Stollenwerk et al. (2020b). Reference Mohammadbagherpoor et al. (2021) implemented a proof-of-principle VQE for the FGA problem using an encoding incorporating some of the constraints on IBM’s quantum hardware, thus demonstrating the suitability of problem for digital quantum devices.
In this paper, we systematically assess the performance of VQE for the FGA problem, by numerically studying its performance using the Conditional Value at Risk (CVaR) Barkoutsos et al. (2020) as an aggregation function. We adopt an encoding that avoids a dominant subspace of invalid solutions, which is similar to the one of Ref. Mohammadbagherpoor et al. (2021), with the addition of a cyclic mapping. Our study demonstrates that utilizing this encoding, the CVaR-VQE performs significantly better than the naive encoding used in previous works. From classically simulating the CVaR-VQE for various problem sizes up to 18 qubits, our results indicate that the number of cost function calls to obtain a reasonably large contribution of the optimal solution in the final state does not scale exponentially with the problem size. Furthermore, we examine the role of entangling gates in the ansatz. Our results demonstrate that ansätze creating entanglement between qubits show a significantly better performance than circuits preparing only product states.
The paper is organized as follows. In Sec. II, we first introduce the FGA problem, before discussing the one-hot encoding and the binary encoding of the problem. Subsequently, we discuss the CVaR-VQE method and the types of ansätze we use in our simulations in Sec. III. Section IV shows our numerical results for classically simulating the CVar-VQE for various problem sizes, and a comparison between entangling ansätze and ansätze that only produce product states. Finally, we conclude in Sec. IV.
II The flight-gate assignment problem and its encoding into quantum states
In this section, we first introduce the FGA problem and then proceed with discussing two ways of encoding the problem into quantum states: the one-hot encoding, which does not incorporate any of the constraints, and a binary encoding that integrates some of the constraints.
II.1 The flight-gate assignment problem
The FGA problem aims at minimizing the total transit time of passengers in an airport by finding an optimal gate assignment of the flights. Although there are multiple scenarios for optimizing the gate assignment of flights at an airport, we choose the one where we seek to minimize the total transfer time of passengers at the airport Kim et al. (2017). In this scenario, we have three kinds of passengers in an airport: arriving passengers, departing passengers, and transfer passengers. The arriving passengers land at the airport with an inbound flight and need to walk from the arrival gate to the baggage claim before leaving the airport. Departing passengers enter the airport through the security checkpoint and leave with an outbound flight. Transfer passengers arrive at the airport with an inbound flight, have to walk to the gate of their connecting flight, and leave with an outbound flight. To model the problem mathematically given a set of flights and a set of gates , we consider a set of binary decision variables that represent whether a flight is assigned to a gate or not:
[TABLE]
Throughout the paper, we refer to gates with Greek indices, to flights with Latin indices, and is a binary vector collecting all of the decision variables. The total passenger travel time can then be expressed as a function of and is given by
[TABLE]
where the three parts arise from the contributions of the different types of passengers. The time represents the total transit time of arriving/departing passengers and is given by the partial sums
[TABLE]
where is the number of passengers arriving/departing with flight , and is the time it takes to walk from/to gate . The total time of the transfer passengers is given by the sum of the times that it takes to go from gate to gate for each of the passengers who transfer from flight to flight (or vice versa), given that flight is assigned to gate and flight is assigned to gate ,
[TABLE]
Note that contains a term quadratic in the decision variables. Thus, minimizing the total time in Eq. (2) is an instance of a quadratic assignment problem, which are in general NP-hard Garey and Johnson (1979).
In addition, there are two constraints in the FGA problem. Firstly, each flight can only be assigned to one gate, so there can only be a single non-zero decision variable among those belonging to the same flight. This constraint can be enforced by imposing
[TABLE]
Secondly, there can be at most a single flight at a gate at the same time, because flights departing at the same time from the airport cannot be assigned to the same gate. This can be expressed as
[TABLE]
where is the set of forbidden flight pairs,
[TABLE]
In the expression above, is the time of arrival/departure of flight , and is a buffer time between two flights at the same gate. In the following, we refer to an assignment of the decision variables fulfilling the two constraints above as a feasible assignment.
The encoding presented above requires decision variables for each flight , which can be interpreted as a bit string. The constraint in Eq. (5) then implies that only a single entry in such a bit string can be nonzero. Hence, we call the encoding presented above the one-hot encoding. Since for each flight only assignments of the corresponding decision variables are compliant with the constraint in Eq. (5), the total number of feasible assignments is upper bounded by .
II.2 Hamiltonian formulation using the one-hot encoding
In order to treat the problem on a quantum computer, we have to formulate the problem as a (quantum) Hamiltonian. In order to minimize the objective function subject to the constraints in Eqs. (5) and (6), we want to incorporate the constraints in the objective function. To this end, we translate them to positive semidefinite penalty terms whose kernel corresponds to valid solutions fulfilling the constraints. These penalty terms can then simply be added to the objective function with a large positive constant in front, thus ensuring that the global minimum is the optimal solution fulfilling the constraints.
Equation (5) can be represented as a penalty term,
[TABLE]
while the second constraint in Eq. (6) can be formulated as
[TABLE]
Considering both the objective function and the penalty terms, the total cost function can be formulated as a Quadratic Unconstrained Binary Optimization (QUBO) problem:
[TABLE]
In the equation above, , , and are the coefficients of the corresponding terms, which depend on , , , and . The explicit formulas of these coefficients are shown in Eq. (20) of Appendix A. The parameters and are constants that have to be chosen large enough to ensure the solution of the QUBO problem above satisfies the constraints. For practical purposes, the values of these parameters might have to be set carefully to make the optimization procedure efficient Stollenwerk et al. (2019).
In order to solve this problem using a quantum device, the QUBO problem has to be mapped to a Hamiltonian acting on qubits. This can be easily realized by replacing the binary decision variables in with the operators , where is the identity and is the Pauli -matrix acting on the qubit that encodes the decision variable . Substituting this transformation into the QUBO problem in Eq. (10), we obtain the (quantum) Hamiltonian
[TABLE]
where and , , and are coefficients related to the ones of the original QUBO problem (see Eq. (22) in Appendix A for details). The bit strings are now encoded by a computational basis state , and we call a feasible state if represents a feasible assignment. The optimal solution of the FGA problem subject to the constraints corresponds to the ground state of the Hamiltonian above. By construction, the ground state will be a computational basis state since is diagonal in the -basis.
Note that in the encoding presented above, each decision variable is mapped to a single qubit. Hence, a total number of qubits are required to address the problem on a quantum computer. However, only of the basis states correspond to an assignment for which Eq. (8) is zero. Hence, the fraction of states in the Hilbert space fulfilling the first constraint, and correspondingly the number of feasible states, will decay exponentially with the problem size:
[TABLE]
As a result, searching for the optimal solution will become increasingly challenging for increasing numbers of flights and gates.
II.3 Hamiltonian formulation using a binary encoding
In order to avoid this exponential decay of the feasible subspace, we use a binary encoding for the FGA problem and derive the corresponding Hamiltonian, which is similar to the efficient embedding in Ref. Mohammadbagherpoor et al. (2021). In addition, we use a more efficient cyclic mapping as shown below.
As we have discussed in Sec. II.1, there are assignments compliant with the first constraint in Eq. (5) for the decision variables corresponding to each flight. These assignments can be represented with (qu)bits using a binary encoding. Since is in general not a power of 2, we choose to map the elements in to the basis states cyclically as
[TABLE]
where . In contrast, the previous work in Ref. Mohammadbagherpoor et al. (2021) added a penalty term for the additional states , in case is not a power of 2. However, this will lead to an exponential decay with for the fraction of feasible states, as these are given by . The cyclic mapping used in this work can avoid this exponential decay of feasible states and will usually lead to many degenerate ground states, rendering it easier to find an optimal solution. All in all, for a total of flights, this encoding allows us to represent all possible assignments with qubits, a lot less than that required for the one-hot encoding. Moreover, by construction, all solutions in this encoding automatically fulfill the constraint in Eq. (5).
In order to be able to solve the problem on a quantum computer using a VQA, we have to translate the Hamiltonian in Eq. (11) to this encoding. To this end, we define a set of projection operators , given by
[TABLE]
In the expression above, is the bit string for the binary representation of and the index indicates the set of qubits related to flight , on which the projection operators are acting on. Applying to one of the basis states encoding the solutions compliant with the first constraint for flight results in a , if and only if flight is assigned to gate , . Using these projection operators, the Hamiltonian can be expressed as
[TABLE]
where the individual terms are given by
[TABLE]
In the expression above, and refer to the gate indices after applying the mapping from Eq. (13). Note that we no longer have to impose the first constraint from Eq. (5) with a penalty term anymore, as it is fulfilled by construction. Moreover, the Hamiltonian can be easily decomposed into Pauli operators using the relation
[TABLE]
where we have chosen a linear ordering of the qubits.
The binary encoding with cyclic mapping still allows for unfeasible states, as the second constraint from Eq. (6) is not automatically fulfilled. Compared to the exponential decay observed for the one-hot encoding, the ratio of feasible solutions for the binary encoding is a lot larger, and it decays only very slowly with problem size, as shown in Fig. 1.
In conjunction with its reduced qubit requirements, the binary encoding with cyclic mapping is significantly more amenable for NISQ devices, which provide only limited resources. The Hamiltonian corresponding to the binary encoding consists of Pauli -terms with order or less, meaning that each Pauli -term only acts nontrivially on at most qubits. Thus, the expectation value of the Hamiltonian can be evaluated efficiently on a quantum computer.
III Variational quantum eigensolver using the conditional value at risk
The VQE is a hybrid quantum-classical algorithm for finding an approximation to the ground state of a given Hamiltonian by minimzing . Here, is a normalized ansatz state, which is parametrized by real numbers . To find an optimal set of parameters, the VQE utilizes of a feedback loop between a quantum device and a classical computer. The former is used to realize a variational ansatz in form of a parametric quantum circuit, and to measure the expectation value of the Hamiltonian. The classical computer is running a minimization algorithm suggesting a new set of parameters based on the measurement outcome of the quantum device. Running the feedback loop until convergence, the parametric circuit encodes an approximation of the ground state of the given Hamiltonian. Due to its modest quantum hardware requirements, and its partial resilience to noise, the VQE is one of the most promising candidates for applications on NISQ devices. While the VQE was originally proposed for finding the ground state of a molecule Peruzzo et al. (2014), it can be readily applied to many other fields (see, e.g., Refs. Kokail et al. (2019); Paulson et al. (2021); Avkhadiev et al. (2020); Mazzola et al. (2021); Tilly et al. (2022)).
In particular, the VQE has been proposed to solve combinatorial optimization problems Amaro et al. (2022); Nannicini (2019); Mugel et al. (2022). Contrary to strongly-correlated quantum many-body systems, for combinatorial optimization problems the problem Hamiltonian is diagonal and the possible solutions correspond to basis states. Since we are only interested in obtaining a good candidate for the solution of the combinatorial optimization problem, the resulting state at the end of the VQE does not necessarily have to be dominated by the state encoding this solution. As long as it produces a state that has a reasonably large component of such a solution, the projective measurements at the end will reveal it, provided enough measurements are taken. Due to this property, Ref. Barkoutsos et al. (2020) argued that the CVaR is better suited as a cost function for combinatorial optimization problems than the expectation value of the Hamiltonian. The CVaR for a random variable with the cumulative density function is defined as the conditional expectation over the left -tail of the distribution,
[TABLE]
where . This can be applied to VQE by considering only a subset of the samples obtained during the measurement process. Suppose we perform measurements resulting in the bit strings and the corresponding energy values . Assuming the energy values are sorted in ascending order, the CVaR can be calculated as
[TABLE]
Note that for the is nothing but the usual estimate for the expectation value with samples. In the opposite limit, , the corresponds to selecting the measurement that produced the lowest energy. Moreover, the definition in Eq. (19) shows that the does essentially not reward increasing the fidelity of the VQE solution with the ground state beyond , as we only consider the subset of the measurements with the lowest energy.
In the following, we use VQE with the as a cost function to address the FGA problem. In particular, we explore the performance for various choices of as a function of problem size.
IV Simulation results
In order to explore the performance of the VQE using the CVaR for the FGA problem, we perform classical simulations using the Qiskit tA-v et al. (2021) framework, assuming a perfect quantum device without shot noise, which means we evaluate the cost function exactly. For our experiments, we use the EfficentSU2 ansatz from Qiskit consisting of parametric rotation gates and linear entangling layers of CNOT gates (see Fig. IV for an illustration).
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Peruzzo et al. (2014) Alberto Peruzzo, Jarrod Mc Clean, Peter Shadbolt, Man-Hong Yung, Xiao-Qi Zhou, Peter J Love, Alán Aspuru-Guzik, and Jeremy L O’brien, “A variational eigenvalue solver on a photonic quantum processor,” Nat. Commun. 5 , 1–7 (2014) . · doi ↗
- 2Mc Clean et al. (2016) Jarrod R Mc Clean, Jonathan Romero, Ryan Babbush, and Alán Aspuru-Guzik, “The theory of variational hybrid quantum-classical algorithms,” New J. Phys. 18 , 023023 (2016) . · doi ↗
- 3Cerezo et al. (2021) Marco Cerezo, Andrew Arrasmith, Ryan Babbush, Simon C Benjamin, Suguru Endo, Keisuke Fujii, Jarrod R Mc Clean, Kosuke Mitarai, Xiao Yuan, Lukasz Cincio, et al. , “Variational quantum algorithms,” Nat. Rev. Phys. 3 , 625–644 (2021) . · doi ↗
- 4Kandala et al. (2017) Abhinav Kandala, Antonio Mezzacapo, Kristan Temme, Maika Takita, Markus Brink, Jerry M. Chow, and Jay M. Gambetta, “Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets,” Nature 549 , 242–246 (2017) . · doi ↗
- 5Kokail et al. (2019) Christian Kokail, Christine Maier, Rick van Bijnen, Tiff Brydges, Manoj K. Joshi, Petar Jurcevic, Christine A. Muschik, Pietro Silvi, Rainer Blatt, Christian F. Roos, and Peter Zoller, “Self-verifying variational quantum simulation of the lattice schwinger model,” Nature 569 , 355 (2019) . · doi ↗
- 6Hartung and Jansen (2019) Tobias Hartung and Karl Jansen, “Zeta-regularized vacuum expectation values,” J. Math. Phys. 60 , 093504 (2019) . · doi ↗
- 7Hempel et al. (2018) Cornelius Hempel, Christine Maier, Jonathan Romero, Jarrod Mc Clean, Thomas Monz, Heng Shen, Petar Jurcevic, Ben P. Lanyon, Peter Love, Ryan Babbush, Alán Aspuru-Guzik, Rainer Blatt, and Christian F. Roos, “Quantum chemistry calculations on a trapped-ion quantum simulator,” Phys. Rev. X 8 , 031022 (2018) . · doi ↗
- 8Barkoutsos et al. (2020) Panagiotis Kl. Barkoutsos, Giacomo Nannicini, Anton Robert, Ivano Tavernelli, and Stefan Woerner, “Improving variational quantum optimization using C Va R,” Quantum 4 , 256 (2020) . · doi ↗
