The Draper Adder¶
This is the legendary Draper adder (arXiv:quant-ph/0008033).
- class dc_qiskit_algorithms.DraperAdder.DraperAdderGate(input_a, input_b, length=None)[source]¶
Bases:
qiskit.circuit.gate.Gate- inverse()[source]¶
Invert this instruction.
If the instruction is composite (i.e. has a definition), then its definition will be recursively inverted.
Special instructions inheriting from Instruction can implement their own inverse (e.g. T and Tdg, Barrier, etc.)
- Returns
a fresh instruction for the inverse
- Return type
qiskit.circuit.Instruction
- Raises
CircuitError – if the instruction is not composite and an inverse has not been implemented for it.