mqt.bench.benchmarks.draper_qft_adder

Draper QFT Adder.

Module Contents

create_circuit(num_qubits: int, kind: str = 'fixed') QuantumCircuit[source]

Create a draper QFT adder circuit.

Parameters:
  • num_qubits – Number of qubits of the returned quantum circuit

  • kind – The kind of adder, can be "half" for a half adder or "fixed" for a fixed-sized adder. A half adder contains a carry-out to represent the most-significant bit, but the fixed-sized adder doesn’t and hence performs addition modulo 2 ** num_state_qubits.

Returns:

QuantumCircuit – The constructed draper QFT adder circuit.