Skip to main content

A Python library for simulating MBQC circuits

Project description

MentPy: A Measurement-Based Quantum computing simulator.

The MentPy library is an open-source software for simulations of measurement-based quantum computing circuits. Currently, this package is in its alpha version and many features are still in development.

Installation

The MentPy library can be installed using pip with

pip install mentpy

or directly from the source code for the latest version with

pip install git+https://github.com/BestQuark/mentpy.git

Usage

To simulate a measurement pattern, you can use the mp.PatternSimulator.

import mentpy as mp

st = mp.templates.grid_cluster(2,4)
ps = mp.PatternSimulator(st)
output = ps(np.random.rand(len(st.outputc)))

For visualization of circuits, you can use the mp.draw(st) function

image

Documentation

The documentation for MentPy can be found here.

Contributing

We welcome contributions to MentPy! Please see our contributing guidelines for more information.

License

MentPy is licensed under the GNU General Public License v3.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mentpy-0.1.0a8.tar.gz (56.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mentpy-0.1.0a8-py3-none-any.whl (71.3 kB view details)

Uploaded Python 3

File details

Details for the file mentpy-0.1.0a8.tar.gz.

File metadata

  • Download URL: mentpy-0.1.0a8.tar.gz
  • Upload date:
  • Size: 56.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mentpy-0.1.0a8.tar.gz
Algorithm Hash digest
SHA256 0cd270cc2159ae07248d3af46545f95d8c87bc173bb9defed2a912d4a9fe802b
MD5 e217f74f8335313848f1e27f734ee1ac
BLAKE2b-256 8a9de9e1659a14367b7920d9519e838689aec6cdded9de859121f8961b13a731

See more details on using hashes here.

File details

Details for the file mentpy-0.1.0a8-py3-none-any.whl.

File metadata

  • Download URL: mentpy-0.1.0a8-py3-none-any.whl
  • Upload date:
  • Size: 71.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for mentpy-0.1.0a8-py3-none-any.whl
Algorithm Hash digest
SHA256 7dc3a1c8a17122a56b63014f1735ad2f1c487293d65ad5179b400755b2a9871a
MD5 2dea7295808d83f740e144ac5efa3aa5
BLAKE2b-256 7e149387e9e33ebc6af48538c1402ab66d835e96e9bcd259de5060c549e51cad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page