Skip to content

Decomp/lower time rules - #3061

Open
paul0403 wants to merge 41 commits into
decomp/generic-rule-loweringfrom
decomp/lower_time_rules
Open

Decomp/lower time rules#3061
paul0403 wants to merge 41 commits into
decomp/generic-rule-loweringfrom
decomp/lower_time_rules

Conversation

@paul0403

@paul0403 paul0403 commented Jul 24, 2026

Copy link
Copy Markdown
Member

Context:
Automatically compile decomposition rules reachable from a gate when lowering that gate in frontend.

[sc-122036]

@kipawaa
kipawaa force-pushed the decomp/lower_time_rules branch from 5cc1c31 to 04b58db Compare August 11, 2026 13:32
@kipawaa
kipawaa force-pushed the decomp/lower_time_rules branch from 04b58db to 9659b25 Compare August 11, 2026 14:33
@kipawaa
kipawaa force-pushed the decomp/lower_time_rules branch 2 times, most recently from 08f40c4 to 9ba022b Compare August 13, 2026 13:12
@kipawaa
kipawaa force-pushed the decomp/lower_time_rules branch from 9ba022b to af2d30d Compare August 13, 2026 13:38
Comment thread frontend/test/lit/test_operator2/test_lower_time_rules.py Outdated
paul0403 and others added 16 commits August 14, 2026 16:28
TODO: update PennyLane version once TestPyPI uploads resume

**Context:**
Decomposition rule lowering requires correctly mapping parameters, which
cannot be done reliably with the current `DecomposableGate` interface.

**Description of the Change:**
Update the `DecomposableGate` interface to return dictionaries
(`llvm::StringMap`s) of data, to permit reconstruction.

**Benefits:**
python-decompositions are improved.

**Possible Drawbacks:**

**Related GitHub Issues:**

[sc-125812]

---------

Co-authored-by: paul0403 <paulhaochen.wang@gmail.com>
…ng of the rule body themselves.

Traversal should only be launched once from the root.
@kipawaa
kipawaa force-pushed the decomp/lower_time_rules branch from 330d2ac to 0f35381 Compare August 14, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants