PennyLaneAI / qml

Introductions to key concepts in quantum programming, as well as tutorials and implementations from cutting-edge quantum computing research.
https://pennylane.ai/qml
Apache License 2.0
517 stars 183 forks source link

Update demos to use new opmath #1067

Closed Qottmann closed 3 months ago

Qottmann commented 3 months ago

Remove explicit qml.operation.Tensor instances, as well as qml.ops.Hamiltonian usage

branching against dev as new opmath will be default only in v0.36 (scheduled for 07. May)

github-actions[bot] commented 3 months ago

👋 Hey, looks like you've updated some demos!

🐘 Don't forget to update the dateOfLastModification in the associated metadata files so your changes are reflected in Glass Onion (search and recommendations).

Please hide this comment once the field(s) are updated. Thanks!

github-actions[bot] commented 3 months ago

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

Note: It may take several minutes for updates to this pull request to be reflected on the deployed site.

Qottmann commented 3 months ago

Because deprecation warnings are treated as failures, I just pushed another change removing all occurences of explicit H.ops or H.coeffs calls and replaced them with H_coeffs, H_ops = H.terms().

edit: now with all demos running, there seems to be more work required. I will tag again for review once I fix all of them 👍

Qottmann commented 3 months ago

Currently blocked by https://github.com/PennyLaneAI/pennylane/pull/5475 and https://github.com/PennyLaneAI/pennylane-qulacs/pull/64 to be merged

Any way to skip that demo for the moment to make sure the others pass?

Qottmann commented 3 months ago

[sc-53506]

Qottmann commented 3 months ago

Currently blocked by tutorial_qubit_tapering due to https://github.com/PennyLaneAI/pennylane/issues/5532

Edit: Doing a work-around to not be blocked by this for the moment. Left a Todo in the PR description to change it back once that issue is resolved

Qottmann commented 3 months ago

Just noticed a bug in another demo with the latest updates to pennylane. Should be fixed now 🤞

Qottmann commented 3 months ago

Looks good to me! To be sure, have we checked that all of these still run without error?

Yes, this PR is in fact building all demos due to the tag