Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for the Identity gate #153

Closed
andreamari opened this issue Sep 20, 2021 · 2 comments · Fixed by #162
Closed

Better support for the Identity gate #153

andreamari opened this issue Sep 20, 2021 · 2 comments · Fixed by #162

Comments

@andreamari
Copy link

Currently a Qiskit IGate is converted to a qml.ops.ops.QubitUnitary.
The reason is that qml.ops.Identity is only supported in PennyLane as an observable. Likely, in the future it will be supported as a an operation too. There is already an issue for this PennyLaneAI/pennylane#1632 .

So, as soon as PennyLaneAI/pennylane#1632 will be fixed, it would be nice to properly support the Identity gate also in this plug-in. It should be enough to add a new line in this conversion map:

QISKIT_OPERATION_MAP = {

@CatalinaAlbornoz
Copy link

Hi @andreamari, thank you very much for bringing this up! I agree that it would be useful to support it in the plugin. We will note it down!

@andreamari
Copy link
Author

Thanks @dime10 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants