pygsti.models.modelnoise.StochasticNoise

pygsti.models.modelnoise.StochasticNoise#

class StochasticNoise(error_probs, parameterization='stochastic')#

Bases: OpNoise

Pauli 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 StochasticNoiseOp or LindbladErrorgen is 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:

LinearOperator

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:

LinearOperator