Skip to content

Commit e20457e

Browse files
committed
minor fixes
1 parent 7512292 commit e20457e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/lib/Dialect/MQTOpt/Transforms/SwapReconstructionAndElisionPattern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ struct SwapReconstructionAndElisionPattern final : mlir::OpRewritePattern<XOp> {
105105
matchAndRewrite(XOp op, mlir::PatternRewriter& rewriter) const override {
106106
// step 1
107107
if (op.getPosCtrlInQubits().size() != 1 &&
108-
op.getNegCtrlInQubits().size() != 0) {
108+
op.getNegCtrlInQubits().empty()) {
109109
return mlir::failure();
110110
}
111111

mlir/test/Dialect/MQTOpt/Transforms/swap-reconstruction-and-elision.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ module {
210210
// elision twice.
211211

212212
module {
213-
// CHECK-LABEL: func.func @testFirstTwoThenTwoAgainSwapReconstructionAndElision
213+
// CHECK-LABEL: func.func @testFirstTwoThenTwoCNotAgainSwapReconstructionAndElision
214214
func.func @testFirstTwoThenTwoAgainSwapReconstructionAndElision() {
215215
// CHECK: %[[Q0_0:.*]] = mqtopt.allocQubit
216216
// CHECK: %[[Q1_0:.*]] = mqtopt.allocQubit

0 commit comments

Comments
 (0)