From 5919473dba32c3956cf666796784a785997de071 Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Sat, 16 Mar 2024 14:36:01 -0400 Subject: [PATCH] Bump qpy version in encoder (#1522) --- qiskit_ibm_runtime/utils/json.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/qiskit_ibm_runtime/utils/json.py b/qiskit_ibm_runtime/utils/json.py index 53ab980f2..7d08d75ae 100644 --- a/qiskit_ibm_runtime/utils/json.py +++ b/qiskit_ibm_runtime/utils/json.py @@ -228,9 +228,7 @@ def default(self, obj: Any) -> Any: # pylint: disable=arguments-differ if isinstance(obj, QuantumCircuit): kwargs: Dict[str, object] = {"use_symengine": bool(optionals.HAS_SYMENGINE)} if _TERRA_VERSION[0] >= 1: - # NOTE: This can be updated only after the server side has - # updated to a newer qiskit version. - kwargs["version"] = 10 + kwargs["version"] = 11 value = _serialize_and_encode( data=obj, serializer=lambda buff, data: dump( @@ -258,9 +256,7 @@ def default(self, obj: Any) -> Any: # pylint: disable=arguments-differ if isinstance(obj, Instruction): kwargs = {"use_symengine": bool(optionals.HAS_SYMENGINE)} if _TERRA_VERSION[0] >= 1: - # NOTE: This can be updated only after the server side has - # updated to a newer qiskit version. - kwargs["version"] = 10 + kwargs["version"] = 11 # Append instruction to empty circuit quantum_register = QuantumRegister(obj.num_qubits) quantum_circuit = QuantumCircuit(quantum_register)