Document how circuit optimizations should work with scopes/other control-flow today

Open
#5,108 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@taalexander is already working on this.

Since Aug 11, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement stale-notified
Required prerequisites
  • Search the issue tracker to check if your feature has already been mentioned or rejected in other issues.
Describe the feature

Today it same up with @khalatepradnya / @schweitzpgi that we need better documentation for how circuit optimizations in linear value form should work with scopes/other control flow. We should add this documentation and do a search through our optimizations to identify any that are mishandling this behaviour or missing tests and correct.

Dominant language
C++
Stars
1.2k
Forks
508
Avg merge
1d 19h
Merged PRs (30d)
100

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/cuda-quantum

All issues in NVIDIA/cuda-quantum

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.