We have recently explored the use of a D-Wave quantum annealer to identify the ionic ground state of battery cathode materials, specifically lithium cobalt oxide (LCO) and lithium iron phosphate (LFP), by mapping the Coulomb energy of the system to an Ising Hamiltonian of binary site occupation variables (Figure 1). To simulate the materials at specified charging states, it is necessary to constrain the solution space to the targeted number of lithium ions. To this end, quadratic penalty terms are typically added to the energy cost function penalizing solutions that violate the constraints. For the cases studied, we found this approach to be impractical due to the large slope of the energy as a function of particle number, requiring very large quadratic bias that spoiled the success of QA. We solved this issue by introducing a Legendre transformation of the energy cost function in the Li-ion number. This grand-canonical transformation flattened the slope of the energy curve, which made it possible to implement the particle-number constraint with a weak quadratic bias and solve the ionic optimization problem on D-Wave quantum hardware. Similar constraints in particle numbers are ubiquitous in materials modeling, or, in the form of constraints for the Hamming weight, in general optimization problems. We thus expect our grand-canonical approach to be widely applicable.
Quantum annealing is limited to problems that can be represented by Ising-type Hamiltonians. To gain flexibility, our recent work explores the use of gate-based quantum algorithms, namely the quantum approximate optimization algorithm (QAOA), which can be motivated as a discretized form of quantum annealing. For sufficiently large number of layers, the QAOA process mimics an adiabatic state evolution and the output approaches the ground state solution (Figure 1c). Importantly, unlike QA, QAOA offers the possibility of a hard implementation of constraints by choosing mixing Hamiltonians that commutate with the constraint operator, e.g., an XY mixer for the particle-number constraint [4].
