Metadata-Version: 2.4
Name: Supermarq
Version: 0.5.55
Summary: Supermarq is a scalable, application-centric quantum benchmarking suite.
Author-email: Superstaq development team <superstaq@infleqtion.com>
License: Apache-2.0
Project-URL: homepage, https://github.com/Infleqtion/client-superstaq
Requires-Python: >=3.9.0
Description-Content-Type: text/markdown
Requires-Dist: cirq-superstaq~=0.5.55
Requires-Dist: qiskit-superstaq~=0.5.55
Requires-Dist: scikit-learn>=1.0
Requires-Dist: seaborn>=0.13.2
Provides-Extra: dev
Requires-Dist: checks-superstaq~=0.5.55; extra == "dev"

<p align="center">
  <img width="300" src="../docs/source/_static/logos/supermarq-logo.webp">
</p>

---
![Continuous Integration](https://github.com/Infleqtion/client-superstaq/actions/workflows/ci.yml/badge.svg)


# Supermarq: A Scalable Quantum Benchmark Suite

[Supermarq](https://arxiv.org/abs/2202.11045) is a suite of application-oriented benchmarks used to measure the performance of quantum computing systems.

## Installation

The Supermarq package is available via `pip` and can be installed in your current Python environment with the command:

```
pip install supermarq
```

## Install Dev Requirements

This is required if you intend to run checks locally

```
pip install .[dev]
```


## Using Supermarq

The benchmarks are defined as classes within `supermarq/benchmarks/`. Each application
defines two methods; `circuit` and `score`. These methods are used to generate the benchmarking circuit and evaluate its performance
after execution on hardware.

The quantum benchmarks within Supermarq are designed to be scalable, meaning that the benchmarks can be
instantiated and generated for a wide range of circuit sizes and depths.

The [Supermarq tutorial](https://github.com/Infleqtion/client-superstaq/tree/main/supermarq-benchmarks/examples) notebooks contain an end-to-end example of how to execute the GHZ benchmark
using [Superstaq](https://superstaq.infleqtion.com/). The general workflow is as follows:

```python
import supermarq

ghz = supermarq.benchmarks.ghz.GHZ(num_qubits=3)
ghz_circuit = ghz.circuit()
counts = execute_circuit_on_quantum_hardware(ghz_circuit) # For example, via AWS Braket, IBM Qiskit, or Superstaq
score = ghz.score(counts)
```
