-
-
Notifications
You must be signed in to change notification settings - Fork 72
✨ Add Dead Gate Elimination Pattern #1755
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
Merged
Changes from 7 commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
91b3ef9
feat(mlir): :sparkles: implement dead gate elimination canonicalizati…
DRovara ba57aa2
fix(mlir): :bug: fix tests
DRovara b83afab
test(mlir): :white_check_mark: add direct test for dead gate elimination
DRovara 4243ac0
docs(mlir): :memo: update changelog
DRovara a50032b
style(mlir): :rotating_light: fix linter issues
DRovara d8c9ad5
fix(mlir): :recycle: guard RegionOp removal for child oeprations with…
DRovara 9717547
fix(mlir): :bug: fix handling for `IfOp` removal and add specialized …
DRovara 2d65418
fix(mlir): :bug: minor bug and code style fixes
DRovara 278a54e
style(mlir): :rotating_light: fix linter issues on includes
DRovara 44eaf7e
fix: :pencil2: fix typo in changelog
DRovara 8b3af43
🎨 Optimize `checkAndRemoveDeadGate` function
burgholzer 6998110
📝 Add to generic changelog entry for mqt-cc
burgholzer d56ccaf
Update mlir/lib/Dialect/QCO/IR/Operations/ResetOp.cpp
DRovara fb9fffb
🎨 pre-commit fixes
pre-commit-ci[bot] 44f295a
test(mlir): :white_check_mark: improve test and add custom return typ…
DRovara 9e8e711
Merge branch 'mlir/dead-gate-elimination' of github.com:munich-quantu…
DRovara b6cbf8e
style(mlir): :recycle: remove unneeded dumps
DRovara dee0752
style(mlir): :recycle: move `checkAndRemoveDeadGate` implementation o…
DRovara 244f8bb
style(mlir): :recycle: implement helper function to check if a gate i…
DRovara 6eaac40
style(mlir): :rotating_light: fix includes
DRovara 07a3f4d
docs(mlir): :memo: add comments to document `gphase` operation as mem…
DRovara cab4155
test(mlir): :white_check_mark: update tests to now use return values
DRovara 6f1c64e
Update mlir/include/mlir/Dialect/QCO/QCOUtils.h
DRovara 7e63992
Update mlir/unittests/Dialect/QCO/IR/test_qco_ir.cpp
DRovara 2e9f4e6
Update mlir/unittests/programs/qco_programs.cpp
DRovara 29b0cbe
Update mlir/unittests/programs/qco_programs.h
DRovara 225c88f
style(mlir): :recycle: address some review comments
DRovara 4c5a22d
refactor(mlir): :recycle: remove old `build` method from QCOProgramBu…
DRovara fd40b82
feat(mlir): :recycle: add return types to `QCProgramBuilder`
DRovara e2ac131
feat(mlir): :recycle: update test programs for QC to also return retu…
DRovara 2d70d31
Merge branch 'main' into mlir/dead-gate-elimination
DRovara 88bac4e
chore(mlir): :construction: update QIR program builder and test system
DRovara 8a519b8
feat(mlir): :white_check_mark: make all Compiler Pipeline tests pass
DRovara 8726654
fix(mlir): :bug: fix issues with qco_ir_matrix
DRovara 2851aee
test(mlir): :white_check_mark: pass QC->QCO and QC->QIR-Adaptive tests
DRovara 304f530
fix(mlir): :bug: fix minor issue in `test_qco_ir` unittest
DRovara 29d9627
test(mlir): :white_check_mark: pass QCO->QC tests
DRovara 8ca4c96
test(mlir): :white_check_mark: pass quantum_computation translation t…
DRovara 7ae3898
feat(mlir): :sparkles: update qc->qir conversion to handle return values
DRovara 0567332
feat(mlir): :recycle: change default value of qir_programs template a…
DRovara bba85e8
fix: :bug: fix QuantumComputation python bindings for new parameter
DRovara 62f1ab5
chore(mlir): :recycle: get rid of remaining helper files
DRovara fd72319
Merge branch 'main' into mlir/dead-gate-elimination
DRovara fc9a663
🎨 pre-commit fixes
pre-commit-ci[bot] f18025b
fix(mlir): :bug: fix issues after merge
DRovara 20426f8
Merge branch 'mlir/dead-gate-elimination' of github.com:munich-quantu…
DRovara afd395d
fix(mlir): :sparkles: fix leftover merging error
DRovara aeb9838
feat(mlir): :recycle: return QASM3 `output` values in resulting `QC` …
DRovara bb8152f
test(mlir): :sparkles: pass decomposition tests
DRovara 973cf43
chore(mlir): :recycle: move implementation of dead gate removal to Si…
DRovara 12aa9d1
feat(mlir): :sparkles: allow jeff translation to keep return values
DRovara ff48f93
fix(mlir): :rotating_light: potential fix to compiler error
DRovara dc89944
fix(mlir): :rotating_light: fix compiler issue by providing <> for de…
DRovara 67d21dd
ci: :green_heart: add `--np-editable` to nox stubs session because it…
DRovara 6dbd019
chore(mlir): :rotating_light: potential fix to most linter issues
DRovara b5fcbb0
fix(mlir): :rotating_light: fix compiler issue with imports
DRovara 92eb0c7
fix(mlir): :recycle: fix some test errors and some linter issues
DRovara 20468cf
fix(mlir): :bug: fix compilation error
DRovara 5917c1b
fix(mlir): :bug: fix incorrect tests nad linter issues
DRovara 21f01f0
fix(mlir): :bug: fix undefined behaviour
DRovara 2b2d9b4
fix(mlir): :rotating_light: fix linter warnings
DRovara 472361b
Merge branch 'main' into mlir/dead-gate-elimination
DRovara 065d23a
🎨 pre-commit fixes
pre-commit-ci[bot] 98fafe6
test(mlir): :white_check_mark: pass new tests
DRovara 224bf4a
Merge branch 'mlir/dead-gate-elimination' of github.com:munich-quantu…
DRovara 5635099
test(mlir): :white_check_mark: fix incorrect test case
DRovara 88d1886
Merge branch 'main' into mlir/dead-gate-elimination
DRovara a8e7acc
chore(mlir): :recycle: clean up further tests
DRovara 6b53a71
Merge branch 'mlir/dead-gate-elimination' of github.com:munich-quantu…
DRovara af1009f
fix(mlir): :bug: fix build error in decomposition tests
DRovara 1507296
chore(mlir): :recycle: potentially fix remaining linter errors
DRovara e327250
test(mlir): :recycle: increase test coverage for PR
DRovara 7035f0d
chore(mlir): :recycle: apply coderabbit suggestions
DRovara 915052d
fix(mlir): :bug: fix failing test
DRovara 1dfe637
fix(mlir): :rotating_light: fix linter issue
DRovara 360d849
test(mlir): :white_check_mark: improve coverage
DRovara 56bf24b
Merge branch 'main' into mlir/dead-gate-elimination
DRovara 3cc7522
:rewind: Revert change to noxfile that is no longer necessary
burgholzer a33d5d3
:fire: Use builtin functionality for mapping between IfOp operands an…
burgholzer a179e89
:truck: Move entry-point finder to common utils module
burgholzer 4eba897
:children_crossing: Automatically deduce return types
burgholzer 0139926
:children_crossing: Enable shortcut for single-return programs
burgholzer ec6777d
:art: Misc. improvements to QuantumComputation translation
burgholzer 6ab9653
:art: Automatically infer return type in OQ3 translation
burgholzer 0cd289a
:rotating_light: Fix linter warnings
burgholzer 900c370
Merge branch 'main' into mlir/dead-gate-elimination
MatthiasReumann 93b32c4
Use new builder API in mapping tests
MatthiasReumann 75767b2
Add missing include
MatthiasReumann 5a775ac
feat(mlir): :sparkles: report all qubits in Qasm3 if no output statem…
DRovara 2db079d
test(mlir): :white_check_mark: simplify tests with new `output` handl…
DRovara 5ba7983
Merge branch 'main' into mlir/dead-gate-elimination
DRovara 36cf019
🎨 Streamline QASM programs
burgholzer 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.