double_ket_to_matrix¶ double_ket_to_matrix(op_ket: ndarray) → ndarray[source]¶ Return the matrix representation of an operator. Parameters: op_ket (ndarray) – an operator in the double-ket representation. Returns: The matrix representation of the operator op. Return type: ndarray