The kernel appears to have died

Hello!

So when i try to run

import pennylane as qml

i get the error

The kernel appears to have died. It will restart automatically.

I have used standard installation of pennylane, in python 3.8 in a macbook pro m1. (i use exactly the same installation on a windows pc and it works), any ideas?

Hi @NikSchet,

Thanks for reaching out!

The first version of Python to officially support M1 processors is 3.9.1, so I suggest you try setting up a new environment with that. Our dev team has recently started testing against 3.9, so PennyLane should run smoothly.

That said, if you are using any of the machine learning interfaces, you may run into trouble. In particular, tensorflow only supports up to Python 3.8, so I suggest to use the numpy/autograd interface, or pytorch.

Please let us know how it goes and if you run into further issues!

1 Like