[BUG] Using mcm_method="one-shot"
when no MCMs are present causes an error
#928
Labels
bug
Something isn't working
Issue description
Specifying
mcm_method="one-shot"
when no MCMs are present in a qjit'd QNode raises an error when the return type is an iterable.Expected behavior: Expect
mcm_method="one-shot"
to not affect a circuit without any MCMs.Actual behavior:
ValueError: Incompatible shapes for broadcasting: shapes=[(10, 3), (1, 0)]
Reproduces how often: 100%
System information:
Source code and tracebacks
Traceback:
Additional information
The text was updated successfully, but these errors were encountered: