pygsti.modelmembers.term.RankOneEffectTerm#
- class RankOneEffectTerm(rep, evotype)#
Bases:
RankOneTerm,_NoMagnitudeA POVM effect term.
Methods
__init__(rep, evotype)compose(all_terms)Compose all_terms and set the composed term's magnitude to magnitude.
copy()Copies this term.
create_from(coeff, pre_effect, post_effect, ...)Creates a
RankOneEffectTermusing natural arguments.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.
- compose(all_terms)#
Compose all_terms and set the composed term’s magnitude to magnitude.
- Parameters:
all_terms (list) – List of the terms to compose.
- Return type:
- copy()#
Copies this term.
- Return type:
- classmethod create_from(coeff, pre_effect, post_effect, evotype, state_space)#
Creates a
RankOneEffectTermusing natural arguments.- Parameters:
coeff (Polynomial or complex) – The term’s coefficient.
pre_effect (POVMEffect or EffectRep or numpy.ndarray) – The ‘bra’ (left-side) effect of the operator.
post_effect (POVMEffect or EffectRep or numpy.ndarray) – The ‘ket’ (right-side) effect of the operator
evotype (Evotype or str) – The evolution type
state_space (StateSpace or str) – The state space of this term.
- Return type:
- 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:
- torep()#
Access to the underlying representation object.