Module: cirq.protocols.qid_shape_protocol

Classes

class SupportsExplicitNumQubits: A unitary, channel, mixture or other object that operates on a known

class SupportsExplicitQidShape: A unitary, channel, mixture or other object that operates on a known

Functions

num_qubits(...): Returns the number of qubits, qudits, or qids val operates on.

qid_shape(...): Returns a tuple describing the number of quantum levels of each

RaiseTypeErrorIfNotProvided (0,)
RaiseTypeErrorIfNotProvidedInt -13407807929942597099574024998205846127479365820592393377723561443721764030073546976801874298166903427690031858186486050853753882811946569946433649006084096
TDefault Instance of typing.TypeVar