pygsti.objects.StaticGate.deriv_wrt_params

StaticGate.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. An empty 2D array in the StaticGate case (num_params == 0).

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