Skip to content

Commit

Permalink
Fix QBdt::Clone()
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Aug 7, 2023
1 parent c4de7b4 commit ebd4b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qbdt/tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ QInterfacePtr QBdt::Clone()
false, -1, (hardware_rand_generator == NULL) ? false : true, false, (real1_f)amplitudeFloor);

copyPtr->root = root ? root->ShallowClone() : NULL;
copyPtr->shards = std::vector<MpsShardPtr>(qubitCount, NULL);
copyPtr->shards = std::vector<MpsShardPtr>(shards);
copyPtr->SetQubitCount(qubitCount);

return copyPtr;
Expand Down

0 comments on commit ebd4b9a

Please sign in to comment.