Stores common configurable options for transformers.
cirq.TransformerContext(
logger: cirq.TransformerLogger
= cirq.TransformerContext.logger
,
tags_to_ignore: Tuple[Hashable, ...] = (),
deep: bool = False
)
Used in the notebooks
Used in the tutorials |
---|
Args | |
---|---|
logger
|
cirq.TransformerLogger instance, which is a stateful logger used for logging
the actions of individual transformer stages. The same logger instance should be
shared across different transformer calls.
|
tags_to_ignore
|
Tuple of tags which should be ignored while applying transformations on a
circuit. Transformers should not transform any operation marked with a tag that
belongs to this tuple. Note that any instance of a Hashable type (like str ,
cirq.VirtualTag etc.) is a valid tag.
|
deep
|
If true, the transformer should be recursively applied to all sub-circuits wrapped inside circuit operations. |
Methods
__eq__
__eq__(
other
)
Return self==value.