We're celebrating World Quantum Day 2022! Join us

cirq.transformers.transformer_api.NoOpTransformerLogger

All calls to this logger are a no-op

Inherits From: TransformerLogger

Methods

log

View source

Log additional metadata corresponding to the currently active transformer stage.

Args
*args The additional metadata to log.
level Logging level to control the amount of metadata that gets put into the context.

Raises
ValueError If there's no active transformer on the stack.

register_final

View source

Register the end of the currently active transformer stage.

Args
circuit Final transformed output circuit from the transformer stage.
transformer_name Name of the (currently active) transformer stage which ends.

Raises
ValueError If transformer_name is different from currently active transformer name.

register_initial

View source

Register the beginning of a new transformer stage.

Args
circuit Input circuit to the new transformer stage.
transformer_name Name of the new transformer stage.

show

View source

Show the stored logs >= level in the desired format.

Args
level The logging level to filter the logs with. The method shows all logs with a LogLevel >= level.