cirq.sim.CliffordState

A state of the Clifford simulation.

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

View source

apply_unitary

View source

copy

View source

destabilizers

View source

THIS FUNCTION IS DEPRECATED.

IT WILL BE REMOVED IN cirq v0.11.

use CliffordTableau instead

Returns the destabilizer generators of the state. These are n operators {S_1,S_2,...,S_n} such that along with the stabilizer generators above generate the full Pauli group on n qubits.

perform_measurement

View source

THIS FUNCTION IS DEPRECATED.

IT WILL BE REMOVED IN cirq v0.11.

Use the apply_measurement instead

stabilizers

View source

THIS FUNCTION IS DEPRECATED.

IT WILL BE REMOVED IN cirq v0.11.

use CliffordTableau instead

Returns the stabilizer generators of the state. These are n operators {S_1,S_2,...,S_n} such that S_i |psi> = |psi>

state_vector

View source

to_numpy

View source

__eq__

View source

__ne__

View source