Skip to content

Commit 1f9b98a

Browse files
author
Li-ming Bao
committed
fix broken test
1 parent 134920c commit 1f9b98a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/unittests/programs/qco_programs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,11 +2027,11 @@ void nestedTrueIf(QCOProgramBuilder& b) {
20272027
}
20282028

20292029
void nestedFalseIf(QCOProgramBuilder& b) {
2030-
auto q = b.allocQubitRegister(2);
2030+
auto q = b.allocQubitRegister(1);
20312031
auto q0 = b.h(q[0]);
20322032
auto [measuredQubit, measureResult] = b.measure(q0);
20332033
b.qcoIf(
2034-
measureResult, q[1],
2034+
measureResult, measuredQubit,
20352035
[&](mlir::ValueRange qubits) {
20362036
auto innerQubit = b.x(qubits[0]);
20372037
return llvm::SmallVector<mlir::Value>{innerQubit};

0 commit comments

Comments
 (0)