pygsti.baseobjs.polynomial.bulk_load_compact_polynomials#
- bulk_load_compact_polynomials(vtape, ctape, keep_compact=False, max_num_vars=100)#
Create a list of Polynomial objects from a “tape” of their compact versions.
- Parameters:
vtape (numpy.ndarray) – A 1D array of variable indices that, together with ctape, specify an efficient means for evaluating a set of polynoials.
ctape (numpy.ndarray) – A 1D array of coefficients that, together with vtape, specify an efficient means for evaluating a set of polynoials.
keep_compact (bool, optional) – If True the returned list has elements which are (vtape,ctape) tuples for each individual polynomial. If False, then the elements are
Polynomialobjects.max_num_vars (int, optional) – The maximum number of variables the created polynomials are allowed to have.
- Returns:
A list of Polynomial objects.
- Return type:
list