Skip to content

Commit fd7ad5c

Browse files
committed
fix moved-from matrix dimensions
Signed-off-by: Minh Vu <vuhoangminh97@gmail.com>
1 parent fd0616d commit fd7ad5c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

runtime/cudaq/operators/matrix.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class complex_matrix {
8989
: dimensions{other.dimensions}, data{other.data},
9090
internal_order(other.internal_order) {
9191
other.data = nullptr;
92+
other.dimensions = {};
9293
}
9394

9495
complex_matrix(const std::vector<value_type> &v,

0 commit comments

Comments
 (0)