
Farhi, E., Goldstone, J., Gutmann, S., Lapan, J., Lundgren,
A., and Preda, D. (2001). A Quantum Adiabatic Evo-
lution Algorithm Applied to Random Instances of an
NP-Complete Problem. Science, 292(5516):472–475.
Fern
´
andez-Campoamor, M., O’Meara, C., Cortiana, G.,
Peric, V., and Bernab
´
e-Moreno, J. (2021). Commu-
nity Detection in Electrical Grids Using Quantum An-
nealing.
Glover, F. (1989). Tabu Search—Part I. ORSA Journal on
Computing, 1(3):190–206.
Gurobi Optimization (2024). Gurobi Optimizer Reference
Manual.
Kea, K., Huot, C., and Han, Y. (2023). Leveraging Knap-
sack QAOA Approach for Optimal Electric Vehicle
Charging. IEEE Access, 11:109964–109973.
Kirkpatrick, S., Gelatt, C. D., and Vecchi, M. P. (1983).
Optimization by Simulated Annealing. Science,
220(4598):671–680.
Le Cadre, H., Jacquot, P., Wan, C., and Alasseur, C. (2020).
Peer-to-peer electricity market analysis: From vari-
ational to Generalized Nash Equilibrium. European
Journal of Operational Research, 282(2):753–771.
Lucas, A. (2014). Ising formulations of many NP problems.
Frontiers in Physics, 2.
Mastroianni, C., Plastina, F., Scarcello, L., Settino, J.,
and Vinci, A. (2024). Assessing Quantum Comput-
ing Performance for Energy Optimization in a Pro-
sumer Community. IEEE Transactions on Smart Grid,
15(1):444–456.
McGeoch, C. and Farr
´
e, P. (2021). The Advantage System:
Performance Update. Technical report.
Mohseni, N., Morstyn, T., Meara, C. O., Bucher, D.,
N
¨
ußlein, J., and Cortiana, G. (2024). A Competitive
Showcase of Quantum versus Classical Algorithms in
Energy Coalition Formation.
Muhsen, H., Allahham, A., Al-Halhouli, A. T., Al-
Mahmodi, M., Alkhraibat, A., and Hamdan, M.
(2022). Business model of peer-to-peer energy trad-
ing: A review of literature. Sustainability.
Nielsen, M. A. and Chuang, I. L. (2010). Quantum Compu-
tation and Quantum Information. Cambridge univer-
sity press, Cambridge, 10th anniversary edition edi-
tion.
O’Meara, C., Fern
´
andez-Campoamor, M., Cortiana, G., and
Bernab
´
e-Moreno, J. (2023). Quantum Software Ar-
chitecture Blueprints for the Cloud: Overview and
Application to Peer-2-Peer Energy Trading. In 2023
IEEE Conference on Technologies for Sustainability
(SusTech), pages 191–198.
Rajak, A., Suzuki, S., Dutta, A., and Chakrabarti,
B. K. (2023). Quantum Annealing: An Overview.
Philosophical Transactions of the Royal Society A:
Mathematical, Physical and Engineering Sciences,
381(2241):20210417.
Rønnow, T. F., Wang, Z., Job, J., Boixo, S., Isakov, S. V.,
Wecker, D., Martinis, J. M., Lidar, D. A., and Troyer,
M. (2014). Defining and detecting quantum speedup.
Science, 345(6195):420–424.
Sousa, T., Soares, T., Pinson, P., Moret, F., Baroche, T., and
Sorin, E. (2019). Peer-to-peer and community-based
markets: A comprehensive review. Renewable and
Sustainable Energy Reviews, 104:367–378.
Steiger, D. S., Rønnow, T. F., and Troyer, M. (2015). Heavy
Tails in the Distribution of Time to Solution for Classi-
cal and Quantum Annealing. Physical Review Letters,
115(23):230501.
Thurner, L., Scheidler, A., Sch
¨
afer, F., Menke, J.-H., Dol-
lichon, J., Meier, F., Meinecke, S., and Braun, M.
(2018). Pandapower—An Open-Source Python Tool
for Convenient Modeling, Analysis, and Optimization
of Electric Power Systems. IEEE Transactions on
Power Systems, 33(6):6510–6521.
van Apeldoorn, J., Gily
´
en, A., Gribling, S., and de Wolf, R.
(2020). Convex optimization using quantum oracles.
Quantum, 4:220.
APPENDIX
Table 2: Optimal hyperparameters for D-Wave.
case
9 14 24
chain strength factor 0.3 0.4 0.9
annealing time [µs] 10 20 20
To ensure fair benchmark comparison, we aim to de-
vote equal effort to hyperparameter optimization of
the individual solvers (Bucher et al., 2024a). Leap
cannot be fine-tuned, and Gurobi, as a commercial
solver, is also considered with default parameters.
Preliminary experiments showed little to no response
of TS to changing hyperparameters; hence, we do not
consider it in the following section. Instead, we only
consider SA and D-Wave in the following, whose re-
sults are summarized in Table 2.
Simulated Annealing
The most critical hyperparameter of SA is the num-
ber of Monte Carlo sweeps (num sweeps) computed
for a single sample. A larger number of sweeps re-
sults in better solutions, but the runtime for a single
sample of the algorithm is directly proportional to the
number of sweeps in the algorithm. Therefore, we
expect a TTS sweet spot when tuning num sweeps,
similar to Refs. (Rønnow et al., 2014; Steiger et al.,
2015). Indeed, Fig. 6 shows that the smaller instances
exhibit an optimal TTS of around 100 sweeps, while
case24 is optimal with around 1000 sweeps. For the
larger test cases, it was not really possible to estimate
the TTS correctly, as the samples were consistently
above the 5% error threshold. Hence, we heuristically
set increasing num sweeps for these instances: 5000
sweeps for case33 and case39 and 10000 for case57.
The second set of parameters investigated is the
Grid Cost Allocation in Peer-to-Peer Electricity Markets: Benchmarking Classical and Quantum Optimization Approaches
761