pygsti.modelmembers.operations.krausop.KrausOperatorInterface#

class KrausOperatorInterface#

Bases: object

Adds an interface for extracting the Kraus operator(s) of an operation (quantum map).

Methods

__init__()

from_kraus_operators(kraus_operators[, ...])

Create an operation by specifying its Kraus operators.

set_kraus_operators(kraus_operators)

Set the parameters of this operation by specifying its Kraus operators.

Attributes

kraus_operators

A list of this operation's Kraus operators as numpy arrays.

num_kraus_operators

The number of Kraus operators in the Kraus decomposition of this operation.

classmethod from_kraus_operators(kraus_operators, basis='pp', evotype='default', state_space=None)#

Create an operation by specifying its Kraus operators.

Parameters:
  • kraus_operators (list) – A list of numpy arrays, each of which specifyies a Kraus operator.

  • basis (str or Basis, optional) – The basis in which the created operator’s superoperator representation is in.

  • evotype (Evotype or str, optional) – The evolution type. The special value “default” is equivalent to specifying the value of pygsti.evotypes.Evotype.default_evotype.

  • state_space (StateSpace, optional) – The state space for this operation. If None a default state space with the appropriate number of qubits is used.

set_kraus_operators(kraus_operators)#

Set the parameters of this operation by specifying its Kraus operators.

Parameters:

kraus_operators (list) – A list of numpy arrays, each of which specifyies a Kraus operator.

Return type:

None

property kraus_operators#

A list of this operation’s Kraus operators as numpy arrays.

property num_kraus_operators#

The number of Kraus operators in the Kraus decomposition of this operation.