cirq.sim.CliffordState

A state of the Clifford simulation.

The state is stored using two complementary representations: Anderson's tableaux form and Bravyi's CH-form. The tableaux keeps track of the stabilizer operations, while the CH-form allows access to the full state vector (including phase).

Gates and measurements are applied to each representation in O(n^2) time.

Methods

apply_single_qubit_unitary

View source

apply_unitary

View source

copy

View source

destabilizers

View source

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

stabilizers

View source

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

wave_function

View source

THIS FUNCTION IS DEPRECATED.

IT WILL BE REMOVED IN cirq v0.10.0.

use state_vector instead

__eq__

View source

__ne__

View source