def _kraus_to_operator(data, input_dim, output_dim):
if data[<NUM_LIT:1>] is not None or len(data[<NUM_LIT:0>]) > <NUM_LIT:1>:<EOL><INDENT>raise QiskitError(<EOL>'<STR_LIT>')<EOL><DEDENT>return data[<NUM_LIT:0>][<NUM_LIT:0>]<EOL>
Transform Kraus representation to Operator representation.