Skip to content

Commit 639f85e

Browse files
types
1 parent 339db79 commit 639f85e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cirq-core/cirq/transformers/lightcone_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
@transformer_api.transformer()
2929
def lightcone_filter(
30-
circuit: cirq.Circuit, *, context: cirq.TransformerContext | None = None
30+
circuit: cirq.AbstractCircuit, *, context: cirq.TransformerContext | None = None
3131
) -> cirq.Circuit:
3232
"""Apply a lightcone filter to the input circuit.
3333
@@ -36,7 +36,7 @@ def lightcone_filter(
3636
measurements removed.
3737
"""
3838

39-
support = set()
39+
support: set[cirq.Qid] = set()
4040
new_moments = []
4141
for moment in circuit[::-1]:
4242
new_ops = []

0 commit comments

Comments
 (0)