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.2.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.2-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.2-cp314-cp314-win_amd64.whl (570.4 kB view details)

Uploaded CPython 3.14Windows x86-64

arvak-1.9.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (683.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64

arvak-1.9.2-cp314-cp314-macosx_11_0_arm64.whl (626.5 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.13Windows x86-64

arvak-1.9.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (687.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.12Windows x86-64

arvak-1.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (687.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

arvak-1.9.2-cp311-cp311-win_amd64.whl (571.8 kB view details)

Uploaded CPython 3.11Windows x86-64

arvak-1.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (684.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

arvak-1.9.2-cp311-cp311-macosx_11_0_arm64.whl (629.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

arvak-1.9.2-cp310-cp310-win_amd64.whl (574.6 kB view details)

Uploaded CPython 3.10Windows x86-64

arvak-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (687.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

arvak-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (688.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: arvak-1.9.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0a0dcce16f1f2da857359b67b02be241b1007570bf04f590a3b13a5f24b0d29b
MD5 29b37a34b2b595117e83ea61d167ec6d
BLAKE2b-256 33e45bb188fbefab51401c43fe5aaf6f8648b553247a7d6a90c35d0e78e9bc53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fe29369a873d4124da648ce542b06d7de3bc08f702e8358f8a5d25e502a66bed
MD5 68edf67ee3c2db049427d2698e826ce3
BLAKE2b-256 f082d0d5a7696aa60ee6ca355f4b0e3e906a32d49fdbd84178e0e195a16c6b2e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.2-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.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 041381c4f2907614697b2eb5fc685ce49ca0da9c435ac1757e27767c8032b2ea
MD5 b5c425db3295fc05c214099e7f771b3f
BLAKE2b-256 e80046b1e3ba1528d0cc4cb7c31de8e13b9cdd1ee78212903dd5064f87920136

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 91089b8fce7d47866adda5b4d38292355d027f488806bcca0a3dde1076a51e61
MD5 02f157c6c41775567c1fb14e4525f399
BLAKE2b-256 3b47ffc0f8eea79d4042d455c723d9068141b81034f92db373bb9ae2ecc8b623

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82e06b1c82fa6321d2367af94dfd1f0a95830a8f7dd91fd97a702343ad7b675e
MD5 ebed0bd66ff9530f15031d5b405ec68a
BLAKE2b-256 0678f439011854a8c0c47a6279e6de5477743fb00a1beded4e7bedc3af9c9fa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.2-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.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bda17c8b52c9d7cd89446adc133cef1d27cb7edd4e3b1368932f2ae1f400629a
MD5 cfa618d21c51753c6d4367eadb6ef430
BLAKE2b-256 f147ef6cc70cb36bb31634502c9e9d13c28a866a1168246b2726a6b1c11c59f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2b8a840fc47f525bf00c5c71bfbe668af323a2ae5d464becc0eba062fb24ea2c
MD5 f5a1a01a408f35cbb0e40317c5149015
BLAKE2b-256 8069b5b0a42c7355ebc175d711a676fe2e7032636f074c4ccbbfb45a3529f913

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88bc402504f82989907f2d821c7f21ad046bcc34607cfe689bb9ca7e8f9000be
MD5 0edc3d626d7a2ad967950cd128502522
BLAKE2b-256 54dbf6a5eb865eaf18622af6a9c10a85916a68da3958ac16341b49b15af5884d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.2-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.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 57e6bb2ef31cc7d897468469b2cefe2b74ff1380b592b032d82ff3c57f49c86b
MD5 8c899d112ba0335e1658c359e73d4f0d
BLAKE2b-256 2620c9ae24a09cd97aa75b6cc7568e2240e96a12c0ba05e6d233d3f7ee847ba6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 66976b10059e4cf5a598df565f4702db17632415bb3af50d80c03713c1e23ce1
MD5 862e58c170ce7a1cae4702699d6fbd6f
BLAKE2b-256 717da39d03f9de0cb7d31b0af7b92c4cbe641f3bcc3d3bcbf1482123ea3fe251

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 126a0ca96e89146d23b83b692e3bc45963850f76ca5129c8bb48d88f947e72ea
MD5 fee78ef3156cce66903a8bdd494e4808
BLAKE2b-256 1849bf00afd617ebd3b3cebee86d8f79d92d38e39effb814b3eb42f172a6b9cb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 571.8 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.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2598e0942b372ddbf6cd3467116e9b5b5daf04314f932ce343247cab1e0dc72d
MD5 491aa9dc18c33b1191cabf6d491c53a6
BLAKE2b-256 0cb9dc18c8fbcbaf86f831121cb11316099db6815f9d16cc53d478ae7afa6c0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 297f2eab63e8148c84cc701582f4cea43bb384bf369ebdc81ff18711d51d137d
MD5 97c3c9171139417f7229de83e5612e00
BLAKE2b-256 2669ddec6ce835c3f69191f6579e8ff01edc4826926794d52e8ffe6be84426c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 affdad2cb5685c08049a1ffee83dd0da47fe2fb2a015b27e04f928a679a38f6a
MD5 a6543097a7296c9896914c67c8cac5ac
BLAKE2b-256 e926fede90bdd14dd8667a14f8e3d0305a130139767483dae5da5e9d9c47002d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arvak-1.9.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 574.6 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.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5dd8d742cdf600dc3d74f089eea711c03b22302ea3e576ad6276e38eed958db1
MD5 099e59c9eaff43d92f8c1cd0b710fab5
BLAKE2b-256 b9fee39aa8db06da617d08f17bfb4479955dd115ccae1b9a13a82bc9f6635eb7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3892bd16d159971f345923ea1909a6469e735e65007051066fc79094b79a6c05
MD5 6242cf647219eb57bf44e4cfe389178e
BLAKE2b-256 90493369ce144b672fa11e9f1055ca5b8e03bd4b36873dd930e72d12f144bb92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for arvak-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9cd88d62c0bce4f3e097002c4d231acc831cb13bf9761d114cf3d8bb3ee7aa31
MD5 db4cfe98f3edc9fe68c08083d14d3f1a
BLAKE2b-256 ff87425fd0cce4699cac8315ab0624ee8b5f16d10f70a1a2ab634b09d9801088

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