View source on GitHub |
An object that can be turned into QASM code if it knows its qubits.
cirq.SupportsQasmWithArgsAndQubits(
*args, **kwargs
)
Returning NotImplemented
or None
means "don't know how to turn into
QASM". In that case fallbacks based on decomposition and known unitaries
will be used instead.
Methods
_qasm_
_qasm_(
qubits: Tuple['cirq.Qid'],
args: cirq.QasmArgs
) -> Union[None, NotImplementedType, str]