Skip to content

Conversation

@Rutuja123-dos
Copy link
Contributor

@Rutuja123-dos Rutuja123-dos commented Dec 30, 2025

Purpose of PR

Adds a regression test to ensure async amplitude encoding respects 'chunk_len'
instead of writing the full 'state_len', preventing out-of-bounds writes for
non-first chunks.

Related Issues or PRs

Changes Made

  • Bug fix
  • New feature
  • Refactoring
  • Documentation
  • Test
  • CI/CD pipeline
  • Other

Breaking Changes

  • Yes
  • No

Checklist

  • Added or updated unit tests for all changes
  • Added or updated documentation for all changes
  • Successfully built and ran all unit tests or manual tests locally
  • PR title follows "MAHOUT-XXX: Brief Description" format (if related to an issue)
  • Code follows ASF guidelines

@rich7420
Copy link
Contributor

@Rutuja123-dos thanks for the patch , you should aim to dev-qdp branch.

@Rutuja123-dos
Copy link
Contributor Author

@rich7420 thanks for clarification. I will retarget the PR to the dev-qdp branch

guan404ming and others added 10 commits December 31, 2025 20:59
…pache#654)

* Add mypy for static type checking

Added mypy static type checking to pre-commit hooks.

* pre-commit hook: fix

Signed-off-by: ryankert01 <ryan980053@gmail.com>

* update version and clean-up strings

Signed-off-by: ryankert01 <ryan980053@gmail.com>

---------

Signed-off-by: ryankert01 <ryan980053@gmail.com>
* Implement T-gate (π/8 gate) across all backends

- Add apply_t_gate() method to QuMat class with validation
- Implement T-gate support in Qiskit, Cirq, and Amazon Braket backends
- Restore T-gate documentation in basic_gates.md to match implementation

Fixes apache#681

* Refine T-gate docs and add coverage

* chore: satisfy pre-commit hooks
* docs: add missing QuMat APIs

* clarify T-gate usage and parameter description

* alignment docs/api.md

Co-authored-by: 江家瑋 <36886416+JiangJiaWei1103@users.noreply.github.com>

---------

Co-authored-by: 江家瑋 <36886416+JiangJiaWei1103@users.noreply.github.com>
Fixes apache#707 

(Trying to find some simple issues to help with while hopefully finally finding time to toy with the code over Christmas.)
…d of None (apache#757)

* fix the bug

* Update documentation to reflect draw_circuit() returns value instead of printing
@Rutuja123-dos Rutuja123-dos force-pushed the fix-743-async-amplitude-oob branch from 4cd7890 to c43905d Compare December 31, 2025 15:29
@Rutuja123-dos Rutuja123-dos changed the base branch from main to dev-qdp December 31, 2025 15:36
Copy link
Member

@guan404ming guan404ming left a comment

Choose a reason for hiding this comment

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

It looks like this PR includes several changes that are unrelated to its main purpose. Could you please remove those so the scope stays focused? Thanks!

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.

[QDP] Fix async amplitude pipeline out-of-bounds write

7 participants