pygsti.modelmembers.term.RankOnePrepTermWithMagnitude#

class RankOnePrepTermWithMagnitude(rep, evotype)#

Bases: RankOneTerm, _HasMagnitude

A state preparation term with magnitude tracking.

Methods

__init__(rep, evotype)

compose(all_terms, magnitude)

Compose all_terms and set the composed term's magnitude to magnitude.

copy()

Copies this term.

embed(state_space, target_labels)

Embeds this term's action as a part of a larger state space.

torep()

Access to the underlying representation object.

Attributes

logmagnitude

The logarithm of this term's magnitude (held separately for performance).

magnitude

This term's magnitude.

compose(all_terms, magnitude)#

Compose all_terms and set the composed term’s magnitude to magnitude.

Parameters:
  • all_terms (list) – List of the terms to compose.

  • magnitude (float) – The magnitude of the composed term.

Return type:

RankOneTerm

copy()#

Copies this term.

Return type:

RankOneTerm

embed(state_space, target_labels)#

Embeds this term’s action as a part of a larger state space.

Parameters:
  • state_space (StateSpace) – The full state space this term’s action will be embedded into.

  • target_labels (tuple) – A tuple of the target labels.

Return type:

RankOnePrepTermWithMagnitude

torep()#

Access to the underlying representation object.

property logmagnitude#

The logarithm of this term’s magnitude (held separately for performance).

property magnitude#

This term’s magnitude.