pygsti.objects.LinearlyParameterizedGate.deriv_wrt_params

LinearlyParameterizedGate.deriv_wrt_params(wrtFilter=None)

Construct a matrix whose columns are the vectorized derivatives of the flattened gate matrix with respect to a single gate parameter. Thus, each column is of length gate_dim^2 and there is one column per gate parameter.

Returns:Array of derivatives, shape == (dimension^2, num_params)
Return type:numpy array