Skip to content

Commit

Permalink
Merge branch 'set-precision' into set-precision-cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
KowerKoint authored and KowerKoint committed Dec 13, 2024
2 parents 3ea7568 + 4d65f3d commit c2a2461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/gate/gate_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ void test_matrix_control(std::uint64_t n_qubits) {
Eigen::Matrix<StdComplex<Fp>, 2, 2, Eigen::RowMajor> U3 =
get_eigen_matrix_random_one_target_unitary<Fp>();
auto U = internal::kronecker_product<Fp>(U3, internal::kronecker_product<Fp>(U2, U1));
internal::ComplexMatrix<Fp> mat(U.rows(), U.cols());
internal::ComplexMatrix<Fp> mat = ComplexMatrix<Fp>::Zero(U.rows(), U.cols());
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
mat(i, j) = U(i, j);
Expand Down

0 comments on commit c2a2461

Please sign in to comment.