Improve `qml.ppm_compilation` to able compile from Clifford+RZ/T into PPR/PPM

Open
#2,366 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
compilers

Research direction

Start at the qml.ppm_compilation entry point and inspect how its existing sub-passes are assembled. Verify the new decompose_arbitrary_ppr and gridsynth passes are included in the stated order, with gridsynth targeting the PPR basis. Done means Clifford+RZ/T input can pass through the complete PPR-to-PPM pipeline.

Written by the indexing model from the issue text.

Description

enhancement

Currently, ppm_compilation pass obtains sub-passes such as:

  • qml.transforms.to_ppr
  • qml.transforms.commute_ppr
  • qml.transforms.merge_ppr_ppm
  • qml.transforms.ppr_to_ppm

The new passes have been added, such as gridsynth and decompose_arbitrary_ppr.

Here, we should also include these two passes in the PPM compilation pipeline.
So, the passes' order should be:

  • qml.transforms.to_ppr
  • qml.transforms.decompose_arbitrary_ppr (NEW)
  • qml.transforms.gridsynth (targeting PPR basis) (NEW)
  • qml.transforms.commute_ppr
  • qml.transforms.merge_ppr_ppm
  • qml.transforms.ppr_to_ppm
Dominant language
Python
Stars
234
Forks
84
Avg merge
3d 11h
Merged PRs (30d)
78

Getting set up

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.

More from PennyLaneAI/catalyst

All issues in PennyLaneAI/catalyst

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.