AbstractCircuit.freeze
should not reallocate moments
#5816
Labels
area/circuits
good first issue
This issue can be resolved by someone who is not familiar with the codebase. A good starting issue.
kind/bug-report
Something doesn't seem to work.
triage/accepted
there is consensus amongst maintainers that this is a real bug or a reasonable feature to add
Description of the issue
When freezing circuits,
Moment
instances should be reused since they are immutable. This was previously the case, but seems to have changed recently (possibly due to #5332).How to reproduce the issue
Cirq version
1.1.0.dev20220801180412
The text was updated successfully, but these errors were encountered: