PennyLaneAI / pennylane-qiskit

The PennyLane-Qiskit plugin integrates the Qiskit quantum computing framework and IBM Q with PennyLane.
https://docs.pennylane.ai/projects/qiskit
Apache License 2.0
194 stars 66 forks source link

Fix asserts for `Conditionals` for controlled flow operations #559

Closed obliviateandsurrender closed 5 months ago

obliviateandsurrender commented 5 months ago

Conditional checks were failing as they were trying to check equality between underlying measurements, which will turn out to be false due to different hash resulting from different id.

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (eb865f7) to head (75d1bea). Report is 14 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #559 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 7 7 Lines 557 553 -4 ========================================= - Hits 557 553 -4 ```

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