Skip to content

Use global phase intrinsic for R with PauliI to make application of phase more consistent #1450

@swernli

Description

@swernli

The current decompositions treat R with PauliI as identity, which can create confusion when comparing to mathematical behavior where Ri is expected to introduce a global phase. Instead, we should introduce a global phase intrinsic that is used during simulation to apply expected global phase changes and incorporate that into the behavior of the R1 gate as well. This global phase intrinsic should be treated as a no-op during compilation for hardware, so it is not a __quantum__qis__ intrinsic but rather a simulation specific intrinsic.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions