Skip to content

Commit 541c7ca

Browse files
committed
🚧 debug failing conversion
1 parent f8215ca commit 541c7ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci_mlir_plugin.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ jobs:
212212
otool -l $(which catalyst) || true
213213
fi
214214
215+
# Only for debugging run lit manually
216+
- name: Run lit for mqt-core-catalyst-plugin
217+
working-directory: plugins/catalyst
218+
run: python -m lit test/Conversion/quantum.mlir -v
219+
215220
# Reconfigure CMake for LIT
216221
- name: Reconfigure CMake for LIT
217222
working-directory: plugins/catalyst

plugins/catalyst/test/Conversion/quantum.mlir

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// RUN: --debug \
1313
// RUN: --catalyst-pipeline="builtin.module(catalystquantum-to-mqtopt)" \
1414
// RUN: %s | FileCheck %s
15-
// XFAIL: *
1615

1716
module {
1817
// CHECK-LABEL: func @bar()
@@ -61,7 +60,7 @@ module {
6160

6261
// CHECK: %[[CRX0:.*]], %[[CRX1:.*]] = mqtopt.rx(%[[PHI]] static [] mask [false]) %[[P]] ctrl %[[TOFPACKED]]#0 : !mqtopt.Qubit ctrl !mqtopt.Qubit
6362
// CHECK: %[[CRY0:.*]], %[[CRY1:.*]] = mqtopt.ry(%[[PHI]] static [] mask [false]) %[[CRX0]] ctrl %[[CRX1]] : !mqtopt.Qubit ctrl !mqtopt.Qubit
64-
// CHECK: %[[CRZ0:.*]], %[[CRZ1:.*]] = mqtopt.ry(%[[PHI]] static [] mask [false]) %[[CRY0]] ctrl %[[CRY1]] : !mqtopt.Qubit ctrl !mqtopt.Qubit
63+
// CHECK: %[[CRZ0:.*]], %[[CRZ1:.*]] = mqtopt.rz(%[[PHI]] static [] mask [false]) %[[CRY0]] ctrl %[[CRY1]] : !mqtopt.Qubit ctrl !mqtopt.Qubit
6564
// CHECK: %[[CPS0:.*]], %[[CPS1:.*]] = mqtopt.p(%[[PHI]] static [] mask [false]) %[[CRZ0]] ctrl %[[CRZ1]] : !mqtopt.Qubit ctrl !mqtopt.Qubit
6665
%crx:2 = quantum.custom "CRX"(%phi0) %toffoli#1, %phaseShift : !quantum.bit, !quantum.bit
6766
%cry:2 = quantum.custom "CRY"(%phi0) %crx#1, %crx#0 : !quantum.bit, !quantum.bit

0 commit comments

Comments
 (0)