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.1.3.tar.gz (611.8 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.1.3-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.1.3-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.1.3-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.1.3-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.1.3-cp314-cp314-win_amd64.whl (6.1 MB view details)

Uploaded CPython 3.14Windows x86-64

arvak-2.1.3-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.1.3-cp314-cp314-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

arvak-2.1.3-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.1.3-cp313-cp313-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

arvak-2.1.3-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.1.3-cp312-cp312-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

arvak-2.1.3-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.1.3-cp311-cp311-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

arvak-2.1.3-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.1.3-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.1.3.tar.gz.

File metadata

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

File hashes

Hashes for arvak-2.1.3.tar.gz
Algorithm Hash digest
SHA256 68528d030af11c1c87c9b411a16c3b5fb4edacc1a8b73b4680e7be15030486df
MD5 ddea73b9299527fafeeae6b8f81455b7
BLAKE2b-256 a1abefaed6aa22997da0b798e699ff0072ecab7125c5256b2e0ae8f7f7b10031

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 557e5a60cedcc0c05259ce27d6264614819bf20e052c05f847a164b5901374d3
MD5 5d1320317f8e5d597b93cc669a760a77
BLAKE2b-256 966a4b0063af9d025e1f278f6ce01706b41330ae173692734f655b06dfa20a59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp315-cp315t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 064f83499e222ca29b4d0097a11790b4183a17ad5d7feb18da8f4b5862b74906
MD5 6cc4945a644a69c3af22f8bd56c56efd
BLAKE2b-256 b6ae91dd3ddaa6c1c230867fc67a65b70fb5bd8d74a07170b337c6715e0087e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp315-cp315-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 163881071eca29189229a91bd2e0bc8a3062cd81294d547b0ffc5b098b18469d
MD5 8b6fc11124d4de868b05b38b089a4179
BLAKE2b-256 b577ad291440976b799b1868a01f738d737bb78acda39769607718f926589c98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1097e8453a46fdd3ea0ac465d94a823ec10bd526677c0a37a10be49ed4783d3
MD5 a0d77f028476d0488cdadb1264e51e4e
BLAKE2b-256 e8baccd601ebd32712b14028b1147953231dacb93959b29baea2e733bfd091d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-2.1.3-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.1.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 fec1d99fb271f27a7f242c8b725b04a60fd3666e88939b4776d5757e3307b768
MD5 de2ea0ab4cb092065e9dfadc04e77676
BLAKE2b-256 2644fbdc3ea86000ca946de435b70807e0278625d67e9d01b0dc74bafd99ebac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 54a66bf2a5215a7a505fa92709c9aba89acb40c1ab1c43c3cb8faac26130893d
MD5 aedc950e1e0d99269fbaa7f787d8390e
BLAKE2b-256 6317aa1daf0e77c7eb3eb51a67e01d6a943bb7b008f149765de5d92b3dfcbede

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9772c6595a75915a3922ce81913d67a0d6ce3008010fd069efe09c18026945d
MD5 a78997b8b8ff4c321c09d3b43c435359
BLAKE2b-256 2976f52e70c66e1b8227ef768e176fcf96a2e45acf9243a4911873322675e76a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-2.1.3-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.1.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7a96c233aa5e6f92574c218314b7a497e180c654e9c8fc7fae354bea638d4fc5
MD5 82f456cc67f9f74b597fbd78cb6b4f99
BLAKE2b-256 51369215a657ffe95722f9e70cebb2b34224d1b258f7281f8b72d07d75966c21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2f73b929d86ba50f5a1b3793dc9383172567502e5750da77bc9014f92361ac3
MD5 8f2d37a5bf9f48400bc1e8804ae77f3f
BLAKE2b-256 25f1ad69c5ee88ce77ee9448389744215e0081052d5428e1b5e2e9d19030abd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d4df4632e9a6b3fdd00bcfd7a134af0f0f56d19bdd218d9c5ff8108dcb661eff
MD5 16140b84d9936d03fcebe9fa965e5c27
BLAKE2b-256 916a640dd30165306fa3841342892e84808ebe7779ed20203e47851a7e32776b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-2.1.3-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.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 66c4619dae17bc1e33969de89de4fbbffe2292040de9c03f274fb8c841919966
MD5 3f37fc8c43dade9ad19a827fd69622f4
BLAKE2b-256 e0564beda5a85dd5a838c895632cb46b01e6a776047fff4b4c8ae51378ed62b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ad2187cc7d2ed977dc2603e0d82d113b868f3231a2c37c10574978c046a21b19
MD5 1031ab9330cd18b368a391a7b5a3ae25
BLAKE2b-256 e20ae847f7e5f763bb76b1e57c3d00a1a36098311329eecef784dc01766b5dfd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ed6558b1ee08e20ddfcb11eb3230372178d18cadbef9c13d0be8e23b7612ae3
MD5 401893fb328ea07d7bbc55c6975e5e50
BLAKE2b-256 10f1ee9262aa613f0dda3ab7593171e48e8523933a60b4844e1b41be4319c7e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-2.1.3-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.1.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2066b53ff04b625ed15d09a19939bf6c3d5748a716d4b3f72521f4c2f0ede1c3
MD5 b8e6cedcea5afce62b2be6744451f59a
BLAKE2b-256 f48fea81401dc8ccc7b6a9da5ccab2f50acdc364dc96ba9df4afd16a4773e969

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ec6337fca1a2e6890bd0c25ba7929d126127c6b16dbe70f1ccd467e6feeec7ac
MD5 63a2681090601bc67cdf7fecba9d8e19
BLAKE2b-256 7e24404b337768867f2d7763c44900ddce874c66064dfc9c1bfb640d19a7883d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77f6a85feae7e81c154f2ca27a15c28a345a15a0e143f11db970f158be93596a
MD5 9b33ebfccd70354cf51325b226c7510b
BLAKE2b-256 3d0307c5fc7a8b72618b885fd75ac45ee00afd26d47fa5c589014c6e87d1b4fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-2.1.3-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.1.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ef4afce8735686372b2fd2302b4819a43987b6d936b4b15d5433c2f546d32810
MD5 2b6b1eb5f0ae23246bf438241deb056d
BLAKE2b-256 cd3fe0e01a06793bd997881b2cb63167a8fe89015136501540c74d0c88a6c861

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95060ae3b22971ed89a5aadc4b86081adc676e3f0d83102485d7af106e05fa01
MD5 bf396beec1359430f8e328394a4978f0
BLAKE2b-256 6d6a0330e532148a11ca99b6dc016efe4b3073c72e1aadb83c0eeb4746e0305e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e20bb01bd866e3df3a9beee4e864ac4f39c9aa1f311b81b4c63e3cb411c29f26
MD5 c761a515b1e0c04222537d7d5140969c
BLAKE2b-256 442b0f56c1d2ee9b6f3cbc837df07f379e414badfb60ef3c51344642f374b2b0

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