cirq.OpIdentifier

Identifies an operation by gate and (optionally) target qubits.

Used in the notebooks

Used in the tutorials

gate_type

qubits

Methods

is_proper_subtype_of

View source

Returns true if this is contained within op_id, but not equal to it.

If this returns true, (x in self) implies (x in op_id), but the reverse implication does not hold. op_id must be more general than self (either by accepting any qubits or having a more general gate type) for this to return true.

__contains__

View source

__eq__

View source

__ne__

View source