How to import from Cirq

I’d like to import a code I developed using Cirq (Google). This code is about Qutrit systems (Qubit: superposition between states 0 and 1, Qutrit: superposition between states 0, 1, 2).

Hi @LucasCasagrande, welcome to the forum!

Pennylane provides support for cirq via a plugin. You will need to install this plugin as it isn’t included in the standard pennylane installations.

If you are then using your own code, you should be able to import your python classes, function etc. from the .py file you have made and the cirq functionality should be supported by the plugin.

Feel free to share an example of your code!