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.2.1). 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.2.1

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.1
File Size Uploaded Provenance Actions
vqubit-0.2.1.tar.gz 239.0 kB With provenance Details for vqubit-0.2.1.tar.gz

Built distributions (wheels)

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

Total release size: 3.4 MB

Release files / vqubit-0.2.1.tar.gz

Download URL vqubit-0.2.1.tar.gz
Size 239.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1cb7edcb195c7ac31fdc78ef2cedadba3f83dc198ad2f3b122d16d766dee50d7
BLAKE2b-256 checksum
How to use checksums
42e0ef8d7a16e22dff08102f99b17549e438d6b23f7b7dd394377966680a3845
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.2.1-cp311-abi3-win_amd64.whl

Download URL vqubit-0.2.1-cp311-abi3-win_amd64.whl
Size 570.2 kB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b65d29c96351d0abf018cdeec3b360c16ff78d6fddd497df33fbd3118bf2e96c
BLAKE2b-256 checksum
How to use checksums
1be2d3a7fec82b58cf3af51e30d020b450c04aa325e03560767d5c9be47cb691
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.2.1-cp311-abi3-musllinux_1_2_x86_64.whl

Download URL vqubit-0.2.1-cp311-abi3-musllinux_1_2_x86_64.whl
Size 540.8 kB
Tags CPython 3.11 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
1bd25345f55721a6ec16654cd6f7536963caba4f250da13dd7e503b63e62c1dc
BLAKE2b-256 checksum
How to use checksums
3bf4700955fada93bb279a0cefad47afe3a8e796bf9434663f33f531bc84d936
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.2.1-cp311-abi3-musllinux_1_2_aarch64.whl

Download URL vqubit-0.2.1-cp311-abi3-musllinux_1_2_aarch64.whl
Size 544.7 kB
Tags CPython 3.11 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
c36e2ca10a114a67dcdd4617da87685629c20e765f49a47ffc35eb02d43abd11
BLAKE2b-256 checksum
How to use checksums
c561b371bb737d43efdc16130fc62d7b4693d88e45677a9a98803e4749ff6962
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.2.1-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL vqubit-0.2.1-cp311-abi3-manylinux_2_28_x86_64.whl
Size 551.7 kB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
a114a29f6235c3a2a5760cb1baf22cadaecd151f1e21b22e49eb69cc9cc19091
BLAKE2b-256 checksum
How to use checksums
77ce9487c61e9c7a35b4c58659591d7a2f6af1b514565338f26af9f83fabd0af
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.2.1-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL vqubit-0.2.1-cp311-abi3-manylinux_2_28_aarch64.whl
Size 544.1 kB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
e27b970e167de89dad85fbdcab10d8f173ab5761615d319b64f9b2f59d7e988b
BLAKE2b-256 checksum
How to use checksums
94f75ab76924beed40b12bdfdc20bb5c7db37350711511e68747f297c10b098b
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.2.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL vqubit-0.2.1-cp311-abi3-macosx_11_0_arm64.whl
Size 458.3 kB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3109ac677aa20f8adc4257d747757110010a9eecd1b92b4d8e4d2cd941dd1b04
BLAKE2b-256 checksum
How to use checksums
7d92b960440cce67f0c06e8563e52dc6a235b606bce019c4abdbe0cd04b50bbb
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.2.1

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