pygsti.modelmembers.term.exponentiate_terms

pygsti.modelmembers.term.exponentiate_terms#

exponentiate_terms(terms, order, postterm, cache=None, order_base=None)#

Exponentiate a list of terms.

This function collects those terms of the orders given in orders. Optionally post-multiplies the single term postterm (so this term actually acts before the exponential-derived terms).

Parameters:
  • terms (list) – The list of terms to exponentiate. All these terms are considered “first order” terms.

  • order (int) – An integers specifying the order of the terms to collect.

  • postterm (RankOneTerm) – A term that is composed first (so “post” in the sense of matrix multiplication, not composition). May be the identity (no-op) term.

  • cache (dict, optional) – A dictionary used to cache results for speeding up repeated calls to this function. Usually an empty dictionary is supplied to the first call.

  • order_base (float, optional) – What constitutes 1 order of magnitude. If None, then polynomial coefficients are used.

Returns:

A list of RankOneTerm objects giving the terms at order.

Return type:

list