Skip to content

Commit 316dc91

Browse files
committed
Undo wrong improvement in sorting dict
The output object is different with this change. So undo it.
1 parent 83b8ddf commit 316dc91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qiskit/qobj/converters/pulse_instruction.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ def _convert_parametric_pulse(
902902
try:
903903
pulse_name = instruction.label
904904
except AttributeError:
905-
sorted_params = sorted(instruction.parameters.keys())
905+
sorted_params = sorted(tuple(instruction.parameters.items()), key=lambda x: x[0])
906906
base_str = "{pulse}_{params}".format(
907907
pulse=instruction.pulse_shape, params=str(sorted_params)
908908
)

0 commit comments

Comments
 (0)