PennyLaneAI / pennylane

PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
https://pennylane.ai
Apache License 2.0
2.29k stars 590 forks source link

`map_wires` support for a batch of tapes #6295

Closed albi3ro closed 5 days ago

albi3ro commented 5 days ago

Context:

qml.map_wires should be able to apply to anything a transform can apply to. But it was raising an error when applied to a batch of tapes.

Description of the Change:

Defers validation about transform input types to TransformDispatcher, allowing map_wires to be applied to more things.

Benefits:

Possible Drawbacks:

Related GitHub Issues:

codecov[bot] commented 5 days ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.70%. Comparing base (912f188) to head (47fd1cc). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6295 +/- ## ========================================== - Coverage 99.70% 99.70% -0.01% ========================================== Files 444 444 Lines 42226 42223 -3 ========================================== - Hits 42103 42100 -3 Misses 123 123 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.