Skip to main content
metriq-gym logo

metriq-gym

Unitary Foundation PyPI version Downloads Documentation Discord Chat Contributor Covenant

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

Requires Python 3.12–3.15.

Four easy steps to get started with metriq-gym!

  1. Install metriq-gym directly in your Python environment using pip:

    pip install metriq-gym
    
  2. 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
    
  3. Dispatch it to a quantum device or simulator.

    mgym job dispatch wit.example.json -p local -d aer_simulator
    
  4. 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

Community

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.

Metadata

Release files for metriq-gym 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metriq-gym 0.9.0
File Size Uploaded Provenance Actions
metriq_gym-0.9.0.tar.gz 25.2 MB With provenance Details for metriq_gym-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for metriq-gym 0.9.0
File Interpreter ABI Platform Actions
metriq_gym-0.9.0-py3-none-any.whl Python 3 none any Details for metriq_gym-0.9.0-py3-none-any.whl

Total release size: 25.6 MB

Release files / metriq_gym-0.9.0.tar.gz

Download URL metriq_gym-0.9.0.tar.gz
Size 25.2 MB
Tags Source
SHA-256 checksum
How to use checksums
27f322e8c1ead9571a306db39fabba6021bfc59d48f340017fb84b3cb9d6bc2d
BLAKE2b-256 checksum
How to use checksums
a8224b5e5b0e869212c24c9f90d4fda3a6833e404dbc8789c766bf0cc0022200
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / metriq_gym-0.9.0-py3-none-any.whl

Download URL metriq_gym-0.9.0-py3-none-any.whl
Size 446.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41ed2218c498b6b53343dd626a12c6ced27ce5cc8061057f38433021716a4e5e
BLAKE2b-256 checksum
How to use checksums
6f3a96c2cbd2ec11178bd21fc7a77237bc233f496dc8efaa051265dbb2505093
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for metriq-gym 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for metriq_gym-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page