Skip to content

Small improvement QFT code#6887

Merged
mergify[bot] merged 5 commits into
Qiskit:mainfrom
ElePT:qft-improve
Oct 4, 2021
Merged

Small improvement QFT code#6887
mergify[bot] merged 5 commits into
Qiskit:mainfrom
ElePT:qft-improve

Conversation

@ElePT
Copy link
Copy Markdown
Contributor

@ElePT ElePT commented Aug 10, 2021

Summary

This PR includes a really small change in the way num_qubits is checked in the setter to avoid future bugs (as mentioned in this qml PR).

Details and comments

@ElePT ElePT requested a review from a team as a code owner August 10, 2021 02:10
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 10, 2021

CLA assistant check
All committers have signed the CLA.

@ElePT ElePT changed the title Improve if Small improvement QFT code Aug 10, 2021
@Cryoris
Copy link
Copy Markdown
Collaborator

Cryoris commented Aug 10, 2021

Could you add a test to cover this case and a bug fix reno? 🙂

@ElePT
Copy link
Copy Markdown
Contributor Author

ElePT commented Sep 6, 2021

Could you add a test to cover this case and a bug fix reno? 🙂

I have added the reno, but I think that a new test is not necessary. The case is already covered in test_qft_mutability from test_qft.py (I am only refactoring, after all).

Comment thread qiskit/circuit/library/basis_change/qft.py Outdated
@kdk kdk added the automerge label Oct 4, 2021
@kdk kdk added this to the 0.19 milestone Oct 4, 2021
@kdk kdk added the Changelog: Fixed Add a "Fixed" entry in the GitHub Release changelog. label Oct 4, 2021
@mergify mergify Bot merged commit f59a1fd into Qiskit:main Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: Fixed Add a "Fixed" entry in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants