Skip to content

Save and Load objects#778

Open
manuschneider wants to merge 3 commits intomasterfrom
save_load
Open

Save and Load objects#778
manuschneider wants to merge 3 commits intomasterfrom
save_load

Conversation

@manuschneider
Copy link
Copy Markdown
Collaborator

  • Pickle support
  • HDF5 support

addresses #157 and #660

…ethods: to_binary(std::ostream) and from_binary(std::istream)

Clearer separation: Save and Load handle file IO, while to_binary and from_binary only write to ostream or istream
implementation classes provide to_binary_dispatch(std::ostream) and from_binary_dispatch(std::istream)
…ectly because the char* is not terminated by \0. Potentially illegal memory access
@manuschneider manuschneider changed the title Save and Load complex data Save and Load objects Apr 11, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 11, 2026

Codecov Report

❌ Patch coverage is 48.14815% with 28 lines in your changes missing coverage. Please review.
✅ Project coverage is 35.54%. Comparing base (42e86b1) to head (f45c7c8).
⚠️ Report is 52 commits behind head on master.

Files with missing lines Patch % Lines
src/tn_algo/MPS.cpp 0.00% 7 Missing ⚠️
src/tn_algo/RegularMPS.cpp 0.00% 4 Missing ⚠️
src/tn_algo/iMPS.cpp 0.00% 4 Missing ⚠️
include/UniTensor.hpp 0.00% 2 Missing ⚠️
src/Bond.cpp 66.66% 2 Missing ⚠️
src/Symmetry.cpp 50.00% 2 Missing ⚠️
src/UniTensor_base.cpp 0.00% 2 Missing ⚠️
src/backend/Storage.cpp 50.00% 2 Missing ⚠️
src/tn_algo/MPS_base.cpp 0.00% 2 Missing ⚠️
src/Tensor.cpp 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #778      +/-   ##
==========================================
+ Coverage   35.47%   35.54%   +0.06%     
==========================================
  Files         214      214              
  Lines       33007    33004       -3     
  Branches    13130    13121       -9     
==========================================
+ Hits        11709    11731      +22     
+ Misses      19376    19359      -17     
+ Partials     1922     1914       -8     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant