Skip to content

Commit

Permalink
Fix unique_ptr type in separability.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Oct 26, 2024
1 parent e1541f2 commit 68c7bff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/separability.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int main(int argc, char* argv[])
const bitLenInt width = (bitLenInt)std::stoi(argv[1U]);
const bitLenInt halfWidth = width >> 1U;
const bitCapIntOcl maxQPower = Qrack::pow2Ocl(width);
std::unique_ptr<Qrack::complex> arr(new Qrack::complex[maxQPower]);
std::unique_ptr<Qrack::complex[]> arr(new Qrack::complex[maxQPower]);

for (bitLenInt i = 0U; i < halfWidth; ++i) {
const bitLenInt subsystemSize = i + 1U;
Expand Down

0 comments on commit 68c7bff

Please sign in to comment.