/mentpy

MentPy is an open-source software for simulations of measurement-based quantum computing circuits and quantum machine learning.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

MentPy: A Measurement-Based Quantum computing simulator.

Documentation Status

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.