Skip to content

xyz_heisenberg algorithm update#4

Merged
zazabap merged 5 commits intomainfrom
feature/memory_usage
Nov 27, 2025
Merged

xyz_heisenberg algorithm update#4
zazabap merged 5 commits intomainfrom
feature/memory_usage

Conversation

@zazabap
Copy link
Owner

@zazabap zazabap commented Nov 27, 2025

Note

Introduces an MPS tensor-network simulator backend, integrates it into the prelude, updates QFT and XYZ-Heisenberg examples to compare dense vs MPS, adds tests, bumps version, and enables parallel features with nalgebra.

  • Simulator Backends:
    • MPS Backend: Add src/simulators/mps.rs with MpsState, MpsConfig, evolve_heisenberg_mps, calculate_energy_mps and supporting ops; expose via src/simulators/mod.rs and re-export in prelude and lib.
  • Algorithms / Examples:
    • QFT: Update examples/quantum_fourier_transform.rs to run and benchmark dense vs MPS backends; add MPS-based QFT routines and utilities.
    • XYZ-Heisenberg: Add benchmark examples/xyz_h.rs; expand examples/xyz_heisenberg.rs with richer demos; optimize energy eval in algorithms/xyz_heisenberg.rs via direct expectation helpers.
    • Grover/Visualization/Basic gates/VQE: Minor improvements/formatting and safer gate additions.
  • Core / API:
    • Re-export simulator types in prelude (MpsState, MpsConfig, etc.).
    • Minor circuit/state/vis tidy-ups; keep behavior unchanged.
  • Dependencies & Config:
    • Bump crate to 0.2.2; add nalgebra for SVD; add features with default parallel (enables rayon and ndarray/rayon).
    • Update README.md install version.
  • Tests:
    • Add tests/test_simulators_mps.rs validating MPS gates/energy and parity with dense; adjust existing tests for formatting robustness.
  • Scripts:
    • Remove scripts/test.sh.

Written by Cursor Bugbot for commit 4fc83d5. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the final PR Bugbot will review for you during this billing cycle

Your free Bugbot reviews will reset on December 30

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

@zazabap zazabap self-assigned this Nov 27, 2025
@zazabap zazabap added the enhancement New feature or request label Nov 27, 2025
@zazabap zazabap merged commit 287e969 into main Nov 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments