TeamGraphix / graphix

measurement-based quantum computing (MBQC) compiler and simulator
https://graphix.readthedocs.io
Apache License 2.0
60 stars 21 forks source link

32 replace tensornetwork simulator backend #34

Closed masato-fuk closed 1 year ago

masato-fuk commented 1 year ago

Before submitting, please check the following:

Then, please fill in below:

Context (if applicable): na

Description of the change: Replace TNbackend's dependent library from tensornetwork to quimb. File and class names are changed(mps.py -> tensornet.py, class MPS -> class TensorNetworkBackend). Most part of the basic usage remains unchanged.

Related issue:

32

also see that checks (github actions) pass. If lint check keeps failing, try installing black==22.8.0 as behavior seems to vary across versions.

shinich1 commented 1 year ago

Also - it might be good to add tutorial explaining how the TN backend works (esp. 'opt' prep of graph state)? perhaps a topic for another issue though.

Could you also update examples and docs/source/simulator.rst

masato-fuk commented 1 year ago

@shinich1 I have completed all the changes for this issue, and I will make another issue to upgrade the examples and tutorial of the tensor network backend. Could you please review the changes?