Skip to content

Simplify the README example to plain ITensor operations#187

Merged
mtfishman merged 1 commit into
mainfrom
mf/readme-cleanup
Jun 26, 2026
Merged

Simplify the README example to plain ITensor operations#187
mtfishman merged 1 commit into
mainfrom
mf/readme-cleanup

Conversation

@mtfishman

@mtfishman mtfishman commented Jun 26, 2026

Copy link
Copy Markdown
Member

Summary

Rewrites the README example as a commented walkthrough of the core ITensor operations: making indices, a random tensor, indexing, contraction, addition, and a QR factorization. This replaces the previous @test comparisons against unwrapped arrays, so the example stays on the named-tensor API a new user actually writes. The inline comments split it into per-operation blocks that render with their output on the docs Home page.

Bumps the version to 0.8.3.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.22%. Comparing base (b8749e6) to head (67296c0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #187   +/-   ##
=======================================
  Coverage   72.22%   72.22%           
=======================================
  Files          28       28           
  Lines        1480     1480           
=======================================
  Hits         1069     1069           
  Misses        411      411           
Flag Coverage Δ
docs 18.50% <ø> (+2.83%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

Rewrites the README example as a commented walkthrough of the core ITensor operations (making indices, a random tensor, indexing, contraction, addition, and a QR factorization), replacing the previous `@test` comparisons against unwrapped arrays. Dropping `unname` and the array comparisons keeps the example on the named-tensor API a new user actually writes, and the inline comments split it into per-operation blocks that render with their output on the docs Home page.

Bumps the version to 0.8.3.
@mtfishman mtfishman force-pushed the mf/readme-cleanup branch from 332fb8d to 67296c0 Compare June 26, 2026 15:05
@mtfishman mtfishman merged commit 5e4619d into main Jun 26, 2026
18 checks passed
@mtfishman mtfishman deleted the mf/readme-cleanup branch June 26, 2026 15:55
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