Skip to content

Fix MPS sampling output vector sizing - #1127

Open
aadityarshah wants to merge 3 commits into
quantumlib:mainfrom
aadityarshah:fix-mps-sample-output-size
Open

aadityarshah wants to merge 3 commits into
quantumlib:mainfrom
aadityarshah:fix-mps-sample-output-size

Conversation

@aadityarshah

Copy link
Copy Markdown

Fixes #1126.

  • Fix MPS sampling output vector sizing by resizing the results vector before writing samples.
  • Add a regression test for empty output vectors.

@github-actions github-actions Bot added the size: S 10< lines changed <50 label Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: S 10< lines changed <50

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MPSStateSpace::Sample accesses results out of bounds when the output vector is empty

1 participant