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

Don't validate rzz angle for non-fixed parameters #1999

Merged
merged 8 commits into from
Oct 28, 2024
Merged

Conversation

yaelbh
Copy link
Collaborator

@yaelbh yaelbh commented Oct 28, 2024

Summary

Fixes #1998. Based on (therefore includes) #1986.

Details and comments

Here we only skip the validation if the angle is of type Parameter. One could expect that, if the angle is a Parameter, then we should verify that all values assigned to the parameter are in the permitted range. Let's discuss it in the issue.

No release notes because rzz gates are have not been released yet.

wshanks and others added 6 commits October 21, 2024 14:25
The rzz validation check was using `CircuitInstruction.params`, an alias
for `CircuitInstruction.operation.params` added in Qiskit 1.2. Here the
usage is replaced `CircuitInstruction.operation.params` to keep
compatibility with Qiskit 1.1.
@yaelbh yaelbh requested a review from ihincks October 28, 2024 13:05
@yaelbh yaelbh merged commit 9d01de5 into Qiskit:main Oct 28, 2024
19 checks passed
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.

rzz angle validation assumes fixed parameters
3 participants