-
-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
MLIRAnything related to MLIRAnything related to MLIRc++Anything related to C++ codeAnything related to C++ codefeatureNew feature or requestNew feature or request
Milestone
Description
Problem Statement
In PR 1108, lift-measurements has been introduced. It lifts measurements before certain gates to save on quantum resources.
At the moment, the lift-measurements stops at Hadamard gates.
Proposed Solution
I'd like to propose hadamard-lifting: Pulling Hadamard gates in front of certain gates using commutation rules (e.g. H * X = Z * H) in order to support lift-measurements and improve lift-measurements' impact on the circuit.
Conveniently, the gates that can be commuted with Hadamard (Pauli gates, CNOT) are also the ones that a measurement can be lifted over.
Metadata
Metadata
Assignees
Labels
MLIRAnything related to MLIRAnything related to MLIRc++Anything related to C++ codeAnything related to C++ codefeatureNew feature or requestNew feature or request