Skip to content

RIFLA: Support iteration over arrays of qubits#3103

Merged
swernli merged 3 commits intomainfrom
swernli/rifla-arrays2
Apr 23, 2026
Merged

RIFLA: Support iteration over arrays of qubits#3103
swernli merged 3 commits intomainfrom
swernli/rifla-arrays2

Conversation

@swernli
Copy link
Copy Markdown
Collaborator

@swernli swernli commented Apr 7, 2026

This continues extending the looping support by allowing for iteration over arrays of qubits. For some of the checked in samples, this slightly increases code size because looping over a qubit register with only two qubits is not more efficient in instruction count than just operating on each qubit directly, but for large qubit registers this ends up being a net savings.

Base automatically changed from swernli/rifla-arrays to main April 20, 2026 19:30
This continues extending the looping support by allowing for iteration over arrays of qubits. For some of the checked in samples, this slightly increases code size because looping over a qubit register with only two qubits is not more efficient in instruction count than just operating on each qubit directly, but for large qubit registers this ends up being a net savings.
@swernli swernli force-pushed the swernli/rifla-arrays2 branch from ad1e906 to adb8ef3 Compare April 20, 2026 21:50
@swernli swernli requested a review from orpuente-MS April 20, 2026 22:27
@swernli swernli marked this pull request as ready for review April 20, 2026 22:27
Comment thread source/compiler/qsc_partial_eval/src/lib.rs Outdated
Co-authored-by: orpuente-MS <156957451+orpuente-MS@users.noreply.github.com>
@swernli swernli enabled auto-merge April 22, 2026 22:44
@swernli swernli disabled auto-merge April 22, 2026 22:44
@swernli swernli enabled auto-merge April 22, 2026 22:46
@swernli swernli added this pull request to the merge queue Apr 22, 2026
@swernli swernli removed this pull request from the merge queue due to a manual request Apr 23, 2026
@swernli swernli added this pull request to the merge queue Apr 23, 2026
Merged via the queue into main with commit e0752aa Apr 23, 2026
12 checks passed
@swernli swernli deleted the swernli/rifla-arrays2 branch April 23, 2026 00:13
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.

2 participants