FullyParameterizedGate.
convert_to_matrix
Static method that converts a matrix-like object to a 2D numpy array.