Skip to content

Commit d2d54c1

Browse files
committed
🔧 Simplify return statement in staticQubits function.
1 parent 8192c2d commit d2d54c1

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

mlir/unittests/programs/qco_programs.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ void staticQubits(QCOProgramBuilder& b) {
4040
q0 = b.h(q0);
4141
q1 = b.h(q1);
4242
b.ctrl({q0}, {q1}, [&](mlir::ValueRange targets) {
43-
auto xOut = b.x(targets[0]);
44-
return llvm::SmallVector<mlir::Value>{xOut};
43+
return llvm::SmallVector<mlir::Value>{b.x(targets[0])};
4544
});
4645
}
4746

0 commit comments

Comments
 (0)