|  View source on GitHub | 
A quantum state that is a tensor product of one qubit states.
cirq.ProductState(
    states=None
)
For example, the |00⟩ state is cirq.KET_ZERO(q0) * cirq.KET_ZERO(q1).
The |+⟩ state is a length-1 tensor product state and can be constructed
with cirq.KET_PLUS(q0).
| Attributes | |
|---|---|
| qubits | |
| states | Dataclass field | 
Methods
projector
projector(
    qubit_order: (cirq.QubitOrder | None) = None
) -> np.ndarray
The projector associated with this state expressed as a matrix.
This is |s⟩⟨s| where |s⟩ is this state.
state_vector
state_vector(
    qubit_order: (cirq.QubitOrder | None) = None
) -> np.ndarray
The state-vector representation of this state.
__eq__
__eq__(
    other
) -> bool
Return self==value.
__getitem__
__getitem__(
    qubit: cirq.Qid
) -> _NamedOneQubitState
Return the _NamedOneQubitState at the given qubit.
__iter__
__iter__() -> Iterator[tuple[cirq.Qid, _NamedOneQubitState]]
__len__
__len__() -> int
__mul__
__mul__(
    other: cirq.ProductState
) -> cirq.ProductState