Skip to content

✨ MLIR - Add Hadamard lifting to support measurement lifting #1386

@LiRem101

Description

@LiRem101

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 MLIRc++Anything related to C++ codefeatureNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions