metriq-gym
metriq-gym is a Python framework for implementing and running standard quantum benchmarks on different quantum devices by different providers.
- Open – Open-source since its inception and fully developed in public.
- Transparent – All benchmark parameters are defined in a schema file and the benchmark code is reviewable by the community.
- Cross-platform – Supports running benchmarks on multiple quantum hardware providers (integration powered by qBraid-SDK)
- User-friendly – Provides a simple command-line interface for dispatching, monitoring, and polling benchmark jobs (you can go on with your life while your job waits in the queue).
Quick Start
Four easy steps to get started with metriq-gym!
-
Install
metriq-gymdirectly in your Python environment using pip:pip install metriq-gym
-
Download a benchmark configuration file from the
schemas/examples/directory (this example uses the WIT — Wormhole-inspired teleportation — benchmark)curl -O https://raw.githubusercontent.com/unitaryfoundation/metriq-gym/refs/heads/main/metriq_gym/schemas/examples/wit.example.json
-
Dispatch it to a quantum device or simulator.
mgym job dispatch wit.example.json -p local -d aer_simulator
-
Poll the job to get the results.
mgym job poll latest
You will see the results of the benchmark printed in your terminal. E.g.
{'app_version': '0.6.0',
'job_type': 'WIT',
'platform': {'device': 'aer_simulator',
'device_metadata': {'num_qubits': 31,
'simulator': True,
'version': '0.17.2'},
'provider': 'local'},
'results': {'expectation_value': {'uncertainty': 0.0006673812593654682,
'value': 0.996337890625},
'score': {'uncertainty': 0.0006673812593654682,
'value': 0.996337890625}},
'runtime_seconds': 0.009346791077405214,
'suite_id': None,
'timestamp': '2026-01-16T15:42:18.173736'}
Results:
expectation_value: 0.996337890625 ± 0.0006673812593654682
score: 0.996337890625 ± 0.0006673812593654682
Explore more generic examples in the ready-made JSON schemas under
metriq_gym/schemas/examples/. These editable examples are not the
canonical configurations used for Metriq Score 1.0; the score definition is in
metriq_gym/suites/metriq_score_1_0.json.
Jobs dashboard
A local web view of your dispatched jobs — lifecycle status, per-device suite coverage, and poll/upload/delete actions:
mgym dashboard
Then open http://localhost:8787. The dashboard reads your local job database; provider APIs are only contacted when you click Poll.
Documentation
- Quickstart Guide - Get up and running quickly
- CLI Reference - Command-line workflows and credential setup
- Provider Configuration - Setup guides for IBM, IonQ, AWS, Azure, Quantinuum, OriginQ
- Benchmarks - Available benchmarks and configuration
- Developer Guide - Contributing to metriq-gym
Community
- Join the discussion on Discord (
#metriqchannel) - Ask questions or share ideas via GitHub Discussions
Contributing
Start with CONTRIBUTING.md for the workflow checklist, and review the Developer Guide. Issues and pull requests are welcome!
License
metriq-gym is available under the Apache License 2.0.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metriq_gym-0.8.1.tar.gz.
File metadata
- Download URL: metriq_gym-0.8.1.tar.gz
- Upload date:
- Size: 25.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5ac25a5b4b23794cf8d48c4981984fecfcee9852b34173bcc179a9c75662afc
|
|
| MD5 |
25d78d04fb34546c02770a712595fa3a
|
|
| BLAKE2b-256 |
784b67071564c9c071e18b516fb87f7ff0580fa03d4c765a59a862ed09e2865f
|
Provenance
The following attestation bundles were made for metriq_gym-0.8.1.tar.gz:
Publisher:
publish-to-pypi.yml on unitaryfoundation/metriq-gym
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metriq_gym-0.8.1.tar.gz -
Subject digest:
f5ac25a5b4b23794cf8d48c4981984fecfcee9852b34173bcc179a9c75662afc - Sigstore transparency entry: 2784351200
- Sigstore integration time:
-
Permalink:
unitaryfoundation/metriq-gym@0d81db7d01e4578fca1a938a94a26a4fde432e1f -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/unitaryfoundation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@0d81db7d01e4578fca1a938a94a26a4fde432e1f -
Trigger Event:
release
-
Statement type:
File details
Details for the file metriq_gym-0.8.1-py3-none-any.whl.
File metadata
- Download URL: metriq_gym-0.8.1-py3-none-any.whl
- Upload date:
- Size: 423.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de612d37dd0d696b99925b649837a8b528fa3962f2dfbb767814188c0fa0134a
|
|
| MD5 |
733e4a13ec0c6899c5ff2b08c80af5d9
|
|
| BLAKE2b-256 |
83979f494898a132580cc91f525ede83e13481927bb27fc2fd0a3b8a12941a99
|
Provenance
The following attestation bundles were made for metriq_gym-0.8.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on unitaryfoundation/metriq-gym
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
metriq_gym-0.8.1-py3-none-any.whl -
Subject digest:
de612d37dd0d696b99925b649837a8b528fa3962f2dfbb767814188c0fa0134a - Sigstore transparency entry: 2784351264
- Sigstore integration time:
-
Permalink:
unitaryfoundation/metriq-gym@0d81db7d01e4578fca1a938a94a26a4fde432e1f -
Branch / Tag:
refs/tags/v0.8.1 - Owner: https://github.com/unitaryfoundation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@0d81db7d01e4578fca1a938a94a26a4fde432e1f -
Trigger Event:
release
-
Statement type: