Skip to content

Commit

Permalink
remove _experimental flag (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyu00 authored Jan 24, 2024
1 parent 2a39617 commit 4214f4f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion qiskit_ibm_runtime/options/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ def _set_if_exists(name: str, _inputs: dict, _options: dict) -> None:
# Remove image
inputs.pop("image", None)

inputs["_experimental"] = True
inputs["version"] = OptionsV2._VERSION
_remove_dict_unset_values(inputs)

Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_ibm_primitives_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def test_run_unset_options(self, primitive):
inst = primitive(session=session)
inst.run(**get_primitive_inputs(inst))
inputs = session.run.call_args.kwargs["inputs"]
for fld in ["tasks", "_experimental"]:
for fld in ["tasks"]:
inputs.pop(fld, None)
expected = {"skip_transpilation": False, "execution": {"init_qubits": True}, "version": 2}
self.assertDictEqual(inputs, expected)
Expand Down
1 change: 0 additions & 1 deletion test/unit/test_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ def test_program_inputs(self, opt_cls):
}

inputs = opt_cls._get_program_inputs(asdict(opt))
inputs.pop("_experimental", None)
self.assertDictEqual(inputs, expected)
self.assertFalse(simulator, f"simulator not empty: {simulator}")

Expand Down

0 comments on commit 4214f4f

Please sign in to comment.