OMMX Quantum Benchmarks provides access to quantum optimization benchmark datasets in OMMX format for easier integration with quantum and classical optimization workflows.
Documentation: https://jij-inc.github.io/OmmxQuantumBenchmarks/
# Clone and install
pip install ommx-quantum-benchmarks
from ommx_quantum_benchmarks.qoblib import Labs
# Load a dataset
dataset = Labs()
instance, solution = dataset("integer", "labs002")
# Evaluate the solution
evaluated = instance.evaluate(solution.state)
print(f"Objective: {evaluated.objective}, Feasible: {evaluated.feasible}")
You should get the following result.
Objective: 1.0, Feasible: True
The instance
is ommx.v1.Instance
. OMMX (Open Mathematical prograMming eXchange) is an open data format and SDK designed to simplify data exchange between software and people when applying mathematical optimization to real-world problems. For more details about OMMX, please have a look at the documentation: Documentation.
Note that, although this repository currently contains only one dataset, QOBLIB, we are planning to add more datasets for quantum optimisation in OMMX format.
QOBLIB stands for Quantum Optimization Benchmarking Library. In this repository we provide instance data given in the original QOBLIB repository in ommx
format leveraging the power of Github Container Registry. Note that currently, this directory does not provide all datasets, such as the fourth dataset Steiner Tree Packing pointed out in issue 8. One can see which instance data are available accessing available_instances
property.
This project includes data derived from QOBLIB - Quantum Optimization Benchmarking Library:
- Original authors: Thorsten Koch, David E. Bernal Neira, Ying Chen, Giorgio Cortiana, Daniel J. Egger, Raoul Heese, Narendra N. Hegade, Alejandro Gomez Cadavid, Rhea Huang, Toshinari Itoko, Thomas Kleinert, Pedro Maciel Xavier, Naeimeh Mohseni, Jhon A. Montanez-Barrera, Koji Nakano, Giacomo Nannicini, Corey O’Meara, Justin Pauckert, Manuel Proissl, Anurag Ramesh, Maximilian Schicker, Noriaki Shimada, Mitsuharu Takeori, Victor Valls, David Van Bulck, Stefan Woerner, and Christa Zoufal.
- License: CC BY 4.0
The instance data has been converted to ommx
format with additional modifications if needed.
Please refer to the original contribution guidelines for further information.
A collection of guidelines to run quantum optimization algorithms with Qiskit on hardware that is based on superconducting qubits can be found here.