torchquantum icon indicating copy to clipboard operation
torchquantum copied to clipboard

Apple Silicon Mac needs one more step: install hdf5

Open frogcjn opened this issue 2 years ago • 0 comments

git clone https://github.com/mit-han-lab/torchquantum.git
cd torchquantum
brew install hdf5
export HDF5_DIR="$(brew --prefix hdf5)"
pip install --editable .
python fix_qiskit_parameterization.py

reference: https://stackoverflow.com/questions/66741778/how-to-install-h5py-needed-for-keras-on-macos-with-m1

frogcjn avatar May 21 '22 00:05 frogcjn