Skip to main content

Arvak - Rust-native quantum compilation and orchestration platform for HPC with CUDA-Q, neutral-atom, and dynamic plugin support. Developed by The HAL Contract.

Project description

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

Project details


Download files

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

Source Distribution

arvak-1.9.1.tar.gz (459.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-1.9.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (683.9 kB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

arvak-1.9.1-cp314-cp314-win_amd64.whl (570.4 kB view details)

Uploaded CPython 3.14Windows x86-64

arvak-1.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (683.6 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

arvak-1.9.1-cp314-cp314-macosx_11_0_arm64.whl (626.4 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

arvak-1.9.1-cp313-cp313-win_amd64.whl (574.0 kB view details)

Uploaded CPython 3.13Windows x86-64

arvak-1.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (687.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

arvak-1.9.1-cp313-cp313-macosx_11_0_arm64.whl (627.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

arvak-1.9.1-cp312-cp312-win_amd64.whl (574.0 kB view details)

Uploaded CPython 3.12Windows x86-64

arvak-1.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (687.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

arvak-1.9.1-cp312-cp312-macosx_11_0_arm64.whl (627.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

arvak-1.9.1-cp311-cp311-win_amd64.whl (571.7 kB view details)

Uploaded CPython 3.11Windows x86-64

arvak-1.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (684.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

arvak-1.9.1-cp311-cp311-macosx_11_0_arm64.whl (629.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

arvak-1.9.1-cp310-cp310-win_amd64.whl (574.5 kB view details)

Uploaded CPython 3.10Windows x86-64

arvak-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (687.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

arvak-1.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (688.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

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

File hashes

Hashes for arvak-1.9.1.tar.gz
Algorithm Hash digest
SHA256 0040861deaad6071f122cb437244654f76905c5907843daa19f8a03f7c669344
MD5 de8ef2bfdfd999a6cbacf2bb40272636
BLAKE2b-256 bd31a7925cc653c4820dfb987f092e74b5e0fafe1cb72296e69363ce4db3df37

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e067a8b2bfeac79ad42bce98971383777d0d0d74ec8a40ec2e192b198b73e40a
MD5 b62651ceab6ce5c9dc95a0c54b4f1f13
BLAKE2b-256 19ffd15cb7e03c72d797ac7d42e0414dc68f5330232fbe4931f3d376e1e13dc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.1-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 570.4 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for arvak-1.9.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 09d139ecd5ba1d1eb3d6d921e691c7236da11952250524de78a2a6a3d41e187c
MD5 2f604d6b4b0a784a1ae0305344ae1a79
BLAKE2b-256 c7a422072b8e023d74f04deccef800f6ae6ce8c7b9c65fe697c0a22ac3e11de2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 87ae965cfb475456193e0027a955041976ffec7a41b5bdf67329a7992e485c9b
MD5 22444b4438a2640a9d570dba353d352a
BLAKE2b-256 9b118e6f9837bc08b1e423619b3e281175016272fb56423be7246785b9e95de1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5553083ef98ac69ce8227c554c11f129a52ca01c67edf04afbd86a19c57e0854
MD5 532f65690e2e82a679f915687fbca022
BLAKE2b-256 f4fa7a5cfe19505cede2b9aa92f08b4cb080e105fd7bd2cc8b550d9ed9576747

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 574.0 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for arvak-1.9.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 47af17868b744390f0e9ea206923dadb9821f86265f5cb3a35abc3976957131f
MD5 6ae4d0dd654445908a240beae8c65f8a
BLAKE2b-256 53231d825a27e8216e7ba4fb4d598f129e273e265c9b309ee4e034493f51934e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fd287afde9ba0be3b7ad3fe26a0565fd7cee198fe739140389a4ce4acf48bf23
MD5 45c70dd8867cbb5f586f5522d986b1a7
BLAKE2b-256 d529447f5ec1ed72a8fccac0e4cc0ec95d9e8c080b39c6756ccc27b086cb4b48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 770d9ed86bc2aa7846614ae706340560a3356f8cc40639dbac47f667d9864aef
MD5 58bda081d830890e1c0541f679955e4d
BLAKE2b-256 eb63ab46314bcde84c38542928741470a8b82df665d58192829cfbbd1f338ce5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 574.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for arvak-1.9.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f6ddba07a84e10954ac2173d0fd5193dbd31673351000b3ec7440c4cb551ba4e
MD5 439edb09298db8325405bfca3e06001f
BLAKE2b-256 a2c3d4f92f20cea110e0df60af37bbdd0b26eedb750ad39b553c8dc304dcfdac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 375a4accd8f95e708186581dad2cd1dbca7bd10fe19e48cc6c6edaecfc6e88fd
MD5 546b10e0e535147e82cd95507ed43a0e
BLAKE2b-256 0ce6067fae2d7b9bb66f4192ac685a4b953fa71e3ed62fd67884d4eee249884b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec673fc9f896bd0c9300028f9bccd94fc178ba621e4b16ee373ab2f9e8fdfc10
MD5 90e3b223b5193da8c09c36246372cd70
BLAKE2b-256 f7cf4eec43f70141aea810a7bee70099d223c26b47049c87d5f5d940b6a13f20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 571.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for arvak-1.9.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 88e17d2c112c66336d9b57269f4290593e274a9d9183bbf6ae8f1e7119d74ada
MD5 a222fbed7f5a353d4abf9d6252d4a6f0
BLAKE2b-256 b935140d2eec5fa8ce5d3022803067ec2503eefbfeed45612b1cca9956536c64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34e31a725e3493fcebd84a733faa8732648c026a51580974d5c1d23c0c9f2318
MD5 902f677785c8455ff45a00a68138d87b
BLAKE2b-256 287579fe2e8a93300f540eed5991ec878e8cd6a0bc3835cce03be903a9f1b2de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff128e096e5e317c410cdc31e928e9d3ded12b19a3d6278ba809ce9ebfc2ec7f
MD5 d03f232ab15d5fc5214d1f7c29a95641
BLAKE2b-256 4aaee23a46c13903ec7ec278497b9cbaa98fc54f90eb031ed5021728dff364b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 574.5 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for arvak-1.9.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 04dd5129d88210abc0ac42cd76b29f768d14c85d564da8e4799bf898ad3f087d
MD5 d4a953ba649cbfc10357305ee7740720
BLAKE2b-256 99c3decdb25cfb9b76307a113b8fb2bc2bc61b8db2c4dcdf00478687f6128ea2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9d8505aac36ad6f3b3b1ad06aeaa6b55fe3252e5933161ee5604e7ccabdce0aa
MD5 280c20b3dfdf4fdd2e7c7921544591c6
BLAKE2b-256 8258f2b01329d51df8c61f76ff97baf69065efc124846fcf9f3f7b7e5ca6219d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 63bf285b1f1b49860b1639b6336f087f199e700f230cc377fe3ff3f4c23ca55c
MD5 43f49fc75c32076037cc42e6d7f6bb61
BLAKE2b-256 cf99f797786e5bfafa2df217f1363b126fba1c7bdfcb66f8a441090e02488b9e

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