cirq.sim.StabilizerStateChForm

A representation of stabilizer states using the CH form,

$|\psi> = \omega U_C U_H |s>$

This representation keeps track of overall phase.

Reference: https://arxiv.org/abs/1808.00128

num_qubits The number of qubits in the system.
initial_state The computational basis representation of the state as a big endian int.

Methods

copy

View source

inner_product_of_state_and_x

View source

Returns the amplitude of x'th element of the state vector, i.e.

project_Z

View source

Applies a Z projector on the q'th qubit.

Returns: a normalized state with Z_q |psi> = z |psi>

state_vector

View source

to_state_vector

View source

update_sum

View source

Implements the transformation (Proposition 4 in Bravyi et al)

i^alpha U_H (|t> + i^delta |u>) = omega W_C W_H |s'>

__eq__

View source

__ne__

View source