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

add warning for default language #502

Merged
merged 6 commits into from
Oct 3, 2024

Conversation

cqc-melf
Copy link
Collaborator

@cqc-melf cqc-melf commented Oct 3, 2024

Description

Add warning when using process_circuit without language argument and fixes #496

Checklist

  • I have performed a self-review of my code.
  • I have commented hard-to-understand parts of my code.
  • I have made corresponding changes to the public API documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have updated the changelog with any user-facing changes.

@cqc-melf cqc-melf requested a review from cqc-alec October 3, 2024 12:50
@cqc-melf cqc-melf marked this pull request as ready for review October 3, 2024 12:53
@cqc-melf cqc-melf requested a review from yao-cqc as a code owner October 3, 2024 12:53
"The circuit is currently submitted as QASM by default. \
The default is going to change. If you want to continue to use QASM \
please add `language=Language.QASM` to the process_circuits function \
to ensure the expected behavior. If you want to try QIR, please add \
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure "expected behavior" is the right thing to say here: the behaviour should be indistinguishable, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was not really sure what to say, but there are some differences.
The main point are, that QIR can handle conditionals more efficient, but it might be hitting the register limit earlier.

@cqc-melf cqc-melf requested a review from cqc-alec October 3, 2024 14:41
cqc-melf and others added 2 commits October 3, 2024 16:02
Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
Co-authored-by: Alec Edgington <54802828+cqc-alec@users.noreply.github.com>
@cqc-melf cqc-melf requested a review from cqc-alec October 3, 2024 15:03
@cqc-melf
Copy link
Collaborator Author

cqc-melf commented Oct 3, 2024

Thank you for the suggestions!

@cqc-melf cqc-melf merged commit ff85e88 into main Oct 3, 2024
12 checks passed
@cqc-melf cqc-melf deleted the melf/add-warning-for-qasm-submission branch October 3, 2024 15:45
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.

Warning Use public property bytecode_base64 instead.
2 participants