Open-source Python SDK for running quantum circuits across multiple hardware backends
Project description
Marqov SDK
Orchestration engine for hybrid quantum-classical workflows.
Run a Bell state immediately — no credentials, no infrastructure:
import asyncio
from marqov.circuits import Circuit
from marqov.executors import LocalExecutor
async def main():
result = await LocalExecutor().execute(
Circuit().h(0).cnot(0, 1), shots=1000
)
print(result.counts) # {'00': ~500, '11': ~500}
asyncio.run(main())
Scale to parallel workflows across any backend:
from marqov import task, workflow, bell_state
from marqov.executors import LocalExecutor
@task
async def measure(shots):
result = await LocalExecutor().execute(bell_state(), shots=shots)
return result.counts
@workflow
def multi_shot_study(shot_counts):
return [measure(n) for n in shot_counts] # all run in parallel
dispatch = multi_shot_study([100, 500, 1000, 5000])
# dispatch.run(client) — needs a Temporal worker
# Use the Marqov platform or run your own: see marqov/workflows/
Independent tasks execute in parallel automatically. Marqov handles scheduling, retries, and result collection across any supported backend.
Installation
pip install marqov
With backend-specific extras:
# IBM Quantum
pip install "marqov[qiskit]"
# All extras
pip install "marqov[all]"
For local development:
git clone https://github.com/marqov-dev/marqov-sdk
cd marqov-sdk
pip install -e ".[all,dev]"
pytest tests/ -v
Cloud Executors
Swap in a cloud backend when you're ready to run on hardware:
import asyncio
from marqov.circuits import Circuit
from marqov.executors import ExecutorFactory
async def main():
circuit = Circuit().h(0).cnot(0, 1)
executor = ExecutorFactory.create_executor("sv1", {
"provider": "AWS Braket",
"device_arn": "arn:aws:braket:::device/quantum-simulator/amazon/sv1",
"s3_bucket": "my-bucket",
"s3_prefix": "jobs",
})
result = await executor.execute(circuit, shots=1000)
print(result.counts)
asyncio.run(main())
Or run directly on IonQ hardware via the native REST API (no AWS account needed):
executor = ExecutorFactory.create_executor("qpu.aria-1", {
"provider": "IonQ Direct",
"api_key": "your-ionq-api-key", # or set IONQ_API_KEY
})
result = await executor.execute(circuit, shots=1000)
Or run on Rigetti QPUs (or the local QVM, no cloud account needed) via Rigetti QCS:
executor = ExecutorFactory.create_executor("2q-qvm", {
"provider": "Rigetti QCS",
})
result = await executor.execute(circuit, shots=1000)
Supported Backends
| Backend | Status |
|---|---|
| Local (QuantumFlow simulator) | ✅ Available |
| AWS Braket | ✅ Available |
| IBM Quantum | ✅ Available |
| Azure Quantum | ✅ Available |
| IonQ Direct | ✅ Available |
| Rigetti QCS | ✅ Available |
| Quantinuum | ✅ Available |
Circuit Interop
Circuit is a backend-agnostic abstraction that converts to any supported framework's native format:
from marqov.circuits import Circuit
circuit = Circuit().h(0).cnot(0, 1)
circuit.to_qiskit() # qiskit.QuantumCircuit
circuit.to_braket() # braket.circuits.Circuit
circuit.to_cirq() # cirq.Circuit
circuit.to_pyquil() # pyquil.Program (requires pip install marqov[pyquil])
Import from other formats:
circuit = Circuit.from_qiskit(qiskit_circuit)
circuit = Circuit.from_cirq(cirq_circuit)
circuit = Circuit.from_pennylane(tape)
circuit = Circuit.from_pyquil(pyquil_program) # requires pip install marqov[pyquil]
Marqov Platform
The SDK runs standalone, but the Marqov platform removes the infrastructure overhead, with an integrated Temporal worker, job tracking and cost visibility built in, and one-click access to every supported QPU. Scripts written against the SDK run unchanged on the platform via MarqovDevice, so the platform handles backend routing, retries, and result storage. In private beta (but early teams are granted QPU credits).
Contributing
See CONTRIBUTING.md for the executor interface spec, canonical gate set, factory registration steps, and local QVM setup for Rigetti development.
Bounty issues are open through unitaryHACK 2026 — see the issues page for what's available.
License
Project details
Release history Release notifications | RSS feed
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 marqov-0.2.0.tar.gz.
File metadata
- Download URL: marqov-0.2.0.tar.gz
- Upload date:
- Size: 308.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f02a8ae0b1ec25de53ee0e139fb271fc2252a77a6f9db22e26452200ad80345
|
|
| MD5 |
f21aeb72c1ef001aad8a35ae7c460169
|
|
| BLAKE2b-256 |
4685e02aa06cb7107fcb1a3cd309da64e49150537a65a55eb3e720488a3a9a71
|
Provenance
The following attestation bundles were made for marqov-0.2.0.tar.gz:
Publisher:
release.yml on marqov-dev/marqov-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
marqov-0.2.0.tar.gz -
Subject digest:
1f02a8ae0b1ec25de53ee0e139fb271fc2252a77a6f9db22e26452200ad80345 - Sigstore transparency entry: 2010123526
- Sigstore integration time:
-
Permalink:
marqov-dev/marqov-sdk@9eeea5fb20fd0cc95b50c2104b189575eb81842e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/marqov-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9eeea5fb20fd0cc95b50c2104b189575eb81842e -
Trigger Event:
push
-
Statement type:
File details
Details for the file marqov-0.2.0-py3-none-any.whl.
File metadata
- Download URL: marqov-0.2.0-py3-none-any.whl
- Upload date:
- Size: 79.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3c934edc67d678d30af5c7900b1d2afa3e9e78cd2f1ae483c3e6308c288c560
|
|
| MD5 |
465bc83cd008e460375146fbc7611b16
|
|
| BLAKE2b-256 |
85eb6a5ab391db84323a437353736c7ebbbb354d4b8b6122a03db9c599fc6918
|
Provenance
The following attestation bundles were made for marqov-0.2.0-py3-none-any.whl:
Publisher:
release.yml on marqov-dev/marqov-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
marqov-0.2.0-py3-none-any.whl -
Subject digest:
a3c934edc67d678d30af5c7900b1d2afa3e9e78cd2f1ae483c3e6308c288c560 - Sigstore transparency entry: 2010123793
- Sigstore integration time:
-
Permalink:
marqov-dev/marqov-sdk@9eeea5fb20fd0cc95b50c2104b189575eb81842e -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/marqov-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9eeea5fb20fd0cc95b50c2104b189575eb81842e -
Trigger Event:
push
-
Statement type: