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

flexibilize types for partial_trace #109

Merged
merged 2 commits into from
Dec 19, 2023
Merged

flexibilize types for partial_trace #109

merged 2 commits into from
Dec 19, 2023

Conversation

araujoms
Copy link
Contributor

@araujoms araujoms commented Dec 9, 2023

Currently partial_trace does not accept Hermitian or Symmetric matrices, and always returns a ComplexF64 result, independent of the type of the input. This PR fixes both issues. I'm also adding a convenience method to allow calling it with dim_2_keep being a integer instead of a vector.

I hope you find it useful.

Copy link

codecov bot commented Dec 17, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (fc2ec75) 80.40% compared to head (ea673d4) 80.36%.

Files Patch % Lines
src/math_util.jl 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #109      +/-   ##
==========================================
- Coverage   80.40%   80.36%   -0.04%     
==========================================
  Files          36       36              
  Lines        2281     2282       +1     
==========================================
  Hits         1834     1834              
- Misses        447      448       +1     

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

@neversakura neversakura merged commit 50e551e into USCqserver:master Dec 19, 2023
7 of 9 checks passed
@neversakura
Copy link
Collaborator

@araujoms Thanks!

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