Skip to content

Commit bc729af

Browse files
authored
Clarify virtual tag docstring (quantumlib#5161)
Propose that instead of changing whether virtual tags are applied to noise models, we instead just clarify what it means to be virtual. Fixes: quantumlib#2984
1 parent fbd1240 commit bc729af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cirq/ops/tags.py

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
class VirtualTag:
1919
"""A TaggedOperation tag indicating that the operation is virtual.
2020
21+
Virtual operations are one that do not correspond to some physical signal sent
22+
to the quantum computer. An example of such an operation is a Z rotation gates
23+
where the gate is not enacted in the circuit, but instead is tracked in software.
24+
Another example is noise that has been added to a gate to make it appear as
25+
a noisy gate in a `cirq.NoiseModel`.
26+
2127
Operations marked with this tag are presumed to have zero duration of their
2228
own, although they may have a non-zero duration if run in the same Moment
2329
as a non-virtual operation.

0 commit comments

Comments
 (0)