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

Calculation of Clifford.stabilizers and Clifford.destabilizers in parallel #1206

Closed
wants to merge 9 commits into from

Conversation

renatomello
Copy link
Contributor

@renatomello renatomello commented Feb 9, 2024

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.

@renatomello renatomello added documentation Improvements or additions to documentation quantum_info module PRs and issues related to the quantum information module labels Feb 9, 2024
@renatomello renatomello added this to the Qibo 0.2.5 milestone Feb 9, 2024
@renatomello renatomello self-assigned this Feb 9, 2024
@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (19368f2) to head (6f8d6d0).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1206   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           71        71           
  Lines        10443     10450    +7     
=========================================
+ Hits         10443     10450    +7     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -150,6 +152,8 @@ def stabilizers(self, symplectic: bool = False, return_array: bool = False):
return_array (bool, optional): To be used when ``symplectic = False``.
If ``True`` returns the stabilizers as ``ndarray``.
If ``False``, returns stabilizers as strings. Defaults to ``False``.
cores (int, optional): number of processes to be used to calculate all stabilizers.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I would rather call this ncpus or similar, which from my experience is a more commonly used name for this kind of things.

Comment on lines +443 to +444
pool.close()
pool.join()
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need these two?

@renatomello renatomello marked this pull request as draft February 13, 2024 08:58
@renatomello renatomello modified the milestones: Qibo 0.2.5, Qibo 0.2.6 Feb 15, 2024
@scarrazza scarrazza modified the milestones: Qibo 0.2.6, Qibo 0.2.7 Mar 13, 2024
@renatomello
Copy link
Contributor Author

I'm closing this PR because we might go in a different direction.

@renatomello renatomello removed this from the Qibo 0.2.7 milestone Mar 19, 2024
@scarrazza scarrazza deleted the stabilizers branch June 25, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation quantum_info module PRs and issues related to the quantum information module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants