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.
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
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
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.