Quzzi

Quantum Annealing Optimization Coding

Access Quantum Computing from Excel

07 Jan 2022

Accessing Quantum Computing from Excel

So much software resources are available for experimenting with Quantum Computing, whether using Gate models or Quantum Annealers. There is much support using the Python language and many use Jupyter and Google colab Notebooks to quickly elaborate models and test.

A major interest with using Quantum Annealing is for solving hard problems and many use Excel spreadsheets everyday to solve complex problems, manually or by using solver plugins.

I have recently contributed to connecting a Java web app to Python code (which is widely used for running Quantum models) for integrating a Quantum Computing solver prototype for the airline crew trip problem. It was a natural progression to want to connect such Python code to Excel to put Quantum Computing at the reach of regular folks solving everyday business “puzzles”.

I needed a good example everyone could understand, where Quantum Annealing can be used and results presented on a spreadsheet. I chose to go with the N-Queens puzzle before takling something more substancial, such as forecasting crew member requirements to fly a commercial airline schedule.

Discovering xlwings

I have discovered xlwings which allows doing exactly that. It provides two important features I needed:

Prototype

As a way to get my feet wet with a prototype, I adapted the solver for the N-Queens problem to be callable from Excel and created a Benchmark solver spreadsheet to demonstrate using Quantum Annealing to solve this problem and render results in Excel.

A video of the end result from the QuzziCode YouTube channel can be found here

Enjoy and subscribe to the channel for more videos like this!