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 (the default) and English. It starts from "what is a qubit?" and builds up to circuits and simulation.

Status

vqubit is alpha (0.3.0). It exports every one of cirq-core's top-level names, and the simulators, optimizers, transformers and devices are in place; the call conventions that still differ are listed in Differences from Cirq. 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.3.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.3.0
File Size Uploaded Provenance Actions
vqubit-0.3.0.tar.gz 270.4 kB With provenance Details for vqubit-0.3.0.tar.gz

Built distributions (wheels)

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

Total release size: 3.6 MB

Release files / vqubit-0.3.0.tar.gz

Download URL vqubit-0.3.0.tar.gz
Size 270.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bb6e0fb7d6cb38ea93fd996f004e2e67e1d8080be75b2442a5f6b8308ddc0c8c
BLAKE2b-256 checksum
How to use checksums
1d53e76bb14c3c853c93b614509b3bab38b60f651cd76980d39cffdd4dfaf9d3
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 19, 2026.

Transparency log

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

Download URL vqubit-0.3.0-cp311-abi3-win_amd64.whl
Size 589.5 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
467b3286b1d3b24a32d5d4b5cf682b9781f7ed8e0d05bfb37cbd34a7fe8f08c0
BLAKE2b-256 checksum
How to use checksums
6e09907d140d8ce358722c9be2afd62a9eeffbc93340711672477b3608fc6698
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 19, 2026.

Transparency log

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

Download URL vqubit-0.3.0-cp311-abi3-musllinux_1_2_x86_64.whl
Size 560.1 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
115ff1e940123c0a0241516be149d0cc486a185ad4772380f151ced6a6536c0b
BLAKE2b-256 checksum
How to use checksums
d8b43aca796c7d00430b992ceeea39ce7c0a3cb61d47eb46bc90b6d36de8c3b1
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 19, 2026.

Transparency log

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

Download URL vqubit-0.3.0-cp311-abi3-musllinux_1_2_aarch64.whl
Size 563.9 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
c27dc95ece9aa59a1909d75ef83d33f649c0df0097d99bcbdf35ec2568ce250f
BLAKE2b-256 checksum
How to use checksums
503b3e6c0b4d770a9761cec190a02ef59617d6bd32e14bcaeed959d8d192350c
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 19, 2026.

Transparency log

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

Download URL vqubit-0.3.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 571.0 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
7fbade9f055b0bf176c973e2aef60bd60899aa90c88116ab1781cb827a108e73
BLAKE2b-256 checksum
How to use checksums
87e8e0e1b20e1b2857363a27ef308350535940e98ba7226c4f5adadf65029cb0
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 19, 2026.

Transparency log

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

Download URL vqubit-0.3.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 563.3 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
37e1865cd2e08056ad190889e6a94110e35eee210f70fc6c0bfde6ea48a53f94
BLAKE2b-256 checksum
How to use checksums
36abe3c7eebf938c195fa49e57847df2f6e236aedabef970067cfd95fef61185
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 19, 2026.

Transparency log

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

Download URL vqubit-0.3.0-cp311-abi3-macosx_11_0_arm64.whl
Size 477.5 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3dd653937d47c8aa37deedf12c66ad6b5876842096df1bb3de1c95102d39e895
BLAKE2b-256 checksum
How to use checksums
915439aa5806e1a0f92b493d88b1f17d6cf674fc419b5d59ee62fbdc29d17b9a
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 19, 2026.

Transparency log

Security for vqubit 0.3.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.3.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 19, 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