diff --git a/qiskit/circuit/library/arithmetic/adders/adder.py b/qiskit/circuit/library/arithmetic/adders/adder.py index 7fa3411d0436..830eb15b2b10 100644 --- a/qiskit/circuit/library/arithmetic/adders/adder.py +++ b/qiskit/circuit/library/arithmetic/adders/adder.py @@ -43,14 +43,13 @@ class Adder(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg=( "Use the adder gates provided in qiskit.circuit.library.arithmetic instead. " "The gate type depends on the adder kind: fixed, half, full are represented by " "ModularAdderGate, HalfAdderGate, FullAdderGate, respectively. For different adder " "implementations, see https://docs.quantum.ibm.com/api/qiskit/synthesis.", ), - pending=True, ) def __init__(self, num_state_qubits: int, name: str = "Adder") -> None: """ diff --git a/qiskit/circuit/library/arithmetic/multipliers/multiplier.py b/qiskit/circuit/library/arithmetic/multipliers/multiplier.py index 4089cc35452a..e544591cb333 100644 --- a/qiskit/circuit/library/arithmetic/multipliers/multiplier.py +++ b/qiskit/circuit/library/arithmetic/multipliers/multiplier.py @@ -47,13 +47,12 @@ class Multiplier(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg=( "Use the MultiplierGate provided in qiskit.circuit.library.arithmetic instead. " "For different multiplier implementations, see " "https://docs.quantum.ibm.com/api/qiskit/synthesis.", ), - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/basis_change/qft.py b/qiskit/circuit/library/basis_change/qft.py index cb14977b4463..191ab84e7113 100644 --- a/qiskit/circuit/library/basis_change/qft.py +++ b/qiskit/circuit/library/basis_change/qft.py @@ -73,12 +73,11 @@ class QFT(BlueprintCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg=( "Use qiskit.circuit.library.QFTGate or qiskit.synthesis.qft.synth_qft_full instead, " "for access to all previous arguments.", ), - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/boolean_logic/inner_product.py b/qiskit/circuit/library/boolean_logic/inner_product.py index 84b3807fb56c..2f77b67a3d28 100644 --- a/qiskit/circuit/library/boolean_logic/inner_product.py +++ b/qiskit/circuit/library/boolean_logic/inner_product.py @@ -63,9 +63,8 @@ class InnerProduct(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use qiskit.circuit.library.InnerProductGate instead.", - pending=True, ) def __init__(self, num_qubits: int) -> None: """Return a circuit to compute the inner product of 2 n-qubit registers. diff --git a/qiskit/circuit/library/boolean_logic/quantum_and.py b/qiskit/circuit/library/boolean_logic/quantum_and.py index 53099aa7be84..c42a0430234e 100644 --- a/qiskit/circuit/library/boolean_logic/quantum_and.py +++ b/qiskit/circuit/library/boolean_logic/quantum_and.py @@ -52,9 +52,8 @@ class AND(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use qiskit.circuit.library.AndGate instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/boolean_logic/quantum_or.py b/qiskit/circuit/library/boolean_logic/quantum_or.py index 95b346b34846..f9fb9301a087 100644 --- a/qiskit/circuit/library/boolean_logic/quantum_or.py +++ b/qiskit/circuit/library/boolean_logic/quantum_or.py @@ -53,9 +53,8 @@ class OR(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use qiskit.circuit.library.OrGate instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/boolean_logic/quantum_xor.py b/qiskit/circuit/library/boolean_logic/quantum_xor.py index 73a2178830bc..574bc6ae48ae 100644 --- a/qiskit/circuit/library/boolean_logic/quantum_xor.py +++ b/qiskit/circuit/library/boolean_logic/quantum_xor.py @@ -30,10 +30,9 @@ class XOR(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Instead, for xor-ing with a specified amount, use BitwiseXorGate," "and for xor-ing with a random amount, use random_bitwise_xor.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/data_preparation/_z_feature_map.py b/qiskit/circuit/library/data_preparation/_z_feature_map.py index 22303f087684..6d7206d795c8 100644 --- a/qiskit/circuit/library/data_preparation/_z_feature_map.py +++ b/qiskit/circuit/library/data_preparation/_z_feature_map.py @@ -76,12 +76,11 @@ class ZFeatureMap(PauliFeatureMap): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg=( "Use the z_feature_map function as a replacement. Note that this will no longer " "return a BlueprintCircuit, but just a plain QuantumCircuit." ), - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/data_preparation/_zz_feature_map.py b/qiskit/circuit/library/data_preparation/_zz_feature_map.py index 2414efc5fee3..dacfaf6af4a6 100644 --- a/qiskit/circuit/library/data_preparation/_zz_feature_map.py +++ b/qiskit/circuit/library/data_preparation/_zz_feature_map.py @@ -96,12 +96,11 @@ class ZZFeatureMap(PauliFeatureMap): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg=( "Use the z_feature_map function as a replacement. Note that this will no longer " "return a BlueprintCircuit, but just a plain QuantumCircuit." ), - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/data_preparation/pauli_feature_map.py b/qiskit/circuit/library/data_preparation/pauli_feature_map.py index b511edd9513e..bd069c938450 100644 --- a/qiskit/circuit/library/data_preparation/pauli_feature_map.py +++ b/qiskit/circuit/library/data_preparation/pauli_feature_map.py @@ -408,12 +408,11 @@ class PauliFeatureMap(NLocal): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg=( "Use the pauli_feature_map function as a replacement. Note that this will no longer " "return a BlueprintCircuit, but just a plain QuantumCircuit." ), - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/fourier_checking.py b/qiskit/circuit/library/fourier_checking.py index b5012b4beeef..83b76cd3fa01 100644 --- a/qiskit/circuit/library/fourier_checking.py +++ b/qiskit/circuit/library/fourier_checking.py @@ -54,9 +54,8 @@ class FourierChecking(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use qiskit.circuit.library.fourier_checking instead.", - pending=True, ) def __init__(self, f: Sequence[int], g: Sequence[int]) -> None: """Create Fourier checking circuit. diff --git a/qiskit/circuit/library/generalized_gates/diagonal.py b/qiskit/circuit/library/generalized_gates/diagonal.py index b478bb58e96b..62602e087668 100644 --- a/qiskit/circuit/library/generalized_gates/diagonal.py +++ b/qiskit/circuit/library/generalized_gates/diagonal.py @@ -34,7 +34,7 @@ class Diagonal(QuantumCircuit): """Circuit implementing a diagonal transformation.""" - @deprecate_func(since="1.3", additional_msg="Use DiagonalGate instead.", pending=True) + @deprecate_func(since="1.4", additional_msg="Use DiagonalGate instead.") def __init__(self, diag: Sequence[complex]) -> None: r""" Args: diff --git a/qiskit/circuit/library/generalized_gates/gms.py b/qiskit/circuit/library/generalized_gates/gms.py index bdf01757abd0..247bc59aa980 100644 --- a/qiskit/circuit/library/generalized_gates/gms.py +++ b/qiskit/circuit/library/generalized_gates/gms.py @@ -77,7 +77,7 @@ class GMS(QuantumCircuit): `arXiv:1707.06356 `_ """ - @deprecate_func(since="1.3", additional_msg="Use the MSGate instead.", pending=True) + @deprecate_func(since="1.4", additional_msg="Use the MSGate instead.") def __init__(self, num_qubits: int, theta: list[list[float]] | np.ndarray) -> None: """Create a new Global Mølmer–Sørensen (GMS) gate. diff --git a/qiskit/circuit/library/generalized_gates/linear_function.py b/qiskit/circuit/library/generalized_gates/linear_function.py index 90cee1b9e9be..291844653705 100644 --- a/qiskit/circuit/library/generalized_gates/linear_function.py +++ b/qiskit/circuit/library/generalized_gates/linear_function.py @@ -227,8 +227,7 @@ def _define(self): self.definition = synth_cnot_count_full_pmh(self.linear) @deprecate_func( - since="1.3", - pending=True, + since="1.4", additional_msg="Call LinearFunction.definition instead, or compile the circuit.", ) def synthesize(self): diff --git a/qiskit/circuit/library/generalized_gates/mcmt.py b/qiskit/circuit/library/generalized_gates/mcmt.py index 496b391d38e8..6532335b1ef0 100644 --- a/qiskit/circuit/library/generalized_gates/mcmt.py +++ b/qiskit/circuit/library/generalized_gates/mcmt.py @@ -49,7 +49,7 @@ class MCMT(QuantumCircuit): :class:`~qiskit.circuit.library.MCMTVChain`. """ - @deprecate_func(since="1.3", additional_msg="Use MCMTGate instead.", pending=True) + @deprecate_func(since="1.4", additional_msg="Use MCMTGate instead.") def __init__( self, gate: Gate | Callable[[QuantumCircuit, circuit.Qubit, circuit.Qubit], circuit.Instruction], @@ -157,9 +157,8 @@ class MCMTVChain(MCMT): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use MCMTGate with the V-chain synthesis plugin instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/generalized_gates/permutation.py b/qiskit/circuit/library/generalized_gates/permutation.py index bea863f78242..35eb0529859e 100644 --- a/qiskit/circuit/library/generalized_gates/permutation.py +++ b/qiskit/circuit/library/generalized_gates/permutation.py @@ -28,7 +28,7 @@ class Permutation(QuantumCircuit): """An n_qubit circuit that permutes qubits.""" - @deprecate_func(since="1.3", pending=True, additional_msg="Use PermutationGate instead.") + @deprecate_func(since="1.4", additional_msg="Use PermutationGate instead.") def __init__( self, num_qubits: int, diff --git a/qiskit/circuit/library/graph_state.py b/qiskit/circuit/library/graph_state.py index 79c0dfbc864d..d1653eac93c7 100644 --- a/qiskit/circuit/library/graph_state.py +++ b/qiskit/circuit/library/graph_state.py @@ -58,9 +58,8 @@ class GraphState(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use qiskit.circuit.library.GraphStateGate instead.", - pending=True, ) def __init__(self, adjacency_matrix: list | np.ndarray) -> None: """Create graph state preparation circuit. diff --git a/qiskit/circuit/library/grover_operator.py b/qiskit/circuit/library/grover_operator.py index d55a59249a3d..09e5f56605a4 100644 --- a/qiskit/circuit/library/grover_operator.py +++ b/qiskit/circuit/library/grover_operator.py @@ -424,9 +424,8 @@ class GroverOperator(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use qiskit.circuit.library.grover_operator instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/hidden_linear_function.py b/qiskit/circuit/library/hidden_linear_function.py index 7acaaa7aa72e..3c85d8fb474d 100644 --- a/qiskit/circuit/library/hidden_linear_function.py +++ b/qiskit/circuit/library/hidden_linear_function.py @@ -69,9 +69,8 @@ class HiddenLinearFunction(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use qiskit.circuit.library.hidden_linear_function instead.", - pending=True, ) def __init__(self, adjacency_matrix: list | np.ndarray) -> None: """Create new HLF circuit. diff --git a/qiskit/circuit/library/iqp.py b/qiskit/circuit/library/iqp.py index 62082fd5c446..ea99565d87f8 100644 --- a/qiskit/circuit/library/iqp.py +++ b/qiskit/circuit/library/iqp.py @@ -63,9 +63,8 @@ class IQP(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use the qiskit.circuit.library.iqp function instead.", - pending=True, ) def __init__(self, interactions: list | np.ndarray) -> None: """Create IQP circuit. diff --git a/qiskit/circuit/library/n_local/efficient_su2.py b/qiskit/circuit/library/n_local/efficient_su2.py index 53698a3e18a6..44de74a710a1 100644 --- a/qiskit/circuit/library/n_local/efficient_su2.py +++ b/qiskit/circuit/library/n_local/efficient_su2.py @@ -189,9 +189,8 @@ class EfficientSU2(TwoLocal): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use the function qiskit.circuit.library.efficient_su2 instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/n_local/excitation_preserving.py b/qiskit/circuit/library/n_local/excitation_preserving.py index 49bfdb07f017..97470251bfa4 100644 --- a/qiskit/circuit/library/n_local/excitation_preserving.py +++ b/qiskit/circuit/library/n_local/excitation_preserving.py @@ -78,7 +78,7 @@ def excitation_preserving( ansatz = excitation_preserving(3, reps=1, insert_barriers=True, entanglement="linear") ansatz.draw("mpl") - The entanglement structure can be explicitly specified with the ``entanglement`` + The entanglement structure can be explicitly specified with the ``entanglement`` argument. The ``"fsim"`` mode includes an additional parameterized :class:`.CPhaseGate` in each block: @@ -203,15 +203,14 @@ class ExcitationPreserving(TwoLocal): .. seealso:: - The :func:`.excitation_preserving` function constructs a functionally equivalent circuit, + The :func:`.excitation_preserving` function constructs a functionally equivalent circuit, but faster. """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use the function qiskit.circuit.library.excitation_preserving instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/n_local/n_local.py b/qiskit/circuit/library/n_local/n_local.py index 8c0b4d285086..435fdf6abe8b 100644 --- a/qiskit/circuit/library/n_local/n_local.py +++ b/qiskit/circuit/library/n_local/n_local.py @@ -304,9 +304,8 @@ class NLocal(BlueprintCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use the function qiskit.circuit.library.n_local instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/n_local/pauli_two_design.py b/qiskit/circuit/library/n_local/pauli_two_design.py index f0deeb68b287..9d62b029c155 100644 --- a/qiskit/circuit/library/n_local/pauli_two_design.py +++ b/qiskit/circuit/library/n_local/pauli_two_design.py @@ -167,9 +167,8 @@ class PauliTwoDesign(TwoLocal): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use the function qiskit.circuit.library.pauli_two_design instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/n_local/real_amplitudes.py b/qiskit/circuit/library/n_local/real_amplitudes.py index f1ba10604e9d..80be2b094255 100644 --- a/qiskit/circuit/library/n_local/real_amplitudes.py +++ b/qiskit/circuit/library/n_local/real_amplitudes.py @@ -232,9 +232,8 @@ class RealAmplitudes(TwoLocal): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use the function qiskit.circuit.library.real_amplitudes instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/n_local/two_local.py b/qiskit/circuit/library/n_local/two_local.py index fcbc5e30bb8d..a0881242b40d 100644 --- a/qiskit/circuit/library/n_local/two_local.py +++ b/qiskit/circuit/library/n_local/two_local.py @@ -138,9 +138,8 @@ class TwoLocal(NLocal): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use the function qiskit.circuit.library.n_local instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/overlap.py b/qiskit/circuit/library/overlap.py index 6f444bebf0fb..f9b6237b7028 100644 --- a/qiskit/circuit/library/overlap.py +++ b/qiskit/circuit/library/overlap.py @@ -60,9 +60,8 @@ class UnitaryOverlap(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use qiskit.circuit.library.unitary_overlap instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/phase_estimation.py b/qiskit/circuit/library/phase_estimation.py index 8ff441eb705e..45411435aa98 100644 --- a/qiskit/circuit/library/phase_estimation.py +++ b/qiskit/circuit/library/phase_estimation.py @@ -50,9 +50,8 @@ class PhaseEstimation(QuantumCircuit): """ @deprecate_func( - since="1.3", + since="1.4", additional_msg="Use qiskit.circuit.library.phase_estimation instead.", - pending=True, ) def __init__( self, diff --git a/qiskit/circuit/library/standard_gates/x.py b/qiskit/circuit/library/standard_gates/x.py index c9b39257320d..08fabf0ac6c8 100644 --- a/qiskit/circuit/library/standard_gates/x.py +++ b/qiskit/circuit/library/standard_gates/x.py @@ -1181,8 +1181,7 @@ def inverse(self, annotated: bool = False): "qubits is require, one can create a custom gate by calling the corresponding " "synthesis function directly." ), - since="1.3", - pending=True, + since="1.4", ) def get_num_ancilla_qubits(num_ctrl_qubits: int, mode: str = "noancilla") -> int: """Get the number of required ancilla qubits without instantiating the class. @@ -1291,8 +1290,7 @@ def __new__( "high-level-synthesis plugin `gray_code` for MCX gates, or, alternatively, " "one can use synth_mcx_gray_code to construct the gate directly." ), - since="1.3", - pending=True, + since="1.4", ) def __init__( self, @@ -1346,8 +1344,7 @@ class MCXRecursive(MCXGate): "high-level-synthesis plugin '1_clean_b95' for MCX gates, or, alternatively, " "one can use synth_mcx_1_clean to construct the gate directly." ), - since="1.3", - pending=True, + since="1.4", ) def __init__( self, @@ -1437,8 +1434,7 @@ def __new__( "`n_dirty_i15` (using dirty ancillas) for MCX gates. Alternatively, one can " "use synth_mcx_n_dirty_i15 and synth_mcx_n_clean_m15 to construct the gate directly." ), - since="1.3", - pending=True, + since="1.4", ) def __init__( self,