cirq.StateVectorMixin

class cirq.StateVectorMixin(qubit_map: Optional[Dict[cirq.ops.raw_types.Qid, int]] = None, *args, **kwargs)[source]

A mixin that provide methods for objects that have a state vector.

__init__(qubit_map: Optional[Dict[cirq.ops.raw_types.Qid, int]] = None, *args, **kwargs)[source]
Parameters

qubit_map – A map from the Qubits in the Circuit to the the index of this qubit for a canonical ordering. This canonical ordering is used to define the state (see the state_vector() method).