Skip to content

Add tests for MatrixGate over 6 qubits#1041

Merged
mhucka merged 3 commits intoquantumlib:mainfrom
mhucka:test-matrixgate-too-big
Apr 7, 2026
Merged

Add tests for MatrixGate over 6 qubits#1041
mhucka merged 3 commits intoquantumlib:mainfrom
mhucka:test-matrixgate-too-big

Conversation

@mhucka
Copy link
Copy Markdown
Collaborator

@mhucka mhucka commented Apr 7, 2026

Verifiy that _translate_MatrixGate and
QSimSimulator.compute_amplitudes raise NotImplementedError when provided a 7-qubit MatrixGate.

Verifiy that `_translate_MatrixGate` and
`QSimSimulator.compute_amplitudes` raise `NotImplementedError` when
provided a 7-qubit `MatrixGate`.
@github-actions github-actions bot added the size: S 10< lines changed <50 label Apr 7, 2026
@mhucka mhucka marked this pull request as ready for review April 7, 2026 05:04
@mhucka mhucka requested a review from sergeisakov April 7, 2026 05:04
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 introduces new test cases to verify that qsimcirq correctly raises a NotImplementedError when encountering MatrixGate objects exceeding the 6-qubit limit. The review feedback identifies a potential AttributeError from direct submodule access and a naming convention violation where the variable qsimSim should be renamed to qsim_sim to comply with the project's snake_case style guide.

mhucka and others added 2 commits April 6, 2026 22:42
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Copy link
Copy Markdown
Collaborator

@sergeisakov sergeisakov left a comment

Choose a reason for hiding this comment

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

LGTM

@mhucka mhucka added this pull request to the merge queue Apr 7, 2026
Merged via the queue into quantumlib:main with commit 0c242e7 Apr 7, 2026
29 checks passed
@mhucka mhucka deleted the test-matrixgate-too-big branch April 7, 2026 14:45
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.

2 participants