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

change: adding check for main thread #27

Merged
merged 2 commits into from
Jul 10, 2024
Merged

change: adding check for main thread #27

merged 2 commits into from
Jul 10, 2024

Conversation

krneta
Copy link
Contributor

@krneta krneta commented Jul 8, 2024

Issue #, if available:

Description of changes:

Testing done:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

Tests

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have checked that my tests are not configured for a specific region or account (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@krneta krneta requested a review from kshyatt-aws July 8, 2024 18:39
@krneta krneta requested a review from a team as a code owner July 8, 2024 18:39
@@ -245,6 +249,14 @@ def _validate_jaqcd(self, circuit_ir, qubit_count: int, shots: int):
)


def _validate_thread():
Copy link
Member

Choose a reason for hiding this comment

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

Can we add some kind of test for this warning?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

kshyatt-aws
kshyatt-aws previously approved these changes Jul 9, 2024
rmshaffer
rmshaffer previously approved these changes Jul 9, 2024
@krneta krneta dismissed stale reviews from rmshaffer and kshyatt-aws via 9a0d640 July 9, 2024 20:36
Copy link
Member

@kshyatt-aws kshyatt-aws left a comment

Choose a reason for hiding this comment

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

LGTM. Just for my understanding (not blocking), do we have a suggested resolution for users? Is there something we can implement in the QBP to untangle this for them? Some env var they can set?

@krneta krneta merged commit dd856b6 into main Jul 10, 2024
13 checks passed
@krneta krneta deleted the threading_error branch July 10, 2024 18:58
@krneta
Copy link
Contributor Author

krneta commented Jul 10, 2024

LGTM. Just for my understanding (not blocking), do we have a suggested resolution for users? Is there something we can implement in the QBP to untangle this for them? Some env var they can set?

From what I can see, I think the changes would have to be made in Qiskit itself, or in juliacall.

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