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: use nospecialize for some calls for compilation and make sure… #92

Merged
merged 4 commits into from
Jul 3, 2024

Conversation

kshyatt-aws
Copy link
Member

… basis rotation instructions are counted

Issue #, if available: N/A

Description of changes: use @nospecialize for some methods to avoid unnecessary compilations. Also, make sure the qubits in basis_rotation_instructions are counted for Programs in case we have non-contiguous measurements.

Testing done: Unit tests passed locally.

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 installed and run git secrets to make sure I did not commit any sensitive information (passwords or credentials)
  • 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.

Copy link

codecov bot commented Jun 28, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 89.04%. Comparing base (a389d80) to head (b0a71aa).

Files Patch % Lines
src/local_simulator.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #92   +/-   ##
=======================================
  Coverage   89.03%   89.04%           
=======================================
  Files          36       36           
  Lines        3914     3915    +1     
=======================================
+ Hits         3485     3486    +1     
  Misses        429      429           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/circuit.jl Outdated Show resolved Hide resolved
@kshyatt-aws
Copy link
Member Author

The examples will be unhappy until we tag a new version

src/circuit.jl Outdated Show resolved Hide resolved
@kshyatt-aws kshyatt-aws merged commit 06f2594 into main Jul 3, 2024
18 of 20 checks passed
@kshyatt-aws kshyatt-aws deleted the ksh/nospecialize branch July 3, 2024 19:05
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