PaddlePaddle / Quantum

Other
567 stars 176 forks source link

Integration on OSX with the M1 chip (arm64)? #40

Closed BoltzmannEntropy closed 1 year ago

BoltzmannEntropy commented 1 year ago

Hello, Is there a version for OSX with the M1 chip?

Thanks,

wangzihe1996 commented 1 year ago

It's a pity that Paddle Quantum doesn't have a mac m1 version yet. But you can install the x86_64 version of anaconda (or miniconda). Then you can install Paddle Quantum in the virtual python environment.

BoltzmannEntropy commented 1 year ago

Hello, the x86 version works without a GPU?

Thanks,

wangzihe1996 commented 1 year ago

It's slightly complicated. You can refer to "Use Paddle Quantum on GPU". In briefly, you need to install paddlepaddle-gpu and paddle-quantum. You can read this document to know how to install paddlepaddle-gpu.

BoltzmannEntropy commented 1 year ago

Oh, I asked about installing WITHOUT a GPU.

wangzihe1996 commented 1 year ago

You just need to pip install paddle-quantum, which installs the CPU version by default.

BoltzmannEntropy commented 1 year ago

@wangzihe1996 this does NOT work on OSX, which was my original question. Is there a way to install the CPU version on OSX M1 chip?!

BoltzmannEntropy commented 1 year ago

Anyone?

LeiZhang-116-4 commented 1 year ago

Hello. Following the instructions in the installation guide, the Paddle Quantum should work properly with OSX M1 chip under the x86_64 version of anaconda.

There are many reasons for faling to install packages with OSX M1 chip. One possible explanation is that your Python virtual environment has already been contaminated. You may need to specify more details (like how it did not work) so that further solutions can be adviced.

BoltzmannEntropy commented 1 year ago

I ended up creating a docker: https://github.com/BoltzmannEntropy/QMLDocker