Skip to main content

Framework for implementing and running standard quantum benchmarks on different quantum devices by different providers.

Project description

metriq-gym logo

metriq-gym

Unitary Foundation PyPI version Downloads Doc Status 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

    curl -O https://raw.githubusercontent.com/unitaryfoundation/metriq-gym/refs/heads/main/metriq_gym/schemas/examples/wormhole.example.json
    
  3. Dispatch it to a quantum device or simulator.

    mgym job dispatch wormhole.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.

{'device': 'aer_simulator',
 'job_type': 'Wormhole',
 'provider': 'local',
 'results': {'expectation_value': 0.99658203125},
 'timestamp': '2025-07-29T20:31:17.978851',
 'version': '0.1.3.dev0'}

Explore more examples in the ready-made JSON schemas under metriq_gym/schemas/examples/.

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 GNU GPL v3.0 or later.

Project details


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.4.0.tar.gz (266.5 kB 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.4.0-py3-none-any.whl (387.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: metriq_gym-0.4.0.tar.gz
  • Upload date:
  • Size: 266.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for metriq_gym-0.4.0.tar.gz
Algorithm Hash digest
SHA256 68831699d895203224b49d030343a85031bb040059a05f648820cdf6ebef14be
MD5 203c161f18fe28ee489f0c7345476f57
BLAKE2b-256 3b5ad9d4e360bbeea5ca1a7da65b8cfe8cba1028f0964ea0757ea4635a6aa0be

See more details on using hashes here.

Provenance

The following attestation bundles were made for metriq_gym-0.4.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: metriq_gym-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 387.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for metriq_gym-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55c0aed111bd51ebcba8414ed08b5b994dade56372358afb8b1c84dff5fb20ca
MD5 9b35161bf137c37659f60fa9655e8ea2
BLAKE2b-256 7eb7346305d5116b7805aeb4b89820d44506069151ace7b1a8ebe6675dc3b2c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for metriq_gym-0.4.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.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page