Skip to content

Commit

Permalink
fix applyControlledMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
multiphaseCFD committed Oct 16, 2024
1 parent dd0307a commit d81874b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,11 @@ class StateVectorCudaManaged
std::vector<int> ctrls_valuesInt(ctrls.size());

std::transform(
ctrls.begin(), ctrls.end(), ctrlsInt.begin(), [&](std::size_t x) {
ctrls.rbegin(), ctrls.rend(), ctrlsInt.begin(), [&](std::size_t x) {
return static_cast<int>(BaseType::getNumQubits() - 1 - x);
});
std::transform(
tgts.begin(), tgts.end(), tgtsInt.begin(), [&](std::size_t x) {
tgts.rbegin(), tgts.rend(), tgtsInt.begin(), [&](std::size_t x) {
return static_cast<int>(BaseType::getNumQubits() - 1 - x);
});

Expand Down

0 comments on commit d81874b

Please sign in to comment.