Skip to content
New issue

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

Remove input arg control wires of multi controlled x #6832

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

JerryChen97
Copy link
Contributor

@JerryChen97 JerryChen97 commented Jan 14, 2025

Context:
Years ago we deprecated some features inside MultiControlledX but they were forgotten for a while, among which we have the argument control_wires to remove today.

Description of the Change:
Remove the input control_wires along with tests
Benefits:

Possible Drawbacks:

Related GitHub Issues:
[sc-81795]

Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@JerryChen97 JerryChen97 marked this pull request as ready for review January 14, 2025 22:00
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.60%. Comparing base (0bed5e8) to head (4f01635).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6832      +/-   ##
==========================================
- Coverage   99.60%   99.60%   -0.01%     
==========================================
  Files         476      476              
  Lines       45178    45172       -6     
==========================================
- Hits        44999    44993       -6     
  Misses        179      179              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JerryChen97 JerryChen97 changed the title Remove str init arg control wires of multi controlled x Remove arg control wires of multi controlled x Jan 15, 2025
@JerryChen97 JerryChen97 changed the title Remove arg control wires of multi controlled x Remove input arg control wires of multi controlled x Jan 15, 2025
Copy link
Contributor

@lillian542 lillian542 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

doc/development/deprecations.rst Outdated Show resolved Hide resolved
doc/releases/changelog-dev.md Outdated Show resolved Hide resolved
@@ -73,6 +73,11 @@ for details on how to port your legacy code to the new system. The following fun
Completed deprecation cycles
----------------------------

* The input argument ``control_wires`` of ``MultiControlledX`` has been removed.

- Deprecated in v0.22
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: we got the version info via private communication offline. Anyways it's a super far back time so don't worry too much about the accuracy.

@JerryChen97 JerryChen97 enabled auto-merge (squash) January 15, 2025 20:34
@JerryChen97 JerryChen97 disabled auto-merge January 15, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants