pygsti.baseobjs.polynomial.compact_polynomial_list

pygsti.baseobjs.polynomial.compact_polynomial_list#

compact_polynomial_list(list_of_polys)#

Create a single vtape,ctape pair from a list of normal Polynomials

Parameters:

list_of_polys (list) – A list of Polynomial objects.

Returns:

  • vtape (numpy.ndarray) – A “tape” of the variable indices.

  • ctape (numpy.ndarray) – A “tape” of the polynomial coefficients.