diff --git a/circuit_knitting/cutting/cutting_evaluation.py b/circuit_knitting/cutting/cutting_evaluation.py index 9c0b2246f..995aed8d9 100644 --- a/circuit_knitting/cutting/cutting_evaluation.py +++ b/circuit_knitting/cutting/cutting_evaluation.py @@ -345,7 +345,7 @@ def _generate_cutting_experiments( # If the input was a single quantum circuit, return the subexperiments as a list subexperiments_out: list[QuantumCircuit] | dict[ str | int, list[QuantumCircuit] - ] = subexperiments_dict + ] = dict(subexperiments_dict) assert isinstance(subexperiments_out, dict) if isinstance(circuits, QuantumCircuit): assert len(subexperiments_out.keys()) == 1