diff --git a/qiskit/providers/basicaer/unitary_simulator.py b/qiskit/providers/basicaer/unitary_simulator.py index bd1645b5ce8c..f2cc1a8df4e8 100644 --- a/qiskit/providers/basicaer/unitary_simulator.py +++ b/qiskit/providers/basicaer/unitary_simulator.py @@ -206,13 +206,13 @@ def _get_unitary(self): @deprecate_arg( "run_input", - deprecation_description="Using a qobj for the first argument to UnitarySimulatorPy.run()", + deprecation_description="Using a qiskit.qobj.QasmQobj for the first argument to UnitarySimulatorPy.run()", since="0.46.0", pending=False, predicate=lambda run_input: isinstance(run_input, (QuantumCircuit, list)), ) def run(self, run_input, **backend_options): - """Run run_input asynchronously. + """Run experiments in run_input asynchronously. Args: run_input (Qobj, QuantumCircuit, list): payload of the experiment diff --git a/releasenotes/notes/deprecate-qobj-input-in-UnitarySimulatorPy-7233ec171fa15bd8.yaml b/releasenotes/notes/deprecate-qobj-input-in-UnitarySimulatorPy-7233ec171fa15bd8.yaml new file mode 100644 index 000000000000..d46d490bb80b --- /dev/null +++ b/releasenotes/notes/deprecate-qobj-input-in-UnitarySimulatorPy-7233ec171fa15bd8.yaml @@ -0,0 +1,10 @@ +--- +deprecations: + - | + :class:`~qiskit.qobj.QasmQobj` input to :meth:`~qiskit.providers.basicaer.UnitarySimulatorPy.run` + is now deprecated and will be removed in the next major release. + +fixes: + - | + Documentation languange in ``unitary_simulator.py`` to be more generic to indicate the + suported inputs- :class:`~qiskit.QuantumCircuit`, List or :class:`~qiskit.qobj.QasmQobj`.