qiskit-community / qiskit-algorithms

A library of quantum algorithms for Qiskit.
https://qiskit-community.github.io/qiskit-algorithms/
Apache License 2.0
111 stars 54 forks source link

Update unit test as toffoli is deprecated #122

Closed woodsp-ibm closed 8 months ago

woodsp-ibm commented 8 months ago

Summary

Fixes #111 and changes to using ccx from toffoli

Details and comments

Addresses this deprecation that has been occurring in CI

/home/runner/work/qiskit-algorithms/qiskit-algorithms/test/gradients/test_estimator_gradient.py:388: DeprecationWarning: The method qiskit.circuit.quantumcircuit.QuantumCircuit.toffoli() is deprecated as of qiskit 0.45.0. It will be removed no earlier than 3 months after the release date. Use QuantumCircuit.ccx as direct replacement.

coveralls commented 8 months ago

Pull Request Test Coverage Report for Build 7555044272


Totals Coverage Status
Change from base Build 7555033149: 0.0%
Covered Lines: 6470
Relevant Lines: 7143

💛 - Coveralls