You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
review: copy before filtering, flag branch use instead of counting it
- remove_measurements/remove_barriers(in_place=False) took the copy after
filtering, and the nested filter rewrites box and if bodies in place,
so the original lost its nested measurements and barriers too
- branch operations are now flagged rather than counted: a branch body
can be visited more than once and a custom gate marks both its own
operands and those of its expansion, so the count was never meaningful
- reverse-order test used a branch operand that maps to itself, which
could not tell a walked branch from a skipped one
0 commit comments