Bug in pennylane 0.24

Hi, i have recently upgraded my pennylane version to 0.24 and i am facing following error when importing it

del ar.autoray._FUNCS["torch", "linalg.eigh"]
KeyError: ('torch', 'linalg.eigh')

i also have it if i install an older version too.
Does someone knows a way around?
thanks
best wishes
Oriel

Hi @Oriel,

Thanks for opening this topic.

Can you please share some more code or explain what you’re looking to do here?

PennyLane works with Autoray 0.3.1 but not with versions 0.2.5 and older.

Hi,
i am really sorry i was using an old version of pennylane after all. Now it works you can delete this thread.
Thanks so much
Cheers
Oriel

Oh I’m glad you got the problem fixed!

I am facing the exact same issue. I am using python version - 3.6 with tensorflow version 0.12. How can i make it work for my code with these versions?[quote=“Oriel, post:1, topic:1994, full:true”]
Hi, i have recently upgraded my pennylane version to 0.24 and i am facing following error when importing it

del ar.autoray._FUNCS["torch", "linalg.eigh"]
KeyError: ('torch', 'linalg.eigh')

i also have it if i install an older version too.
Does someone knows a way around?
thanks
best wishes
Oriel
[/quote]

Hi, some things l learnt along the way to install jax properly:

  • use python3.9
  • on mac, install jax with conda ‘conda install jax -c conda-forge’

hope it helps
Oriel

Hi @Oriel, thank you for sharing these insights!

@Vaishnavi_Chandilkar, as I just responded here unfortunately you would need to use PennyLane v0.15.1 if you want to keep using Python 3.6. If possible the best option is to upgrade your Python and use the latest PennyLane version available.

Thank you @CatalinaAlbornoz . I upgraded the python version and it worked!

That’s great to hear @Vaishnavi_Chandilkar!

Enjoy using PennyLane!

1 Like