GithubHelp home page GithubHelp logo

Comments (6)

LeiZhang-116-4 avatar LeiZhang-116-4 commented on August 15, 2024

Hello. I think you may need to check your Paddle Quantum version. All linear algbrea related functions, including the dagger function, are compatible with numpy.ndarray since version 2.2.2 of the Paddle Quantum.

from quantum.

BoltzmannEntropy avatar BoltzmannEntropy commented on August 15, 2024

I am on a machine without AVX (rror: Your machine doesn't support AVX, but the installed PaddlePaddle is avx core, you should reinstall paddlepaddle with no-avx core.), so this is what I had to do:

RUN python3.8 -m pip download paddlepaddle==2.3.2 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/noavx/stable.html --no-index --no-deps
# does not work well RUN python3.8 -m pip install paddlepaddle==2.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple paddle-quantum
RUN python3.8 -m pip install paddlepaddle-2.3.2-cp38-cp38-linux_x86_64.whl paddle-quantum
Python 3.8.10 | packaged by conda-forge | (default, May 11 2021, 07:01:05) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
>>> import paddle_quantum
>>> paddle_quantum.__version__
'2.2.0'

`ERROR: Cannot install paddle-quantum==2.2.2 and paddlepaddle 2.3.2 (from /paddlepaddle-2.3.2-cp38-cp38-linux_x86_64.whl) because these package versions have conflicting dependencies.
`

Any other option?

from quantum.

LeiZhang-116-4 avatar LeiZhang-116-4 commented on August 15, 2024

Well I am not familiar with AVX. But a possible temporary solution is to run the old tutorials supported by the version 2.2.0 of Paddle Quantum.

But I still recommend you to upgrade Paddle Quantum to the newest version for better user experiences (if you can find other ways to solve the installation problem).

from quantum.

BoltzmannEntropy avatar BoltzmannEntropy commented on August 15, 2024

Since paddle-quantum is dependent on paddle, and the latest paddle version for no-avx is 2.3.2, I can not install 2.2.2.
I really want the newest version, but this is an Ubuntu based docker running inside OSX with the M1 chip. See here:
https://github.com/BoltzmannEntropy/QMLDocker

from quantum.

LeiZhang-116-4 avatar LeiZhang-116-4 commented on August 15, 2024

Is it possible to downgrade your PaddlePaddle version to 2.3.0 and then upgrade Paddle Quantum?

from quantum.

BoltzmannEntropy avatar BoltzmannEntropy commented on August 15, 2024

Splendid, it works, thank you so much. I updated the docker file.

from quantum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.