The MentPy library is an open-source software for simulations of
measurement-based quantum computing circuits. Currently, this package is under
development and is not ready for public use.
The MentPy library can be installed using pip with
pip install mentpyor directly from the source code for the latest version with
pip install git+https://github.com/BestQuark/mentpy.gitTo 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
The documentation for MentPy can be found here.
We welcome contributions to MentPy! Please see our contributing guidelines for more information.
MentPy is licensed under the GNU General Public License v3.0.