Skip to content

Commit

Permalink
Force qpy to use version 12
Browse files Browse the repository at this point in the history
  • Loading branch information
jesus-talavera-ibm committed Dec 2, 2024
1 parent 0427589 commit 5346ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit_ibm_transpiler/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def get_qpy_from_circuit(
) -> str:
if isinstance(input_circ, QuantumCircuit) or isinstance(input_circ, list):
output_b = io.BytesIO()
qpy.dump(input_circ, output_b)
qpy.dump(programs=input_circ, file_obj=output_b, version=12)
qpy_string = base64.b64encode(output_b.getvalue()).decode("utf-8")
else:
raise TypeError(
Expand Down

0 comments on commit 5346ca3

Please sign in to comment.