Skip to main content

qvmc

qvmc is a research-oriented Python library for quantum variational Monte Carlo workflows. It packages the reusable core of this repository into an importable library with:

  • restricted Boltzmann machine wavefunction models
  • classical sampling helpers for spin systems
  • Pauli operator construction and connection utilities
  • a lightweight NumPy Adam optimizer
  • an optional Qiskit backend for quantum-inspired proposal sampling

Installation

Install the core package:

pip install qvmc

Install the optional Qiskit backend:

pip install "qvmc[qiskit]"

For local development from this repository:

pip install -e ".[test]"

Quickstart

import numpy as np

from qvmc import RBM, SpinOperator

spin = SpinOperator(n_qubits=2)
hamiltonian = -spin.z(0) * spin.z(1) - 0.5 * spin.x(0) - 0.5 * spin.x(1)

rbm = RBM(N=2, M=2, seed=7)
energy = rbm.energy_exact(hamiltonian)

print(np.real(energy))

Package layout

  • qvmc.models: RBM-based variational models
  • qvmc.sampling: classical sampling and probability helpers
  • qvmc.operators: Pauli algebra and spin-operator utilities
  • qvmc.optim: optimization helpers
  • qvmc.backends.qiskit: optional Qiskit integration

Documentation

Sphinx docs live in docs/ and are structured around:

  • installation and quickstart
  • conceptual overview of the core workflow
  • API reference
  • Qiskit backend guide
  • examples that replace the old script-style entrypoints

Build them locally with:

sphinx-build -b html docs docs/_build/html

Examples

Examples live in examples/ and are import-first workflows rather than command-line scripts:

  • examples/core_ground_state_workflow.py
  • examples/qiskit_sampling_demo.py

Development validation

Recommended local validation steps:

python -m pytest
python -m build

Metadata

Release files for qvmc 0.1.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 qvmc 0.1.0
File Size Uploaded Provenance Actions
qvmc-0.1.0.tar.gz 18.7 kB With provenance Details for qvmc-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qvmc 0.1.0
File Interpreter ABI Platform Actions
qvmc-0.1.0-py3-none-any.whl Python 3 none any Details for qvmc-0.1.0-py3-none-any.whl

Total release size: 38.7 kB

Release files / qvmc-0.1.0.tar.gz

Download URL qvmc-0.1.0.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8a976c5f9b41c0d07bdf3df8c40961912c248b9fe656873268a59b18e5421aa5
BLAKE2b-256 checksum
How to use checksums
50766dc60a33343d414463cf1c6fbed68b31e4b60544b2c19928dfaed85bee02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 18, 2026.

Transparency log

Release files / qvmc-0.1.0-py3-none-any.whl

Download URL qvmc-0.1.0-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5186b99a7009b8b50f88d85594ccc9166a252ece8b8c09d7bda2f5aaae23c86
BLAKE2b-256 checksum
How to use checksums
afd4adecf6273fd38612607aa529427394e4eb653ebcbd60b026a41f55b66e16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 18, 2026.

Transparency log

Security for qvmc 0.1.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for qvmc-0.1.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 Apr 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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