Skip to content

Commit

Permalink
* Correct the comment about global pahse on R1ToU3
Browse files Browse the repository at this point in the history
* Simpler command-line invocation in test

Signed-off-by: Pradnya Khalate <[email protected]>
  • Loading branch information
khalatepradnya committed Nov 25, 2024
1 parent 258e0e9 commit e33f2a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Optimizer/Transforms/DecompositionPatterns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ struct R1ToRz : public OpRewritePattern<quake::R1Op> {
}
};

// Naive mapping of R1 to U3, ignoring the global phase.
// Naive mapping of R1 to U3
// This is only expected to work with full inlining and
// quake apply specialization.
struct R1ToU3 : public OpRewritePattern<quake::R1Op> {
Expand Down
4 changes: 2 additions & 2 deletions test/Transforms/BasisConversion/phased_rx-cz.qke
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// the terms of the Apache License 2.0 which accompanies this distribution. //
// ========================================================================== //

// RUN: cudaq-opt -pass-pipeline='builtin.module(basis-conversion{basis=z(1),phased_rx,disable-patterns=R1ToU3})' %s | FileCheck %s
// RUN: cudaq-opt -pass-pipeline='builtin.module(basis-conversion{basis=z(1),phased_rx,disable-patterns=R1ToU3})' %s | CircuitCheck %s --up-to-global-phase
// RUN: cudaq-opt --basis-conversion="basis=z(1),phased_rx disable-patterns=R1ToU3" %s | FileCheck %s
// RUN: cudaq-opt --basis-conversion="basis=z(1),phased_rx disable-patterns=R1ToU3" %s | CircuitCheck %s --up-to-global-phase


// CHECK-LABEL: func.func @cx
Expand Down

0 comments on commit e33f2a8

Please sign in to comment.