View source on GitHub |
A state of the Clifford simulation.
cirq.CliffordState(
qubit_map, initial_state: Union[int, 'cirq.StabilizerStateChForm'] = 0
)
The state is stored using Bravyi's CH-form which allows access to the full state vector (including phase).
Gates and measurements are applied to each representation in O(n^2) time.
Methods
apply_measurement
apply_measurement(
op: 'cirq.Operation',
measurements: Dict[str, List[int]],
prng: np.random.RandomState,
collapse_state_vector=True
)
apply_unitary
apply_unitary(
op: 'cirq.Operation'
)
copy
copy() -> 'cirq.CliffordState'
state_vector
state_vector()
to_numpy
to_numpy() -> np.ndarray
__eq__
__eq__(
other: _SupportsValueEquality
) -> bool
__ne__
__ne__(
other: _SupportsValueEquality
) -> bool