-
-
Notifications
You must be signed in to change notification settings - Fork 1
Catalyst Quantum -> QC Conversion #87
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
base: main
Are you sure you want to change the base?
Changes from all commits
d0c370a
c997a9f
14129c5
64364f6
82bbf34
bad4111
473cfda
c09232c
0b1a52a
df84f65
caac364
5c91be1
fee5767
92e4593
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Copyright (c) 2025 - 2026 Chair for Design Automation, TUM | ||
| # Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH | ||
| # All rights reserved. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
| # | ||
| # Licensed under the MIT License | ||
|
|
||
| set(LLVM_TARGET_DEFINITIONS CatalystQuantumToQC.td) | ||
| mlir_tablegen(CatalystQuantumToQC.h.inc -gen-pass-decls -name CatalystQuantumToQC) | ||
| add_public_tablegen_target(CatalystQuantumToQCIncGen) | ||
|
|
||
| add_mlir_doc(CatalystQuantumToQC CatalystQuantumToQC ./ -gen-pass-doc) |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Copyright (c) 2025 - 2026 Chair for Design Automation, TUM | ||
| # Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH | ||
| # All rights reserved. | ||
| # | ||
| # SPDX-License-Identifier: MIT | ||
| # | ||
| # Licensed under the MIT License | ||
|
|
||
| set(LLVM_TARGET_DEFINITIONS QCToCatalystQuantum.td) | ||
| mlir_tablegen(QCToCatalystQuantum.h.inc -gen-pass-decls -name QCToCatalystQuantum) | ||
| add_public_tablegen_target(QCToCatalystQuantumIncGen) | ||
|
|
||
| add_mlir_doc(QCToCatalystQuantum QCToCatalystQuantum ./ -gen-pass-doc) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,17 +8,17 @@ | |
|
|
||
| include "mlir/Pass/PassBase.td" | ||
|
|
||
| def MQTOptToCatalystQuantum : Pass<"mqtopt-to-catalystquantum"> { | ||
| let summary = "Convert MQT's `MQTOpt` to Catalyst's `Quantum` dialect."; | ||
| def QCToCatalystQuantum : Pass<"qc-to-catalystquantum"> { | ||
| let summary = "Convert MQT's `QC` to Catalyst's `Quantum` dialect."; | ||
|
|
||
| let description = [{ | ||
| This pass converts MQT's `MQTOpt` to Catalyst's `Quantum` dialect. | ||
| This pass converts MQT's `QC` to Catalyst's `Quantum` dialect. | ||
| }]; | ||
| let dependentDialects = [ | ||
| "::catalyst::quantum::QuantumDialect", | ||
| "::mlir::arith::ArithDialect", | ||
| "::mlir::func::FuncDialect", | ||
| "::mlir::memref::MemRefDialect", | ||
| "::mqt::ir::opt::MQTOptDialect" | ||
| "::mlir::qc::QCDialect" | ||
|
Comment on lines
+11
to
+22
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pass defined but registration is commented out. The
Per the PR description, this is intentional for the draft state since back-conversion is incomplete. Ensure the registration is uncommented when the implementation is ready. 🤖 Prompt for AI Agents |
||
| ]; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generate
QCToCatalystQuantum.h.incbefore including it here.CI already fails because this renamed header is not being produced. Please add or fix the matching include-side TableGen wiring for
QCToCatalystQuantumbefore merging; otherwise every translation unit that includes this header will fail to compile.🤖 Prompt for AI Agents