pygsti.evotypes

Sub-package of evolution types, or “evotypes”.

Subpackages

Submodules

Package Contents

Classes

Evotype

The base class for all other evotype classes.

class pygsti.evotypes.Evotype(name, prefer_dense_reps=False)

Bases: object

The base class for all other evotype classes.

Provides an interface for creating representations. The create_* methods specify an API used by the operation classes so they can create the representation they need.

Parameters
  • name (str) – The (module) name of the evolution type

  • prefer_dense_reps (bool, optional) – Whether the dense representation provided by this evolution type should be preferred over more specific types, such as those for composed, embedded, and exponentiated operations. Most often this is set to True when using a MatrixForwardSimulator in order to get a performance gain.

default_evotype
_reptype_to_attrs
classmethod cast(cls, obj, default_prefer_dense_reps=False)
__getstate__(self)
__setstate__(self, state)
__hash__(self)

Return hash(self).

__eq__(self, other_evotype)

Return self==value.

__str__(self)

Return str(self).

property minimal_space(self)
minimal_dim(self, state_space)
supported_reptypes(self)
supports(self, reptype)
create_dense_superop_rep(self, mx, state_space)
create_dense_unitary_rep(self, mx, super_basis, state_space)
create_composed_rep(self, factor_op_reps, state_space)
create_embedded_rep(self, state_space, targetLabels, embedded_rep)
create_experrorgen_rep(self, errorgen_rep)
create_stochastic_rep(self, basis, rate_poly_dicts, initial_rates, seed_or_state, state_space)
create_sum_rep(self, factor_reps, state_space)
create_clifford_rep(self, unitarymx, symplecticrep, super_basis, state_space)
create_repeated_rep(self, rep_to_repeat, num_repetitions, state_space)
create_standard_rep(self, standard_name, super_basis, state_space)
create_sparse_rep(self, data, indices, indptr, state_space)
create_lindblad_errorgen_rep(self, lindblad_term_dict, basis, state_space)
create_dense_state_rep(self, vec, state_space)
create_pure_state_rep(self, purevec, super_basis, state_space)
create_computational_state_rep(self, zvals, super_basis, state_space)
create_composed_state_rep(self, state_rep, op_rep, state_space)
create_tensorproduct_state_rep(self, factor_state_reps, state_space)
create_conjugatedstate_effect_rep(self, state_rep)
create_computational_effect_rep(self, zvals, super_basis, state_space)
create_tensorproduct_effect_rep(self, povm_factors, effect_labels, state_space)
create_composed_effect_rep(self, errmap_rep, effect_rep, errmap_name, state_space)
create_term_rep(self, coeff, mag, logmag, pre_state, post_state, pre_effect, post_effect, pre_ops, post_ops)
create_direct_term_rep(self, coeff, mag, logmag, pre_state, post_state, pre_effect, post_effect, pre_ops, post_ops)
conjugate_state_term_rep(self, term_rep)

Turns a state term => effect term via conjugation of the state