:py:mod:`pygsti.baseobjs.opcalc.slowopcalc` =========================================== .. py:module:: pygsti.baseobjs.opcalc.slowopcalc .. autoapi-nested-parse:: Python implementations of common polynomial operations Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: pygsti.baseobjs.opcalc.slowopcalc.abs_sum_bulk_eval_compact_polynomials_complex pygsti.baseobjs.opcalc.slowopcalc.compact_deriv pygsti.baseobjs.opcalc.slowopcalc.float_product Attributes ~~~~~~~~~~ .. autoapisummary:: pygsti.baseobjs.opcalc.slowopcalc.bulk_eval_compact_polynomials_real pygsti.baseobjs.opcalc.slowopcalc.bulk_eval_compact_polynomials_complex pygsti.baseobjs.opcalc.slowopcalc.bulk_eval_compact_polynomials_derivs_real pygsti.baseobjs.opcalc.slowopcalc.bulk_eval_compact_polynomials_derivs_complex .. py:data:: bulk_eval_compact_polynomials_real .. py:data:: bulk_eval_compact_polynomials_complex .. py:data:: bulk_eval_compact_polynomials_derivs_real .. py:data:: bulk_eval_compact_polynomials_derivs_complex .. py:function:: abs_sum_bulk_eval_compact_polynomials_complex(vtape, ctape, paramvec, dest_size, **kwargs) Equivalent to np.sum(np.abs(bulk_eval_compact_polynomials_complex(.))) .. py:function:: compact_deriv(vtape, ctape, wrt_params) Take the derivative of one or more compact Polynomials with respect to one or more variables/parameters. Parameters ---------- vtape, ctape : numpy.ndarray Specifies "variable" and "coefficient" 1D numpy arrays to differentiate. These "tapes" can be generated by concatenating the tapes of individual complact-polynomial tuples returned by :meth:`Polynomial.compact`. wrt_params : list The variable indices to differentiate with respect to. They must be sorted in ascending order. E.g. "[0,3]" means separatey differentiate w.r.t x_0 and x_3 (concatenated first by wrt_param then by poly). Returns ------- vtape, ctape : numpy.ndarray .. py:function:: float_product(ar)