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

Refactor inds(::Tensor) to return Tuple #271

Merged
merged 5 commits into from
Jan 9, 2025
Merged

Conversation

mofeing
Copy link
Member

@mofeing mofeing commented Dec 26, 2024

Current implementation of inds(::Tensor) is to return the Vector{Symbol}, but this has the problem that mutating will modify the one from the original tensor too.

@mofeing mofeing force-pushed the refactor/tensor-inds-tuple branch 2 times, most recently from 4780e61 to cf1e00f Compare December 26, 2024 10:56
@mofeing mofeing added this to the 0.8 milestone Dec 26, 2024
@mofeing mofeing force-pushed the refactor/tensor-inds-tuple branch from 7b48e15 to ec86df9 Compare December 26, 2024 11:07
@mofeing mofeing requested a review from jofrevalles January 8, 2025 11:26
@mofeing mofeing force-pushed the refactor/tensor-inds-tuple branch from ec86df9 to 76f22e1 Compare January 9, 2025 14:59
@mofeing mofeing marked this pull request as ready for review January 9, 2025 15:10
@mofeing mofeing merged commit 16552c7 into master Jan 9, 2025
3 of 5 checks passed
@mofeing mofeing deleted the refactor/tensor-inds-tuple branch January 9, 2025 15:14
@mofeing
Copy link
Member Author

mofeing commented Jan 9, 2025

Currently, only Reactant is failing. Core tests are passing which should be the only ones affected by this PR, so I'm merging.

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 0% with 19 lines in your changes missing coverage. Please review.

Project coverage is 0.04%. Comparing base (f2abea6) to head (76f22e1).
Report is 36 commits behind head on master.

Files with missing lines Patch % Lines
src/Tensor.jl 0.00% 4 Missing ⚠️
ext/TenetChainRulesCoreExt/rrules.jl 0.00% 2 Missing ⚠️
ext/TenetChainRulesCoreExt/tangents.jl 0.00% 2 Missing ⚠️
ext/TenetReactantExt.jl 0.00% 2 Missing ⚠️
src/Helpers.jl 0.00% 2 Missing ⚠️
src/Numerics.jl 0.00% 2 Missing ⚠️
src/TensorNetwork.jl 0.00% 2 Missing ⚠️
ext/TenetChainRulesCoreExt/projectors.jl 0.00% 1 Missing ⚠️
ext/TenetKrylovKitExt.jl 0.00% 1 Missing ⚠️
src/Ansatz.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #271      +/-   ##
=========================================
- Coverage    0.04%   0.04%   -0.01%     
=========================================
  Files          32      33       +1     
  Lines        2146    2181      +35     
=========================================
  Hits            1       1              
- Misses       2145    2180      +35     

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

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