Add global phase gate
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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