jcmgray / quimb

A python library for quantum information and many-body calculations including tensor networks.
http://quimb.readthedocs.io
Other
467 stars 107 forks source link

Related to reproduce quantum simulation using tensor network #87

Closed ZichangHe closed 2 years ago

ZichangHe commented 3 years ago

Hello, I am trying to produce the code in tutorial https://quimb.readthedocs.io/en/latest/tensor-circuit.html

I first define a circuit via circ = qtn.Circuit(N), then when I run the code, it shows the error as image

I am wondering is it some issues related to the installation version? Thanks.

jcmgray commented 3 years ago

Hi @ZichangHe, yes I'm afraid that is functionality that has not been released yet - if you install quimb directly from github you should be able to run the example!

ZichangHe commented 3 years ago

Hi @jcmgray, thanks for your reply. I tried python setup.py build and python setup.py install. But it has not been successfully installed. Could you please specify how to install it from Github?

jcmgray commented 3 years ago

The following should work if you have the other dependencies already installed:

pip install --no-deps -U git+git://github.com/jcmgray/quimb.git@develop

or if you have cloned a local copy and want a 'development' install:

cd quimb
pip install --no-deps -U -e .

The installation section of the docs has a few more details.

ZichangHe commented 3 years ago

Thank you a lot, @jcmgray. It works smoothly now.