diff --git a/include/qtensornetwork.hpp b/include/qtensornetwork.hpp index 295955e51..26376e09f 100644 --- a/include/qtensornetwork.hpp +++ b/include/qtensornetwork.hpp @@ -426,7 +426,7 @@ class QTensorNetwork : public QInterface { bi_or_ip(&result, pow2(i)); } } - shotsArray[shot] = result; + shotsArray[shot] = (bitCapIntOcl)result; } } }