Skip to content

Conversation

yaelbh
Copy link
Collaborator

@yaelbh yaelbh commented May 7, 2025

Summary

Fixes #2250

Details and comments

  • This PR's code runs successfully with both Qiskit's main branch and stable branch.
  • I changed coefficients in the test to real numbers, because complex coefficients are not allowed, and trigger an exception.
  • Similarly, I changed the invalid letters in the test from J to 0, 1, +, -, l, r, because J is caught already early, by SparseObservable. The goal of the test is to verify that qiskit-ibm-runtime imposes further constraints than SparseObservable.

@yaelbh yaelbh requested review from ihincks and ElePT May 7, 2025 11:41
Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

Thanks @yaelbh, the PR looks good to me, I just left some minor release note suggestions and it should be good to go. I will try to include this in the upcoming 0.39 release to get the new validation out ASAP :)

@ElePT ElePT added this to the 0.39.0 milestone May 7, 2025
kt474 and others added 3 commits May 7, 2025 21:51
Copy link
Collaborator

@ElePT ElePT left a comment

Choose a reason for hiding this comment

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

LGTM

@ElePT ElePT added this pull request to the merge queue May 8, 2025
Merged via the queue into Qiskit:main with commit 428073e May 8, 2025
17 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.

Validate observables to include only the letters I, X, Y, Z
3 participants