Closed albi3ro closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.67%. Comparing base (
9d79f5d
) to head (61723dc
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Context:
Description of the Change:
Adds an error to
qml.queuing.process_queue
if it encounters an object without a_queue_category
property that sorts it into the operations or measurements queue.Benefits:
An informative error instead of silently ignoring objects in the queue.
Possible Drawbacks:
Non-circuit objects can still be placed into an
AnnotatedQueue
.qml.apply
still works on non-circuit objects.We still silently ignore objects with a
_queue_category == None
, likeHermitian
orSparseHamiltonian
. We should fix the queuing behavior of these observables at some point, but we can do that later.Related GitHub Issues:
Fixes #5865 , [sc-66169]