mqt.bench.benchmarks.full_adder

Full Adder.

Module Contents

create_circuit(num_qubits: int) QuantumCircuit[source]

Create a full adder circuit.

Parameters:

num_qubits – Number of qubits of the returned quantum circuit. Must be even and ≥ 4 so that there is a carry-in bit, carry-out bit, and the rest can be divided by 2 for both registers.

Returns:

QuantumCircuit – The constructed full adder circuit.