Arvak Python Bindings
Python bindings for the Arvak quantum compilation platform.
Installation
pip install arvak
Quick Start
import arvak
# Create a Bell state circuit
qc = arvak.Circuit("bell", num_qubits=2)
qc.h(0).cx(0, 1).measure_all()
# Check circuit properties
print(f"Depth: {qc.depth()}")
print(f"Qubits: {qc.num_qubits}")
# Convert to QASM
qasm = arvak.to_qasm(qc)
print(qasm)
# Parse QASM
qc2 = arvak.from_qasm("""
OPENQASM 3.0;
qubit[2] q;
h q[0];
cx q[0], q[1];
""")
Features
- Circuit Building: Fluent API for building quantum circuits
- Standard Gates: H, X, Y, Z, S, T, CX, CZ, and many more
- IQM Native Gates: PRX gate support
- QASM3 I/O: Parse and emit OpenQASM 3.0
- Compilation Types: Layout, CouplingMap, BasisGates for compilation
- Hamiltonian Simulation (
arvak.sim): Trotter-Suzuki and QDrift time-evolution synthesis - Variational Solvers (
arvak.optimize): VQE, QAOA, PCE QUBO solver, spectral partition - Noise Threading:
NoisyBackendwraps any backend with a Qiskit noise model
Pre-built Circuits
# Bell state
bell = arvak.Circuit.bell()
# GHZ state
ghz = arvak.Circuit.ghz(5)
# Quantum Fourier Transform
qft = arvak.Circuit.qft(4)
Hamiltonian Simulation
from arvak.sim import PauliOp, HamiltonianTerm, Hamiltonian, TrotterEvolution
h = Hamiltonian.from_terms([
HamiltonianTerm.zz(0, 1, -1.0),
HamiltonianTerm.x(0, -0.5),
])
circuit = TrotterEvolution.new(h, t=1.0, n_steps=4).first_order()
counts = arvak.run_sim(circuit, shots=1024)
Variational Algorithms
from arvak.optimize import VQESolver, SparsePauliOp, QAOASolver, BinaryQubo
# VQE
h = SparsePauliOp([(-1.0, {0: "Z", 1: "Z"}), (-0.5, {0: "X", 1: "X"})])
result = VQESolver(h, n_qubits=2, n_layers=2, seed=0).solve()
print(result.energy)
# QAOA
qubo = BinaryQubo.from_dict(n=4, quadratic={(0,1):-1,(1,2):-1,(2,3):-1,(0,3):-1})
result = QAOASolver(qubo, p=2, seed=0).solve()
print(result.solution, result.cost)
Install Extras
pip install arvak[optimize] # VQE, QAOA, PCE (numpy + scipy)
pip install arvak[optimize-sklearn] # + scikit-learn k-means
pip install arvak[qiskit] # Qiskit backend integration
pip install arvak[all] # Everything
License
Apache-2.0
Metadata
Release files for arvak 2.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arvak-2.2.1.tar.gz | 735.2 kB | Without provenance | Details for arvak-2.2.1.tar.gz |
Built distributions (wheels)
Total release size: 123.6 MB
Release files / arvak-2.2.1.tar.gz
| Download URL | arvak-2.2.1.tar.gz |
|---|---|
| Size | 735.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8901e274835489f3b6de263d7c66be88fe84c19ce211f88bc65a44567db6531f
|
|
BLAKE2b-256 checksum How to use checksums |
fdb33cafefb1a68ff168779395054a79b75aef8edde023b423ad872dabff3caa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.11 PyPy 3.11 7.3 |
|
SHA-256 checksum How to use checksums |
3d2be76dee04b1c78bebf725e293eecac87731f25ee7a01b5e77aa8c9f8a85e6
|
|
BLAKE2b-256 checksum How to use checksums |
063202974669a1673dff2bf3d5248e4df8b894a8af225e69dd749d68fd84989b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
6a91e5170ea37b1c62d5b238fdfa6c9bf7a9d9e5baa3483b790a8ab0758b1e8d
|
|
BLAKE2b-256 checksum How to use checksums |
dd6e5e8e7cf06f053d7455239bd3324c79ea972cab263ae1b12cae146ce634c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.15 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
51fd77e9e1b1654ddc9194b2cd45cc807ef879c00d3dfc50e0895528c4c41135
|
|
BLAKE2b-256 checksum How to use checksums |
17608af1684d0589f876839c814e51d63f5d4ea1c7840e58cb2191c4eac822dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
553f92699422bc340264c42dce137f61b737a57a4f6ad9f9bc042c2d3db2c5d0
|
|
BLAKE2b-256 checksum How to use checksums |
dc76ce4b721e0925676777aec82244d108d9cff4f17e3e0f617aabcf8ef7eb8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp314-cp314-win_amd64.whl
| Download URL | arvak-2.2.1-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
eb0d6b72aac41f5f934195526cca4124104f4fd44d78933797cad9ebf8df4341
|
|
BLAKE2b-256 checksum How to use checksums |
c41fc373cc1a8d16e571c8606dc273ce0bed34031c4836de8affd1cd4ae35030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.14 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
7c6e473429a9fab63551773bdaeae5f48026a2585df0d994c9ed08cdb71627c9
|
|
BLAKE2b-256 checksum How to use checksums |
de1dfb3f248a8ba7bdaddd3e3186e5c18267c31d5759e37351b366e39e0ed0c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | arvak-2.2.1-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
1a7a92ba8aae1ebb1b10301681786c7634c17bfa7aec4170e992b6f94e023c55
|
|
BLAKE2b-256 checksum How to use checksums |
7901f09d73ec8cc16b7f78bc25eb3d45094fd086a37502ffffb690f7e4cccb67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp313-cp313-win_amd64.whl
| Download URL | arvak-2.2.1-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b738265a047968ceb7535b6111bae7b2c2afe853449dc64f3db9552617f0e1c1
|
|
BLAKE2b-256 checksum How to use checksums |
519f262d0f120d3f071970369e8f124479388e8699db1b11ea1976ad54d03f5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
1fbd8ae9a5f9e2aabb03e3d88be0c67c3a780451bf87113219d4b39f1056230f
|
|
BLAKE2b-256 checksum How to use checksums |
4a810cedfdf5c1aa285ce23d3804e00497a20dc7c92a6eae1bc7702df764949b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | arvak-2.2.1-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
ff1301050d53dcaf2c50786e935627ae1ae0641f7018658aa26e352cc5ef26f0
|
|
BLAKE2b-256 checksum How to use checksums |
f5b7842328d071e2dedabd62a983390d08ed11e2e54146359353de95f80bc833
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp312-cp312-win_amd64.whl
| Download URL | arvak-2.2.1-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d0d999488ba7ca86eece71b7c038ea2678afdcdcf80d6c5ff756c6168ba31ba7
|
|
BLAKE2b-256 checksum How to use checksums |
537277ec6015891fdd060405995c4e07d30cfe02a59061f958186b802edaf332
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4bbdd895e9704117ea154dc71aac80c7f7cd6336c7b88259a073e0c79cbdeaeb
|
|
BLAKE2b-256 checksum How to use checksums |
1ddae32a2946bbf02f16381c490dc43a40340c92aa08b1ae889dd54880624412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | arvak-2.2.1-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
f0602feffc412029f1cf19b066787cff7ee3f3b18d76b508cb349d3e0cfd9ad4
|
|
BLAKE2b-256 checksum How to use checksums |
c36b826933c6512a61c5f668e650fd145a780f348e917ab978acb8db4ee050ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp311-cp311-win_amd64.whl
| Download URL | arvak-2.2.1-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7363698d253aae0d9ddaae28342c87b0aedd2e972bcf46d88b811f9e6b6d0cd6
|
|
BLAKE2b-256 checksum How to use checksums |
b5151650bfdd6921e2c692e5e0bb7bbe9ee5f75115a78f963f743b71f3160d11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
752ee9eabfdcd24ea448b8b8eefdc4b9f3b7cfdb2baacccfe0e7f40c9fefc9b3
|
|
BLAKE2b-256 checksum How to use checksums |
b803f22430f8243ca5703b032732d425c96cebce6cc7f0c95dd26c1a68e4b223
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | arvak-2.2.1-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.6 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
e19c65a2ec60c55d36146f3c6b0bb83e179daba41dd5747a08f09e2a38f51741
|
|
BLAKE2b-256 checksum How to use checksums |
e2399fb7691e3088cd4285fcc831f8a49e03265b5d1825e44ebc85e546603a76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp310-cp310-win_amd64.whl
| Download URL | arvak-2.2.1-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ca1aecf5c02da9d61acbb2cf7871ccddd946c46a9f512bef020d494adec52649
|
|
BLAKE2b-256 checksum How to use checksums |
957ab5dd230d27f6768cc4c85324123f09b121df8bb03abc8c079fbf47db21c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
9a9ac66dce71fc8206f5c256865ee86afd18a05383af971bba58105868e951f0
|
|
BLAKE2b-256 checksum How to use checksums |
22459f7f21e719dc6c24cd04bfd8f4b2c1a5f164be6cde5528543ed6b82ab158
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / arvak-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | arvak-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 7.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
1f12d2c4480dd9a608b524ba657f473bc3351458492cac1540d5a99c1244254f
|
|
BLAKE2b-256 checksum How to use checksums |
940a01c0da551ab987403ac185629072ba76b842369e2bd982718ce5c42270a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Security for arvak 2.2.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.