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

Introduce sqrtm and fidelity #132

Merged
merged 4 commits into from
May 26, 2024
Merged

Introduce sqrtm and fidelity #132

merged 4 commits into from
May 26, 2024

Conversation

ytdHuang
Copy link
Member

@ytdHuang ytdHuang commented May 26, 2024

Summary of this PR:

  • improve LinearAlgebra.sqrt to support SparseArrays (by using sparse_to_dense before sqrt)
  • introduce sqrtm (same as the one in qutip, only works for Operator)
  • introduce fidelity

Copy link

codecov bot commented May 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.23%. Comparing base (6c0f46d) to head (fe1d450).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #132      +/-   ##
==========================================
+ Coverage   91.12%   91.23%   +0.11%     
==========================================
  Files          21       21              
  Lines        1757     1769      +12     
==========================================
+ Hits         1601     1614      +13     
+ Misses        156      155       -1     

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

@ytdHuang ytdHuang marked this pull request as draft May 26, 2024 11:09
@ytdHuang ytdHuang marked this pull request as ready for review May 26, 2024 11:27
src/general_functions.jl Outdated Show resolved Hide resolved
src/quantum_object.jl Show resolved Hide resolved
@ytdHuang ytdHuang merged commit a75ba1a into qutip:main May 26, 2024
13 of 14 checks passed
@ytdHuang ytdHuang deleted the dev/fidelity branch May 26, 2024 17:30
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