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

Changed ValueRange to ResultRange and Value to OpResult in Gate_Op #1426

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sengthai
Copy link
Contributor

@sengthai sengthai commented Jan 8, 2025

Context:
This PR updates gate_op by replacing ValueRange with ResultRange and Value with OpResult to better align with the semantics of **QubitResult() functions like getNonCtrlQubitResults(). This change ensures clearer intent and usage.

Related GitHub Issues:
#1192

@sengthai sengthai requested a review from dime10 January 8, 2025 21:18
Copy link
Contributor

@dime10 dime10 left a comment

Choose a reason for hiding this comment

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

Thanks @sengthai! Could you add a changelog entry under the Internal Changes section? :)

Additionally, the original issue also describes updating the places in our code where we use these functions, specifically to simplify calling replaceAllUses.

mlir/include/Quantum/IR/QuantumInterfaces.td Show resolved Hide resolved
@sengthai
Copy link
Contributor Author

sengthai commented Jan 9, 2025

Thank you for nice feedback, @dime10. I'lll modify and add in changelog right away.

@sengthai sengthai requested a review from dime10 January 9, 2025 23:14
Copy link
Contributor

@dime10 dime10 left a comment

Choose a reason for hiding this comment

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

Nice 🎉

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.

2 participants