pygsti.models.modelnoise.StochasticNoise#
- class StochasticNoise(error_probs, parameterization='stochastic')#
Bases:
OpNoisePauli stochastic noise.
- Parameters:
error_probs (tuple) – The Pauli-stochastic rates for each of the non-trivial Paulis (a 3-tuple is expected for a 1Q gate and a 15-tuple for a 2Q gate).
parameterization ({"stochastic", or "lindblad"}) – Determines whether a
StochasticNoiseOporLindbladErrorgenis used to represent the stochastic noise, respectively. When “stochastic”, elements of error_probs are used as coefficients in a linear combination of stochastic channels (the default). When “lindblad”, the elements of error_probs are coefficients of stochastic error generators (which are exponentiated to form a LindbladErrorgen with “cptp” non-Hammiltonian parameterization).
Methods
__init__(error_probs[, parameterization])create_errorgen(evotype, state_space)Create an error generator for this noise operation.
create_errormap(evotype, state_space)Create an error map (operator or superoperator) for this noise operation.
- create_errorgen(evotype, state_space)#
Create an error generator for this noise operation.
- Parameters:
evotype (str or Evotype) – The evolution type for the returned operator.
state_space (StateSpace) – The state space for the returned operator.
- Return type:
- create_errormap(evotype, state_space)#
Create an error map (operator or superoperator) for this noise operation.
- Parameters:
evotype (str or Evotype) – The evolution type for the returned operator.
state_space (StateSpace) – The state space for the returned operator.
- Return type: