Skip to main content

GraphStateSim

This is a modified repository of Simon Anders' library GraphSim, using pybind11. GraphSim is able to simulate an important class of stabilizer circuits via a graph state representation with local clifford operators.

If you find this codebase useful, please cite the original paper here.

Installation

PyPI

Install with pip:

pip install graphstatesim

Then in python, import graphsim.

Building locally

To install, run

uv build

then navigate to the dist/ folder and pip install the wheel.

uv pip install dist/*.whl

Documentation

Documentation regarding the python bindings can be found at:

https://graphsim.readthedocs.io/en/latest/

License

This code is not actively supported or maintained, but pull requests for minor bug fixes will be accepted.

This is GraphSim, a library to simulate stabilizer quantum circuits.

  • Author: Simon Anders, sanders@fs.tum.de, University of Innsbruck
  • Version: v.10 (initial release)
  • Date: 1 Feb 2005 (last change), 18 Apr 2005 (release prep)
  • (c) 2005, released under GPL

For information about this package, please read

  • the paper describing the algorithm: S. Anders, H. J. Briegel: Fast Simulation of Stabilizer Circuits using a Graph State Formalism quant-ph/0504117
  • the documentation of the C++ library in doc/html/index.html
  • the documentation of the Python bindings in doc/graphsim_py.html
  • the file COPYING for the text of the GPL

If you use this paper for scientific work, please cite the paper referenced above in your publication.

In case of problems, please submit an issue.

Metadata

Release files for graphstatesim 0.3.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 graphstatesim 0.3.0
File Actions
graphstatesim-0.3.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for graphstatesim-0.3.0-cp312-cp312-win_amd64.whl
graphstatesim-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl CPython 3.12 CPython 3.12 Linux musl 1.2+ x86-64 Details for graphstatesim-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl
graphstatesim-0.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for graphstatesim-0.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
graphstatesim-0.3.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for graphstatesim-0.3.0-cp312-cp312-macosx_11_0_arm64.whl

Total release size: 1.8 MB

Release files / graphstatesim-0.3.0-cp312-cp312-win_amd64.whl

Download URL graphstatesim-0.3.0-cp312-cp312-win_amd64.whl
Size 342.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
bfb4ba5bdfd2350ecd56d51ea4081d6e7296d0e7cb732524eaf97e4a46cebc11
BLAKE2b-256 checksum
How to use checksums
fd6423418d7e819712c79c4fd8af9b918ffe55148a077f086769ebc7095f3550
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / graphstatesim-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl

Download URL graphstatesim-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl
Size 1.2 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
65e7ef9c21a2438bee866aea2360703119111ae2c6b6524aaf230ff883ef63d2
BLAKE2b-256 checksum
How to use checksums
dec26c6223f11be24d17e383213e5f63cb04510d09cb696af6b1219e3f9c36e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / graphstatesim-0.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL graphstatesim-0.3.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 158.6 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d02147f4fff3b09623b29af0f0b08cb23e07977830ccbc3559cc2d6b2688f7fe
BLAKE2b-256 checksum
How to use checksums
7680fe4b27b2ee2b9fce867292d7809a833903793cdb0fce621b05c9d729bd71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / graphstatesim-0.3.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL graphstatesim-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Size 123.4 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8a762fa200fb2ecbc5f81c49ca3e2c9e23e6351991ea4f3acac64a0b7d1c53dc
BLAKE2b-256 checksum
How to use checksums
f5200b832c226b255739bbbdf3b220602513b04bf270a88d2529689eb14258c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for graphstatesim 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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