AttributeError: module 'pennylane' has no attribute 'CRX'


#1

Hello

The Controlled X rotation which is described in the documentation, does not seem to be on the current pennylane library.

Is it normal or there is a problem with my library import.

regards and and a nice summer,

Barthélémy


#2

Hi @barthelemymp! The online documentation is currently set to display the documentation for the latest master branch on GitHub, which now has support for CRX gates. If you wish to install the development version, you can do the following:

pip install git+https://github.com/XanaduAI/PennyLane

Once the next version of PennyLane is released, these will be included by default.