Builds a SymbolInfo object based off of a designated operation
cirq_web.circuits.symbols.resolve_operation(
operation: cirq.Operation,
resolvers: Iterable[cirq_web.circuits.symbols.SymbolResolver
]
) -> cirq_web.circuits.symbols.SymbolInfo
and list of resolvers. The latest resolver takes precendent.
Args |
operation
|
the cirq.Operation object to resolve
|
resolvers
|
a list of SymbolResolvers which provides instructions
on how to build SymbolInfo objects.
|
Raises |
ValueError
|
if the operation cannot be resolved into a symbol.
|