Commit e1396c5a authored by Omar's avatar Omar
Browse files

fix: properly handle f64 block arguments in gate translation

fixes #220
parent 2c1660f4
......@@ -153,6 +153,10 @@ antlrcpp::Any qasm3_visitor::visitQuantumGateDefinition(
std::vector<mlir::Value> result_qubit_vals;
for (auto arg : entryBlock.getArguments()) {
mlir::Value last_user = arg;
if (arg.getType().isF64()) {
result_qubit_vals.push_back(arg);
continue;
}
auto users = last_user.getUsers();
while (!users.empty()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment