NVIDIA / NVIDIA/cuda-quantum

Add global phase gate

Open
#483 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs triage stale-notified
Dominant language
C++
Stars
1.1k
Forks
456
Avg merge
1d 22h
Merged PRs (30d)
165

Description

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

Some of our decomposition patterns add a global phase that is not tracked in any way. Often this is not a problem, however, when if we transform a pure kernel into something that is equal up to global phase and attached a control to it, then the resulting circuit will be wrong, because this global phase will become relative phase. For this reason the decomposition pass is very conservative and won't do any transformation if there is a quake.apply instruction in the module.

The addition of a global phase gate can help us to keep track of the global phase added by some transformation, and will allow us to not have to be this conservative when doing transformations.

Contributor guide

Open the contributing guide

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.

Research direction

Start by reviewing the decomposition patterns that add an untracked global phase and the conservative handling of modules containing quake.apply. Determine how a global phase gate should track that phase and how transformations involving controlled kernels should use it. Done means the resulting circuits preserve the correct relative phase without requiring the current blanket restriction.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
quantum-computing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.