diff --git a/qiskit/synthesis/evolution/product_formula.py b/qiskit/synthesis/evolution/product_formula.py index b314d5ec5e62..eac1c0c1a07f 100644 --- a/qiskit/synthesis/evolution/product_formula.py +++ b/qiskit/synthesis/evolution/product_formula.py @@ -44,7 +44,7 @@ class ProductFormula(EvolutionSynthesis): @deprecate_arg( name="atomic_evolution", - since="1.2", + since="1.4", predicate=lambda callable: callable is not None and len(inspect.signature(callable).parameters) == 2, deprecation_description=( @@ -55,7 +55,6 @@ class ProductFormula(EvolutionSynthesis): "Instead you should update your 'atomic_evolution' function to be of the following " "type: 'Callable[[QuantumCircuit, Pauli | SparsePauliOp, float], None]'." ), - pending=True, ) def __init__( self, diff --git a/qiskit/synthesis/evolution/qdrift.py b/qiskit/synthesis/evolution/qdrift.py index 13b6b6dd79e6..b24a5ba31748 100644 --- a/qiskit/synthesis/evolution/qdrift.py +++ b/qiskit/synthesis/evolution/qdrift.py @@ -43,7 +43,7 @@ class QDrift(ProductFormula): @deprecate_arg( name="atomic_evolution", - since="1.2", + since="1.4", predicate=lambda callable: callable is not None and len(inspect.signature(callable).parameters) == 2, deprecation_description=( @@ -54,7 +54,6 @@ class QDrift(ProductFormula): "Instead you should update your 'atomic_evolution' function to be of the following " "type: 'Callable[[QuantumCircuit, Pauli | SparsePauliOp, float], None]'." ), - pending=True, ) def __init__( self, diff --git a/qiskit/synthesis/evolution/suzuki_trotter.py b/qiskit/synthesis/evolution/suzuki_trotter.py index 209f377351a7..f804741bd012 100644 --- a/qiskit/synthesis/evolution/suzuki_trotter.py +++ b/qiskit/synthesis/evolution/suzuki_trotter.py @@ -60,7 +60,7 @@ class SuzukiTrotter(ProductFormula): @deprecate_arg( name="atomic_evolution", - since="1.2", + since="1.4", predicate=lambda callable: callable is not None and len(inspect.signature(callable).parameters) == 2, deprecation_description=( @@ -71,7 +71,6 @@ class SuzukiTrotter(ProductFormula): "Instead you should update your 'atomic_evolution' function to be of the following " "type: 'Callable[[QuantumCircuit, Pauli | SparsePauliOp, float], None]'." ), - pending=True, ) def __init__( self, diff --git a/releasenotes/notes/followup_12724-59acaeb333788396.yaml b/releasenotes/notes/followup_12724-59acaeb333788396.yaml new file mode 100644 index 000000000000..b1d95c1252a4 --- /dev/null +++ b/releasenotes/notes/followup_12724-59acaeb333788396.yaml @@ -0,0 +1,8 @@ +--- +deprecations_synthesis: + - | + The argument ``atomic_evolution`` in the constructor for the classes + :class:`.LieTrotter`, :class:`.ProductFormula`, and :class:`.SuzukiTrotter` + is a callable with a different signature now: from + ``Callable[[Pauli | SparsePauliOp, float], QuantumCircuit]`` to + ``Callable[[QuantumCircuit, Pauli | SparsePauliOp, float], None]``.