diff --git a/test/gradients/test_estimator_gradient.py b/test/gradients/test_estimator_gradient.py index 975cb9bf..391e5c5a 100644 --- a/test/gradients/test_estimator_gradient.py +++ b/test/gradients/test_estimator_gradient.py @@ -1,6 +1,6 @@ # This code is part of a Qiskit project. # -# (C) Copyright IBM 2019, 2023. +# (C) Copyright IBM 2019, 2024. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory @@ -385,7 +385,7 @@ def test_gradient_random_parameters(self, grad): qc.crz(params[2] * -2, 0, 1) qc.dcx(0, 1) qc.csdg(0, 1) - qc.toffoli(0, 1, 2) + qc.ccx(0, 1, 2) qc.iswap(0, 2) qc.swap(1, 2) qc.global_phase = params[0] * params[1] + params[2].cos().exp() diff --git a/test/gradients/test_sampler_gradient.py b/test/gradients/test_sampler_gradient.py index 3bace4d6..a038d712 100644 --- a/test/gradients/test_sampler_gradient.py +++ b/test/gradients/test_sampler_gradient.py @@ -1,6 +1,6 @@ # This code is part of a Qiskit project. # -# (C) Copyright IBM 2019, 2023. +# (C) Copyright IBM 2019, 2024. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory @@ -563,7 +563,7 @@ def test_gradient_random_parameters(self, grad): qc.crz(params[2] * -2, 0, 1) qc.dcx(0, 1) qc.csdg(0, 1) - qc.toffoli(0, 1, 2) + qc.ccx(0, 1, 2) qc.iswap(0, 2) qc.swap(1, 2) qc.global_phase = params[0] * params[1] + params[2].cos().exp()