pygsti.modelmembers.term.RankOneOpTerm#
- class RankOneOpTerm(rep, evotype)#
Bases:
RankOneTerm,_NoMagnitudeAn operation 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_op, post_op, evotype, ...)Creates a
RankOneOpTermusing 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_op, post_op, evotype, state_space)#
Creates a
RankOneOpTermusing natural arguments.- Parameters:
coeff (Polynomial or complex) – The term’s coefficient.
pre_op (LinearOperator or OpRep or numpy.ndarray) – The left-side operator, i.e. A in rho => A rho B^dag.
post_op (LinearOperator or OpRep or numpy.ndarray) – The right-side operator, i.e. B in rho => A rho B^dag.
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.