push
github
Minor fixes for new adder and multiplier gates classes (#13530) (#13560) * Fixes to AdderGate classes Added define method to HalfAdder, FullAdder, and ModularAdder classes to allow constructing Operators from quantum circuits containing such adder gates. Fixing plugins related to adder_ripple_v95, the plugins can be used only if n-1 clean ancillas are available. Improved the default adder plugins to choose the best decomposition based on the number of state qubits and the number of ancilla qubits. * Adding tests for the case that adder plugins do not apply * Constructing Operators from circuits with MultiplierGates * release notes * docstring fix * apply suggestions from code review * futher improving tests based on additional review comments (cherry picked from commit b9ea266a2) Co-authored-by: Alexander Ivrii <alexi@il.ibm.com>
38 of 39 new or added lines in 3 files covered. (97.44%)
4 existing lines in 1 file now uncovered.79145 of 88975 relevant lines covered (88.95%)
361085.88 hits per line