pygsti.modelmembers.states

pygsti.modelmembers.states#

Sub-package holding model state preparation objects.

Functions

check_deriv_wrt_params(state[, ...])

Checks the deriv_wrt_params method of a State object.

convert(state, to_type, basis[, ...])

TODO: update docstring Convert SPAM vector to a new type of parameterization.

create_from_dmvec(superket_vector, state_type)

create_from_pure_vector(pure_vector, state_type)

TODO: docstring -- create a State from a state vector

finite_difference_deriv_wrt_params(state[, ...])

Computes a finite-difference Jacobian for a State object.

optimize_state(vec_to_optimize, target_vec)

Optimize the parameters of vec_to_optimize.

state_type_from_op_type(op_type)

Decode an op type into an appropriate state type.

Modules

composedstate

The ComposedState class and supporting functionality.

computationalstate

The ComputationalBasisState class and supporting functionality.

cptpstate

The CPTPState class and supporting functionality.

densestate

The DenseState and DensePureState classes and supporting functionality.

fullpurestate

The FullPureState class and supporting functionality.

fullstate

The FullState class and supporting functionality.

purestate

The EmbeddedPureState class and supporting functionality.

state

The State class and supporting functionality.

staticpurestate

The StaticPureState class and supporting functionality.

staticstate

The StaticState class and supporting functionality.

tensorprodstate

The TensorProductState class and supporting functionality.

tpstate

The TPState class and supporting functionality.