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

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

metriq_gym-0.8.0.tar.gz (25.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

metriq_gym-0.8.0-py3-none-any.whl (417.6 kB view details)

Uploaded Python 3

File details

Details for the file metriq_gym-0.8.0.tar.gz.

File metadata

  • Download URL: metriq_gym-0.8.0.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

Hashes for metriq_gym-0.8.0.tar.gz
Algorithm Hash digest
SHA256 e55083d3f8bcddfb4a4098d61979b07716d1b938baae623a4c70e408d8d67b99
MD5 dd0ddf3ec192c1f9002efa769db33015
BLAKE2b-256 be087f72bc7f8cde3b5b3b11afadf64cc7aa2085df2cb5a614e8316a3d39e8a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for metriq_gym-0.8.0.tar.gz:

Publisher: publish-to-pypi.yml on unitaryfoundation/metriq-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file metriq_gym-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: metriq_gym-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 417.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for metriq_gym-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06da5cc6d90654a821c6c44b9206b1f7324755452d006548f2b55c4b50d9b537
MD5 9dde4e508d4a5ffe1365da62310c30ed
BLAKE2b-256 091ae7ee4c26f3bb0ca30eb5689afb43ac799ff9d43228ee923f5f15a78563b7

See more details on using hashes here.

Provenance

The following attestation bundles were made for metriq_gym-0.8.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on unitaryfoundation/metriq-gym

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.8.1

2 files

This release

0.8.0 This release

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

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