We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WeightedAdder implementation uses mct with default mode 'no-ancilla' but allocates an ancilla qubit for it (similar to #4786)
Either use mct(mode = 'v-chain') or not allocating qr_control (and not passing it to mct), l.265 and 284 of https://github.com/Qiskit/qiskit-terra/blob/master/qiskit/circuit/library/arithmetic/weighted_adder.py (as it is, the resulting circuit has one unused qubit)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Information
What is the current behavior?
WeightedAdder implementation uses mct with default mode 'no-ancilla' but allocates an ancilla qubit for it
(similar to #4786)
Steps to reproduce the problem
What is the expected behavior?
Either use mct(mode = 'v-chain') or not allocating qr_control (and not passing it to mct), l.265 and 284 of https://github.com/Qiskit/qiskit-terra/blob/master/qiskit/circuit/library/arithmetic/weighted_adder.py
(as it is, the resulting circuit has one unused qubit)
Suggested solutions
The text was updated successfully, but these errors were encountered: