Skip to content

Commit

Permalink
Debug WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Nov 23, 2024
1 parent d3f84f0 commit 7bdd878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wasm_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ bitLenInt GetSimShardId(QInterfacePtr simulator, bitLenInt i)
void FillSimShards(QInterfacePtr simulator)
{
shards[simulator.get()] = {};
std::map<uintq, bitLenInt>& s = shards[simulator.get()];
for (uintq i = 0U; i < simulator->GetQubitCount(); ++i) {
std::map<quid, bitLenInt>& s = shards[simulator.get()];
for (quid i = 0U; i < simulator->GetQubitCount(); ++i) {
s[i] = (bitLenInt)i;
}
}
Expand Down

0 comments on commit 7bdd878

Please sign in to comment.