pygsti.objects.FullyParameterizedSPAMVec¶
-
class
pygsti.objects.
FullyParameterizedSPAMVec
(vec)¶ - Encapsulates a SPAM vector that is fully parameterized, that is,
- each element of the SPAM vector is an independent parameter.
-
__init__
(vec) Initialize a FullyParameterizedSPAMOp object.
Parameters: vec (array_like or SPAMVec) – a 1D numpy array representing the SPAM operation. The shape of this array sets the dimension of the SPAM op.
Methods
__init__
(vec)Initialize a FullyParameterizedSPAMOp object. convert_to_vector
(V)Static method that converts a vector-like object to a 2D numpy dim x 1 column array. copy
()Copy this SPAM vector. deriv_wrt_params
()Construct a matrix whose columns are the derivatives of the SPAM vector with respect to a single param. from_vector
(v)Initialize the SPAM vector using a 1D array of parameters. get_dimension
()Return the dimension of the gate matrix. num_params
()Get the number of independent parameters which specify this SPAM vector. set_vector
(vec)Attempts to modify SPAMVec parameters so that the specified raw SPAM vector becomes vec. to_vector
()Get the SPAM vector parameters as an array of values.