pygsti.modelmembers.term.compose_terms_with_mag

pygsti.modelmembers.term.compose_terms_with_mag#

compose_terms_with_mag(terms, magnitude)#

Compose multiple terms and set the resulting term’s magnitude.

Usually, for performance reasons, the magnitude of a composed term is not set. This function explicitly does so.

Parameters:
  • terms (sequence) – A sequence of RankOneTerm objects.

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

Return type:

RankOneTerm