Skip to content

Commit

Permalink
Bump qpy version in encoder (#1522)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Mar 16, 2024
1 parent 0106964 commit 5919473
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions qiskit_ibm_runtime/utils/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5919473

Please sign in to comment.