cirq_web.circuits.symbols.DefaultResolver
Default symbol resolver implementation.
Inherits From: SymbolResolver
Takes information
from circuit_diagram_info, if unavailable, returns information representing
an unknown symbol.
Methods
resolve
View source
resolve(
operation: cirq.Operation
) -> Optional[cirq_web.circuits.symbols.SymbolInfo
]
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__(
operation: cirq.Operation
) -> Optional[cirq_web.circuits.symbols.SymbolInfo
]
Call self as a function.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]