Skip to content

Commit

Permalink
Clarify virtual tag docstring (quantumlib#5161)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dabacon authored Mar 29, 2022
1 parent fbd1240 commit bc729af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cirq/ops/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
class VirtualTag:
"""A TaggedOperation tag indicating that the operation is virtual.
Virtual operations are one that do not correspond to some physical signal sent
to the quantum computer. An example of such an operation is a Z rotation gates
where the gate is not enacted in the circuit, but instead is tracked in software.
Another example is noise that has been added to a gate to make it appear as
a noisy gate in a `cirq.NoiseModel`.
Operations marked with this tag are presumed to have zero duration of their
own, although they may have a non-zero duration if run in the same Moment
as a non-virtual operation.
Expand Down

0 comments on commit bc729af

Please sign in to comment.