cirq_web.circuits.symbols.DefaultResolver

Default symbol resolver implementation. Takes information

Inherits From: SymbolResolver

from circuit_diagram_info, if unavailable, returns information representing an unknown symbol.

Methods

resolve

View source

Checks for the _circuit_diagram_info attribute of the operation, and if it exists, build the symbol information from it. Otherwise, builds symbol info for an unknown operation.

Args
operation the cirq.Operation object to resolve

__call__

View source

Call self as a function.