Skip to content

Add sizeof bultin to qasm #2586

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Jul 11, 2025
Merged

Add sizeof bultin to qasm #2586

merged 18 commits into from
Jul 11, 2025

Conversation

orpuente-MS
Copy link
Contributor

This PR adds support for the sizeof builtin to OpenQASM. As part of the necessary things to make sizeof work in all supported cases, it also adds support for readonly array[_, ...] input types in subroutines.

Copy link

Change in memory usage detected by benchmark.

Memory Report for 1bff665

Test This Branch On Main Difference
compile core + standard lib 25374462 bytes 25210462 bytes 164000 bytes

Copy link

Change in memory usage detected by benchmark.

Memory Report for 05c4e8c

Test This Branch On Main Difference
compile core + standard lib 25374462 bytes 25210462 bytes 164000 bytes

Copy link

Change in memory usage detected by benchmark.

Memory Report for 8b37804

Test This Branch On Main Difference
compile core + standard lib 25374462 bytes 25210462 bytes 164000 bytes

Co-authored-by: Stefan J. Wernli <swernli@microsoft.com>
Copy link

Change in memory usage detected by benchmark.

Memory Report for 4e07394

Test This Branch On Main Difference
compile core + standard lib 25374462 bytes 25210462 bytes 164000 bytes

Copy link

Change in memory usage detected by benchmark.

Memory Report for e8fd9d7

Test This Branch On Main Difference
compile core + standard lib 25374462 bytes 25210462 bytes 164000 bytes

Copy link

Change in memory usage detected by benchmark.

Memory Report for f9539c3

Test This Branch On Main Difference
compile core + standard lib 25374710 bytes 25210462 bytes 164248 bytes

Copy link

Change in memory usage detected by benchmark.

Memory Report for d6a01fd

Test This Branch On Main Difference
compile core + standard lib 25374710 bytes 25210462 bytes 164248 bytes

Copy link

Change in memory usage detected by benchmark.

Memory Report for a185609

Test This Branch On Main Difference
compile core + standard lib 25374710 bytes 25210462 bytes 164248 bytes

Copy link

Change in memory usage detected by benchmark.

Memory Report for f4a3482

Test This Branch On Main Difference
compile core + standard lib 25374710 bytes 25210462 bytes 164248 bytes

@orpuente-MS orpuente-MS added this pull request to the merge queue Jul 11, 2025
Merged via the queue into main with commit b5d7dec Jul 11, 2025
18 checks passed
@orpuente-MS orpuente-MS deleted the oscarpuente/qasm-sizeof branch July 11, 2025 19:21
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.

3 participants