Skip to content

Commit

Permalink
Pass linters.
Browse files Browse the repository at this point in the history
  • Loading branch information
rturrado committed Feb 3, 2025
1 parent d4c12cb commit 675eb32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qx/dense_unitary_matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void DenseUnitaryMatrix::check_is_square() const {
Eigen::VectorXcd eigen_values = solver.eigenvalues();
Eigen::MatrixXcd eigen_vectors = solver.eigenvectors();

for (auto& eigen_value: eigen_values) {
for (auto& eigen_value : eigen_values) {
if (std::abs(eigen_value) >= config::EPSILON) {
eigen_value /= std::abs(eigen_value); // normalize phase
}
Expand Down

0 comments on commit 675eb32

Please sign in to comment.