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

Move partial_trace and matrix_exponentiation from backend methods to standalone functions in quantum_info.linalg_operations #1390

Merged
merged 32 commits into from
Jul 17, 2024

Conversation

renatomello
Copy link
Contributor

@renatomello renatomello commented Jul 12, 2024

Closes #1168

Checklist:

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

@renatomello renatomello self-assigned this Jul 12, 2024
@renatomello renatomello added the quantum_info module PRs and issues related to the quantum information module label Jul 12, 2024
@renatomello renatomello added this to the Qibo 0.2.10 milestone Jul 12, 2024
Copy link

codecov bot commented Jul 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (59af33c) to head (dcf5281).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1390   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           76        76           
  Lines        10923     10940   +17     
=========================================
+ Hits         10923     10940   +17     
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.

@renatomello renatomello requested review from MatteoRobbiati and removed request for MatteoRobbiati July 13, 2024 10:27
@renatomello renatomello marked this pull request as ready for review July 13, 2024 12:31
@renatomello renatomello changed the title Move partial_trace from backend method to standalone function in quantum_info.operations Move partial_trace and matrix_exponentiation from backend methods to standalone functions in quantum_info.operations Jul 15, 2024
@renatomello renatomello changed the title Move partial_trace and matrix_exponentiation from backend methods to standalone functions in quantum_info.operations Move partial_trace and matrix_exponentiation from backend methods to standalone functions in quantum_info.linalg_operations Jul 15, 2024
Copy link
Member

@alecandido alecandido left a comment

Choose a reason for hiding this comment

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

A small comment about a renaming, other than that I'm fine with the proposed changes.

src/qibo/backends/abstract.py Show resolved Hide resolved
@renatomello renatomello added the enhancement New feature or request label Jul 17, 2024
@renatomello renatomello added this pull request to the merge queue Jul 17, 2024
Merged via the queue into master with commit 713efb2 Jul 17, 2024
29 checks passed
@stavros11 stavros11 deleted the operations branch July 26, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 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.

Promote partial trace (states and density matrices) from Backend to Quantum Information Module
3 participants