We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 339db79 commit 639f85eCopy full SHA for 639f85e
1 file changed
cirq-core/cirq/transformers/lightcone_filter.py
@@ -27,7 +27,7 @@
27
28
@transformer_api.transformer()
29
def lightcone_filter(
30
- circuit: cirq.Circuit, *, context: cirq.TransformerContext | None = None
+ circuit: cirq.AbstractCircuit, *, context: cirq.TransformerContext | None = None
31
) -> cirq.Circuit:
32
"""Apply a lightcone filter to the input circuit.
33
@@ -36,7 +36,7 @@ def lightcone_filter(
36
measurements removed.
37
"""
38
39
- support = set()
+ support: set[cirq.Qid] = set()
40
new_moments = []
41
for moment in circuit[::-1]:
42
new_ops = []
0 commit comments