Skip to main content

vqubit

A dependency-free quantum computing framework for Python, written in V.

PyPI Python versions CI License: MIT

vqubit lets you build quantum circuits and run them on local simulators with zero third-party dependencies. The numerically heavy work — linear algebra, gate matrices and simulation — is written in V and compiled into a native extension; the public API is dependency-free Python on top of it.

The API mirrors Cirq closely, so if you know Cirq you already know vqubit.

import vqubit as vq

q0, q1 = vq.LineQubit.range(2)
circuit = vq.Circuit(vq.H(q0), vq.CNOT(q0, q1), vq.measure(q0, q1, key="result"))
print(circuit)

result = vq.Simulator().run(circuit, repetitions=100)
print(result.histogram(key="result"))

Highlights

  • No dependencies. pip install vqubit installs nothing else. Everything runs offline, on your machine.
  • Native speed. Linear algebra, gate matrices and simulation are compiled from V, not interpreted.
  • One wheel, every Python. A single abi3 wheel covers CPython 3.11–3.15 per platform.
  • Cross-platform. Linux (x86-64 and ARM), macOS (ARM) and Windows (x86-64).
  • Cirq-compatible API. Build, transform and simulate circuits the way Cirq documents them.

Installation

$ pip install vqubit

Requires Python 3.11 or newer. No other packages are installed.

Documentation

The full documentation is published at https://rroblf01.github.io/vqubit/ in both Spanish and English. It starts from "what is a qubit?" and builds up to circuits and simulation.

Status

vqubit is alpha (0.2.0). It exports every one of cirq-core's top-level names, and the simulators, optimizers, transformers and devices are in place; see CHANGELOG.md for the full list. The API may still change before 1.0; ROADMAP.md tracks the path to it.

It ships wheels for Linux (x86-64 and ARM), macOS (ARM) and Windows (x86-64), plus a source distribution, and is built with vcraft.

Development

vqubit is built with vcraft. You need the V compiler, a C compiler, and uv for the development tooling.

$ python -m venv .venv && source .venv/bin/activate
$ pip install vcraft
$ uv pip install --group dev   # pytest, ruff, ty, build
$ vcraft develop               # build and install into the active virtualenv
$ python main.py               # run the example
$ pytest                       # run the test suite
$ vcraft build --release       # write an abi3 wheel into dist/

The dev and docs tooling are [dependency-groups] in pyproject.toml; use uv pip install --group docs for the documentation toolchain. (uv pip install adds to the virtualenv without pruning it — uv sync would remove the editable extension that vcraft develop installs.)

The development setup is the only thing that needs the V toolchain — the published wheels need nothing.

License

MIT. See LICENSE. © Ricardo Robles Fernández.

Metadata

Release files for vqubit 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vqubit 0.2.0
File Size Uploaded Provenance Actions
vqubit-0.2.0.tar.gz 236.9 kB With provenance Details for vqubit-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for vqubit 0.2.0
File Actions
vqubit-0.2.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for vqubit-0.2.0-cp311-abi3-win_amd64.whl
vqubit-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl CPython 3.11 abi3 Linux musl 1.2+ x86-64 Details for vqubit-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl
vqubit-0.2.0-cp311-abi3-musllinux_1_2_aarch64.whl CPython 3.11 abi3 Linux musl 1.2+ ARM64 Details for vqubit-0.2.0-cp311-abi3-musllinux_1_2_aarch64.whl
vqubit-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for vqubit-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl
vqubit-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for vqubit-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl
vqubit-0.2.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for vqubit-0.2.0-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 3.4 MB

Release files / vqubit-0.2.0.tar.gz

Download URL vqubit-0.2.0.tar.gz
Size 236.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c2f6744e1c32d8d7653d8f32545ca71aa309e2d0d0a3841253690c9296affad6
BLAKE2b-256 checksum
How to use checksums
6da32bb79cead6e4642f96e1c5b2643de711af17defd557d7c5cec684f4885ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / vqubit-0.2.0-cp311-abi3-win_amd64.whl

Download URL vqubit-0.2.0-cp311-abi3-win_amd64.whl
Size 569.6 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b3b53a59bfd5b6f1bc4e0a08306e77776107e5bede0bb19988d5c1f19c69c24a
BLAKE2b-256 checksum
How to use checksums
3dd8d8f5ebc6bdaaf30e47faa4846cf209c1ae792319749e8445a7d494af23d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / vqubit-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL vqubit-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl
Size 540.3 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
7678df2607c883fd9f92bfc807ae9932c14d082589e1405a047d8fba332087b3
BLAKE2b-256 checksum
How to use checksums
e2baabc3b1c62fe664bc250a61ed2595c03a1db28b774b5041828e374afb5df2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / vqubit-0.2.0-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL vqubit-0.2.0-cp311-abi3-musllinux_1_2_aarch64.whl
Size 544.2 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
957fa08b3d1635f1dd79e4db7b6d0ddb7b688735020422d9eaa660f54cb37643
BLAKE2b-256 checksum
How to use checksums
925486707b96cf1a4e9d27c910836495c585e50de00977c0d65776bfffda7509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / vqubit-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL vqubit-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 551.2 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
fb790f6b9ba094438c367a54de646add75eaf2ab1811d37904760395be994add
BLAKE2b-256 checksum
How to use checksums
761270c28229df663946cd848d9f2a2807a12b8845cb26de07a54de031aa553e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / vqubit-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL vqubit-0.2.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 543.5 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
08a835b8f178fad63f3abdca86b5721c53467556d8ea8441de1b7b723bb310d2
BLAKE2b-256 checksum
How to use checksums
c49321d965396d25b8f2b87fbbf345d0bba703455823b52e231325581c2ce1bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Release files / vqubit-0.2.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL vqubit-0.2.0-cp311-abi3-macosx_11_0_arm64.whl
Size 457.7 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fc4c60c26a9f4b155015e984e0d4e2598616c15b3b9153f6eea73927d912a2fa
BLAKE2b-256 checksum
How to use checksums
fff3223f6bbccbd9cb3fae22785b22f806558e3afce305a15157c09510d49fed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

Security for vqubit 0.2.0

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.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for vqubit-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page