mqt.bench.benchmarks.modular_adder

Modular Adder.

Module Contents

create_circuit(num_qubits: int) QuantumCircuit[source]

Create a modular adder circuit.

Parameters:

num_qubits – Number of qubits of the returned quantum circuit. Must be even and ≥ 2 so that they can be divided by 2 for both registers.

Returns:

QuantumCircuit – The constructed full adder circuit.