Skip to content

Commit

Permalink
[CircuitCheck] Handle qvec as controls
Browse files Browse the repository at this point in the history
  • Loading branch information
boschmitt committed May 8, 2023
1 parent 31d77d2 commit 9da74fa
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 286 deletions.
33 changes: 0 additions & 33 deletions test/Quake/ctrlR1ToCtrlX.qke

This file was deleted.

81 changes: 0 additions & 81 deletions test/Quake/ctrlRnToCtrlX.qke

This file was deleted.

106 changes: 0 additions & 106 deletions test/Quake/iqm_gate_map.qke

This file was deleted.

19 changes: 0 additions & 19 deletions test/Quake/iqm_gate_map_unitary.qke

This file was deleted.

5 changes: 3 additions & 2 deletions utils/CircuitCheck/CircuitCheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ int main(int argc, char **argv) {
};
cudaq::UnitaryBuilder::UMatrix checkUnitary;
cudaq::UnitaryBuilder::UMatrix inputUnitary;
auto exitStatus = EXIT_SUCCESS;
for (auto checkFunc : checkMod->getOps<func::FuncOp>()) {

StringAttr opName = checkFunc.getSymNameAttr();
checkUnitary.resize(0, 0);
inputUnitary.resize(0, 0);
Expand All @@ -99,6 +99,7 @@ int main(int argc, char **argv) {
std::cerr << checkUnitary << '\n';
std::cerr << "Got:\n";
std::cerr << inputUnitary << '\n';
exitStatus = EXIT_FAILURE;
}

if (printUnitary) {
Expand All @@ -107,5 +108,5 @@ int main(int argc, char **argv) {
<< checkUnitary << "\n\n";
}
}
return EXIT_SUCCESS;
return exitStatus;
}
Loading

0 comments on commit 9da74fa

Please sign in to comment.