|
1 |
| -Run TensorCircuit on TensorlowBackend with Apple M1 Pro |
| 1 | +Run TensorCircuit on TensorlowBackend with Apple M1 |
2 | 2 | ========================================================
|
3 | 3 | Contributed by (Yuqin Chen)
|
4 | 4 |
|
5 |
| -Why We Can't Run TensorCircuit on TensorlowBackend with Apple M1 Pro |
6 |
| ---------------------------------------------------------------- |
7 |
| -TensorCircuit requires Tensorflow to support TensorflowBackend. However for Apple M1 Pro, Tensorflow package cannot be properly installed by a usual method like "pip install tensorflow". As well, the TensorCircuit package cannot be properly installed by a usual method "pip install tensorcircuit" |
| 5 | +Why We Can't Run TensorCircuit on TensorlowBackend with Apple M1 |
| 6 | +----------------------------------------------------------------------- |
| 7 | +TensorCircuit requires Tensorflow to support TensorflowBackend. However for Apple M1, Tensorflow package cannot be properly installed by a usual method like "pip install tensorflow". As well, the TensorCircuit package cannot be properly installed by a usual method "pip install tensorcircuit" |
8 | 8 | All we need is to properly install tensorflow on Apple M1 Pro and then download the TensorCircuit package to the local and install it.
|
9 | 9 |
|
10 |
| -Install tensorflow on Apple M1 Pro |
11 |
| ---------------------------------------------------------------- |
| 10 | +Install tensorflow on Apple M1 |
| 11 | +------------------------------------ |
12 | 12 | According to the instructions below or the installation manual on Apple's official website `tensorflow-metal PluggableDevice <https://developer.apple.com/metal/tensorflow-plugin/>`_, you can install tensorflow step by step.
|
13 | 13 |
|
14 | 14 | **Step1: Environment setup**
|
@@ -92,12 +92,12 @@ for v2.6
|
92 | 92 | python -m pip install tensorflow-metal
|
93 | 93 |
|
94 | 94 |
|
95 |
| -Install TensorCircuit on Apple M1 Pro |
96 |
| ---------------------------------------------------------------- |
| 95 | +Install TensorCircuit on Apple M1 |
| 96 | +----------------------------------- |
97 | 97 | After properly install tensorflow, you can continue install TensorCircuit.
|
98 |
| -Up to now, for Apple M1 pro, the Tensorcircuit package can not be installed by simply |
| 98 | +Up to now, for Apple M1, the Tensorcircuit package can not be installed by simply |
99 | 99 | conducting "pip install tensorcircuit", which will lead to improper way for Tensorflow installation.
|
100 |
| -One need to download the installation package to the local, only in this way the installation proceess can recognize the Apple M1 pro environment. |
| 100 | +One need to download the installation package to the local, only in this way the installation proceess can recognize the Apple M1 environment. |
101 | 101 |
|
102 | 102 | One should download the TensorCircuit package to local at first.
|
103 | 103 |
|
|
0 commit comments