cirq.value.ProductState

A quantum state that is a tensor product of one qubit states.

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).

qubits

states Dataclass field

Methods

projector

View source

The projector associated with this state expressed as a matrix.

This is |s⟩⟨s| where |s⟩ is this state.

state_vector

View source

The state-vector representation of this state.

__eq__

View source

Return self==value.

__getitem__

View source

Return the _NamedOneQubitState at the given qubit.

__iter__

View source

__len__

View source

__mul__

View source