Skip to content

docs: add MPS simulator documentation (fixes #1048)#1064

Open
Hadar01 wants to merge 5 commits intoquantumlib:mainfrom
Hadar01:docs/mps-simulator
Open

docs: add MPS simulator documentation (fixes #1048)#1064
Hadar01 wants to merge 5 commits intoquantumlib:mainfrom
Hadar01:docs/mps-simulator

Conversation

@Hadar01
Copy link
Copy Markdown

@Hadar01 Hadar01 commented May 10, 2026

Adds docs/mps.md documenting the MPS simulator in lib/mps_simulator.h
and lib/mps_statespace.h, which had no documentation. Also updates
overview.md and _book.yaml to include it.

Fixes #1048

Hadar01 added 2 commits May 10, 2026 13:56
- Add docs/mps.md: covers what MPS is, MPSStateSpace and MPSSimulator
  C++ APIs, current limitations, and a comparison table vs qsim/qsimh
- Update docs/overview.md: mention MPS as a third simulator alongside
  qsim and qsimh, add it to the operations list
- Update docs/_book.yaml: register mps.md in the Guides nav section

Fixes quantumlib#1048
@github-actions github-actions Bot added the size: M 50< lines changed <250 label May 10, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds documentation for the Matrix Product State (MPS) simulator, including a new guide and updates to the navigation and overview files. The review feedback identifies that the C++ code examples in the documentation are missing required template arguments for the MPSStateSpace and MPSSimulator classes, which would cause compilation errors. Additionally, a potential buffer overflow was identified in the reduced density matrix example if double precision is used.

Comment thread docs/mps.md Outdated
Comment thread docs/mps.md Outdated
Comment thread docs/mps.md Outdated
Hadar01 and others added 3 commits May 10, 2026 14:25
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation is missing for MPS

1 participant