Skip to main content

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: NoisyBackend wraps 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

Download files

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

Source Distribution

arvak-2.2.1.tar.gz (735.2 kB view details)

Uploaded Source

Built Distributions

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

arvak-2.2.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

arvak-2.2.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.15tmanylinux: glibc 2.17+ x86-64

arvak-2.2.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.15manylinux: glibc 2.17+ x86-64

arvak-2.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64

arvak-2.2.1-cp314-cp314-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.14Windows x86-64

arvak-2.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

arvak-2.2.1-cp314-cp314-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

arvak-2.2.1-cp313-cp313-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.13Windows x86-64

arvak-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

arvak-2.2.1-cp313-cp313-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

arvak-2.2.1-cp312-cp312-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.12Windows x86-64

arvak-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

arvak-2.2.1-cp312-cp312-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

arvak-2.2.1-cp311-cp311-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.11Windows x86-64

arvak-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

arvak-2.2.1-cp311-cp311-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

arvak-2.2.1-cp310-cp310-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.10Windows x86-64

arvak-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

arvak-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

Details for the file arvak-2.2.1.tar.gz.

File metadata

  • Download URL: arvak-2.2.1.tar.gz
  • Upload date:
  • Size: 735.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.14.1

File hashes

Hashes for arvak-2.2.1.tar.gz
Algorithm Hash digest
SHA256 8901e274835489f3b6de263d7c66be88fe84c19ce211f88bc65a44567db6531f
MD5 afbc74a7b3bb2857f4722474d5741aae
BLAKE2b-256 fdb33cafefb1a68ff168779395054a79b75aef8edde023b423ad872dabff3caa

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3d2be76dee04b1c78bebf725e293eecac87731f25ee7a01b5e77aa8c9f8a85e6
MD5 2c5042c44b5b1916a2ca7456b9a56601
BLAKE2b-256 063202974669a1673dff2bf3d5248e4df8b894a8af225e69dd749d68fd84989b

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6a91e5170ea37b1c62d5b238fdfa6c9bf7a9d9e5baa3483b790a8ab0758b1e8d
MD5 bb032f66df935b1a4280cd9ce864a877
BLAKE2b-256 dd6e5e8e7cf06f053d7455239bd3324c79ea972cab263ae1b12cae146ce634c7

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51fd77e9e1b1654ddc9194b2cd45cc807ef879c00d3dfc50e0895528c4c41135
MD5 a6d09f492ca27e9a32f1bb286d423e81
BLAKE2b-256 17608af1684d0589f876839c814e51d63f5d4ea1c7840e58cb2191c4eac822dc

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 553f92699422bc340264c42dce137f61b737a57a4f6ad9f9bc042c2d3db2c5d0
MD5 34150513bdcc4494b011baf4b5f3e436
BLAKE2b-256 dc76ce4b721e0925676777aec82244d108d9cff4f17e3e0f617aabcf8ef7eb8f

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: arvak-2.2.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.14.1

File hashes

Hashes for arvak-2.2.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 eb0d6b72aac41f5f934195526cca4124104f4fd44d78933797cad9ebf8df4341
MD5 cdb10094a2f9845e83c830a3ba8138e8
BLAKE2b-256 c41fc373cc1a8d16e571c8606dc273ce0bed34031c4836de8affd1cd4ae35030

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c6e473429a9fab63551773bdaeae5f48026a2585df0d994c9ed08cdb71627c9
MD5 8bcc4f984313a08e1d0ccba4cac93c0b
BLAKE2b-256 de1dfb3f248a8ba7bdaddd3e3186e5c18267c31d5759e37351b366e39e0ed0c4

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a7a92ba8aae1ebb1b10301681786c7634c17bfa7aec4170e992b6f94e023c55
MD5 21c1df65fd5b03d5ca651b9d6555c8f6
BLAKE2b-256 7901f09d73ec8cc16b7f78bc25eb3d45094fd086a37502ffffb690f7e4cccb67

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: arvak-2.2.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.14.1

File hashes

Hashes for arvak-2.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b738265a047968ceb7535b6111bae7b2c2afe853449dc64f3db9552617f0e1c1
MD5 84ebbc2a2bae6d0a2f1fcda3e45ad246
BLAKE2b-256 519f262d0f120d3f071970369e8f124479388e8699db1b11ea1976ad54d03f5a

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1fbd8ae9a5f9e2aabb03e3d88be0c67c3a780451bf87113219d4b39f1056230f
MD5 f94562f46d9685a9da5f2caf1f489326
BLAKE2b-256 4a810cedfdf5c1aa285ce23d3804e00497a20dc7c92a6eae1bc7702df764949b

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff1301050d53dcaf2c50786e935627ae1ae0641f7018658aa26e352cc5ef26f0
MD5 356eeb41990ffa80323cf0a4a81a486d
BLAKE2b-256 f5b7842328d071e2dedabd62a983390d08ed11e2e54146359353de95f80bc833

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: arvak-2.2.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.14.1

File hashes

Hashes for arvak-2.2.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d0d999488ba7ca86eece71b7c038ea2678afdcdcf80d6c5ff756c6168ba31ba7
MD5 f950deab7610e769be084a37c4b67786
BLAKE2b-256 537277ec6015891fdd060405995c4e07d30cfe02a59061f958186b802edaf332

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4bbdd895e9704117ea154dc71aac80c7f7cd6336c7b88259a073e0c79cbdeaeb
MD5 e03576aaae2edbcaa179cc05b20c1e4a
BLAKE2b-256 1ddae32a2946bbf02f16381c490dc43a40340c92aa08b1ae889dd54880624412

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0602feffc412029f1cf19b066787cff7ee3f3b18d76b508cb349d3e0cfd9ad4
MD5 abbf3de19b3d5f11ba1c1663e744299f
BLAKE2b-256 c36b826933c6512a61c5f668e650fd145a780f348e917ab978acb8db4ee050ea

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: arvak-2.2.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.14.1

File hashes

Hashes for arvak-2.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7363698d253aae0d9ddaae28342c87b0aedd2e972bcf46d88b811f9e6b6d0cd6
MD5 dfdf69a8c0a40fa21d516642946a3290
BLAKE2b-256 b5151650bfdd6921e2c692e5e0bb7bbe9ee5f75115a78f963f743b71f3160d11

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 752ee9eabfdcd24ea448b8b8eefdc4b9f3b7cfdb2baacccfe0e7f40c9fefc9b3
MD5 9fa1ec3ce180a78bbcd999a24a6df556
BLAKE2b-256 b803f22430f8243ca5703b032732d425c96cebce6cc7f0c95dd26c1a68e4b223

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e19c65a2ec60c55d36146f3c6b0bb83e179daba41dd5747a08f09e2a38f51741
MD5 72a29c48bb8f6ae2b79b40bd73bafbc3
BLAKE2b-256 e2399fb7691e3088cd4285fcc831f8a49e03265b5d1825e44ebc85e546603a76

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: arvak-2.2.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 6.1 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.14.1

File hashes

Hashes for arvak-2.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ca1aecf5c02da9d61acbb2cf7871ccddd946c46a9f512bef020d494adec52649
MD5 f2fc8d932b012823de177bca6df60ead
BLAKE2b-256 957ab5dd230d27f6768cc4c85324123f09b121df8bb03abc8c079fbf47db21c7

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9a9ac66dce71fc8206f5c256865ee86afd18a05383af971bba58105868e951f0
MD5 375efa01b3641b39edada3ced958f9e3
BLAKE2b-256 22459f7f21e719dc6c24cd04bfd8f4b2c1a5f164be6cde5528543ed6b82ab158

See more details on using hashes here.

File details

Details for the file arvak-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for arvak-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1f12d2c4480dd9a608b524ba657f473bc3351458492cac1540d5a99c1244254f
MD5 9f12729c0ea6d8b589c18dc3a35b400f
BLAKE2b-256 940a01c0da551ab987403ac185629072ba76b842369e2bd982718ce5c42270a4

See more details on using hashes here.

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