Skip to content

Bucket brigade QRAM#8670

Merged
comp-phys-marc merged 107 commits into
masterfrom
cleanup-bucket-brigade
Dec 1, 2025
Merged

Bucket brigade QRAM#8670
comp-phys-marc merged 107 commits into
masterfrom
cleanup-bucket-brigade

Conversation

@comp-phys-marc

Copy link
Copy Markdown
Contributor

Context: As discussed earlier today with the team from Yale, we would like to start by solidifying just the classic bucket-brigade QRAM implementation.

Description of the Change: Adds a template to qram.py that moves and solidifies the classic BBQRAM implementation from qramv1.py only. Applies all the changes suggested by @isaacdevlugt to the call signature, docs, etc. and adds a few test cases.

Benefits: The classic BBQRAM implementation is a bit more mature.

Possible Drawbacks: The hybrid and SELECT-only implementations are still left as WIPs.

Related GitHub Issues: [sc-103834]

@comp-phys-marc comp-phys-marc changed the base branch from master to qram-feature-yale November 18, 2025 21:41
@comp-phys-marc comp-phys-marc marked this pull request as ready for review November 19, 2025 13:25
@comp-phys-marc comp-phys-marc requested a review from a team as a code owner November 19, 2025 13:35
@comp-phys-marc comp-phys-marc removed the request for review from a team November 19, 2025 13:48
@comp-phys-marc

comp-phys-marc commented Nov 19, 2025

Copy link
Copy Markdown
Contributor Author

Hi @isaacdevlugt most of these failures in CI are due to your TODOs w.r.t. the visuals, etc. Any chance you can help me address these? Otherwise, I can ask IT if I can install inkscape and whip something up.

@PennyLaneAI PennyLaneAI deleted a comment from github-actions Bot Nov 19, 2025
Comment thread pennylane/templates/subroutines/qram.py Outdated
Comment thread pennylane/templates/subroutines/qram.py Outdated
comp-phys-marc and others added 2 commits November 27, 2025 13:37
Co-authored-by: Yushao Chen (Jerry) <chenys13@outlook.com>
Co-authored-by: Yushao Chen (Jerry) <chenys13@outlook.com>
@Alex-Preciado Alex-Preciado changed the title Cleanup bucket brigade Cleanup bucket brigade QRAM Nov 28, 2025

@isaacdevlugt isaacdevlugt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey @comp-phys-marc! I changed the qram_wires arg to control_wires, which matches QROM.

The tests will fail because I changed raise ValueError("len(bitstrings) must be 2^(len(control_wires)).") 😈

Comment thread pennylane/templates/subroutines/qram.py Outdated
Comment thread tests/capture/test_templates.py Outdated
@comp-phys-marc

Copy link
Copy Markdown
Contributor Author

Hey @comp-phys-marc! I changed the qram_wires arg to control_wires, which matches QROM.

The tests will fail because I changed raise ValueError("len(bitstrings) must be 2^(len(control_wires)).") 😈

Thanks, I'll go through and see where the references to this param need updating now.

comp-phys-marc and others added 3 commits November 28, 2025 13:05
Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
Co-authored-by: Isaac De Vlugt <34751083+isaacdevlugt@users.noreply.github.com>
Comment thread doc/introduction/templates.rst
@comp-phys-marc comp-phys-marc added this pull request to the merge queue Dec 1, 2025
@comp-phys-marc comp-phys-marc removed this pull request from the merge queue due to a manual request Dec 1, 2025
@comp-phys-marc comp-phys-marc added this pull request to the merge queue Dec 1, 2025
@comp-phys-marc comp-phys-marc removed this pull request from the merge queue due to a manual request Dec 1, 2025
@comp-phys-marc comp-phys-marc added this pull request to the merge queue Dec 1, 2025
Merged via the queue into master with commit 93d9e48 Dec 1, 2025
54 of 55 checks passed
@comp-phys-marc comp-phys-marc deleted the cleanup-bucket-brigade branch December 1, 2025 15:05
@comp-phys-marc comp-phys-marc changed the title Cleanup bucket brigade QRAM Bucket brigade QRAM Dec 15, 2025
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.

7 participants