WeightedAdder.num_control_qubits

property WeightedAdder.num_control_qubits: int

The number of additional control qubits required.

Note that the total number of ancilla qubits can be obtained by calling the method num_ancilla_qubits.

Return type

int

Returns

The number of additional control qubits required (0 or 1).