-
Notifications
You must be signed in to change notification settings - Fork 58
Migrate the unified compiler to Catalyst #2199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+21,831
−45
Merged
Changes from all commits
Commits
Show all changes
66 commits
Select commit
Hold shift + click to select a range
df8b97b
Migrate unified compiler to Catalyst
mudit2812 9536707
Fixing migration artifacts; linting
mudit2812 1453aae
Fix CI errors; Ignore unified compiler in coverage reports
mudit2812 efc0f88
Test out how graphviz is installed
mudit2812 10cd749
Lint some more
mudit2812 27de22d
Merge branch 'main' into migrate-unified-compiler
mudit2812 f7aa2b6
[skip ci] Skip CI
mudit2812 012f58b
[skip ci] Skip CI
mudit2812 f0a0c90
Merge branch 'migrate-unified-compiler' of https://github.com/PennyLa…
mudit2812 c98755e
Try installing graphviz with apt
mudit2812 bb5bd00
Fix codefactor complaints
mudit2812 1448472
Merge branch 'main' into migrate-unified-compiler
mudit2812 5e745f5
Try appeasing codefactor again
mudit2812 0409933
Try appeasing codefactor once again
mudit2812 e786a12
Pylint suppression
mudit2812 4ae10ff
Reduce complexity of stablehlo.reduce and stablehlo.dynamic_broadcast…
mudit2812 dc41a7b
Fix some failures
mudit2812 58b13e4
Try change to graphviz installation
mudit2812 4e5f904
Merge branch 'main' into migrate-unified-compiler
mudit2812 637d2cf
Try installing graphviz with pip
mudit2812 091c5e1
Merge branch 'main' into migrate-unified-compiler
mudit2812 64e0fd4
Try installing graphviz with both apt and pip
mudit2812 dc15d3a
Add utils file to remove conftest imports
mudit2812 e7e33d6
Merge branch 'main' into migrate-unified-compiler
mudit2812 f919e8d
Remove unused imports
mudit2812 005ba9f
Add graphviz dependencies to lightning.kokkos testing workflow
mudit2812 6117189
Update cookbook
mudit2812 6961324
Migrate all changelog entries from PennyLane
mudit2812 0fdbb46
Merge branch 'main' into migrate-unified-compiler
mudit2812 a868bc3
Add EOF new line to .codecov.yml
mudit2812 8f00b2f
change changelog entry slightly
mudit2812 22a6e6e
Merge branch 'main' into migrate-unified-compiler
mudit2812 b4a321d
Merge branch 'main' into migrate-unified-compiler
mudit2812 4cbe02a
Remove reference to 'remove-chained-self-inverses'
mudit2812 c5f08c3
Remove leftover references to pennylane.compiler.python_compiler
mudit2812 fe76357
Streamline circuit inspection utilities (#2237)
jzaia18 3395581
Merge branch 'main' into migrate-unified-compiler
mudit2812 a69c9ba
Remove more references to python_compiler
mudit2812 9d208f9
Address more code review comments
mudit2812 8ce6f96
Fix jit
mudit2812 664d24a
Fix jit again
mudit2812 e07a332
Merge branch 'main' into migrate-unified-compiler
mudit2812 f9035c0
Fix line-too-long
mudit2812 ca1aa3a
Merge branch 'migrate-unified-compiler' of https://github.com/PennyLa…
mudit2812 7f4eb06
Remove the local transform dialect (#2261)
mehrdad2m 24eb758
Merge branch 'main' into migrate-unified-compiler
dime10 b6fb585
[skip ci] add importorskip for graphviz to mlir_graph tests
mudit2812 0b1f237
Merge branch 'migrate-unified-compiler' of https://github.com/PennyLa…
mudit2812 8ef2b58
Merge branch 'main' into migrate-unified-compiler
mudit2812 848795d
[skip ci] Skip CI
mudit2812 58e06f0
Merge branch 'migrate-unified-compiler' of https://github.com/PennyLa…
mudit2812 14eb727
Update .codecov.yml
mudit2812 d7fac31
Add importorskip xdsl
mudit2812 f07194e
Merge branch 'migrate-unified-compiler' of https://github.com/PennyLa…
mudit2812 58ee0d9
Add xdsl marker
mudit2812 bc123b1
Separate xdsl tests into isolated steps
mudit2812 87d05f9
codefactor
mudit2812 4a7986a
Merge branch 'main' into migrate-unified-compiler
mudit2812 40deba6
Try to fix failures
mudit2812 08c6bc0
Remove unnecessary testing from wheel workflows
mudit2812 22019e4
Remove markers
mudit2812 0d3d055
Add eof newline
mudit2812 f8c338b
Use brew to install graphviz in macos wheel build
mudit2812 e56c163
Organize changelog entries
mudit2812 54f5756
Remove xdsl kokkos tests from check-catalyst
mudit2812 f26c6f2
Apply suggestions from code review
mudit2812 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Copyright 2025 Xanadu Quantum Technologies Inc. | ||
|
|
||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
|
|
||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| """Unified Compiler API for integration of Catalyst with xDSL.""" | ||
|
|
||
| from .compiler import Compiler | ||
| from .inspection import QMLCollector | ||
| from .parser import QuantumParser | ||
| from .pass_api import compiler_transform | ||
|
|
||
| __all__ = [ | ||
| "Compiler", | ||
| "compiler_transform", | ||
| "QuantumParser", | ||
| "QMLCollector", | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.