Skip to main content

vqubit

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

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 and macOS (x86-64 and ARM).
  • 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.1.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.

Windows support is currently blocked by the build tool vcraft, which does not yet produce Windows wheels.

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.1.0

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

Built distributions (wheels)

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

Total release size: 2.7 MB

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

Download URL vqubit-0.1.0-cp311-abi3-musllinux_1_2_x86_64.whl
Size 551.1 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
bd3bdc9cb2f9078590887b466bdfa025c5903646820bf79f3ba5ce39ce7e9a89
BLAKE2b-256 checksum
How to use checksums
663bd884005a9b85b8f94c5527a4c4aa78912b0ece99cba8a79879e8e7ad9828
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 15, 2026.

Transparency log

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

Download URL vqubit-0.1.0-cp311-abi3-musllinux_1_2_aarch64.whl
Size 555.0 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
9d471e4534ed18a40566a8e64e61f81b7260ec8234bc001bbc3469fb8a2f808c
BLAKE2b-256 checksum
How to use checksums
f026d0538f968a59a931b248edb6938ffb69fe600b44c0dc39f51c20bb867aeb
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 15, 2026.

Transparency log

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

Download URL vqubit-0.1.0-cp311-abi3-manylinux_2_28_x86_64.whl
Size 561.0 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
661d253616a792c5d3d8b3d2b5d35939d6ac11f7a62fa3c2faf13a5c5d7215dd
BLAKE2b-256 checksum
How to use checksums
71813f70d407ff96efb8610590c8717f4cdfa03de8088374fc316eddf33c47ee
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 15, 2026.

Transparency log

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

Download URL vqubit-0.1.0-cp311-abi3-manylinux_2_28_aarch64.whl
Size 555.5 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
a6ec93ef63466d4907d3589d6ebf5c65434e385a78a53bd618d2140d95cd3f57
BLAKE2b-256 checksum
How to use checksums
3451185134dd65515069347e88ee35433fb735e279bb6535f982b6342d081ff0
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 15, 2026.

Transparency log

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

Download URL vqubit-0.1.0-cp311-abi3-macosx_11_0_arm64.whl
Size 463.6 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
382bc0d10420458ca369aa449f9684cef744ad5534c1a494356d53fe35a9622a
BLAKE2b-256 checksum
How to use checksums
0690c1cffd7b3117342206d19b079c8de260945ae6c9f0f5a00318ecf02a78c0
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 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

5 release files

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