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

Enable multi circuit submission in PennyLane IonQ #124

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

lillian542
Copy link
Contributor

@lillian542 lillian542 commented Oct 10, 2024

This is a copy of this PR, but on the main repo, to let us run all the tests before merging to master (the other PR is on a fork and doesn't have access to the CI API token)

)

* Adding code for batch circuit submit.

* Remove unused imports.

* Update version number.

* Initialize self._samples in overloaded methods.

* Various fixes.

* Running existing unit tests from previous implementation and fixing bugs.

* Correct unit test after updating pennylane baseline code to latest version.

* Fix codefactor issues.

* Run black code formatter.

* Shots cannot be none in an IonQDevice. Remove check on shots.

* Correct docstring comment.

* Remove exeception handling code.

* Remove self.histogram, replace with self.histograms.

* Uniformize treatment of one vs multiple circuits.

* Improve current_circuit_index handling with raising exceptions, add tests.

* Reset samples in reset function.

* Run black code formatter.

* Remove unused includes.

* Fix codefactor reported issues.

* Adding doc string to method.

* Fix docstring.

* Add test with shot vector.

* Add test with an observable that requires rotations for diagonalization.

* Adding unit tests for using pennylane tracker in batch_execute method. Adding unit tests for user warnings.

* Add tests for logging in batch_execute.

* Run black.

* Remove method override.

* Implement review comments.'

* Implement more review comments.'

* Remove unused imports.

* Remove unused imports.

* Remove checks for BasisState, QubitStateVector and StatePrep because these are not supported by IonQ devices.

* Fix code formatting.

---------

Co-authored-by: Alex Preciado <[email protected]>
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.67%. Comparing base (e5beee9) to head (255a212).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #124      +/-   ##
==========================================
+ Coverage   96.93%   97.67%   +0.74%     
==========================================
  Files           5        5              
  Lines         326      387      +61     
==========================================
+ Hits          316      378      +62     
+ Misses         10        9       -1     

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

@mudit2812 mudit2812 merged commit e19124d into master Oct 10, 2024
9 checks passed
@mudit2812 mudit2812 deleted the multi-circuit-submission branch October 10, 2024 17:38
@Alex-Preciado
Copy link
Contributor

Amazing, thank you so much for this contribution @radumarg !! 😎

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.

4 participants