From 3afd29ca2a23f39feb2cdb3c0ddeef548af244be Mon Sep 17 00:00:00 2001 From: Tyson Jones Date: Thu, 27 Feb 2025 21:39:00 +0100 Subject: [PATCH] have it your way --- tests/utils/linalg.cpp | 4 ++-- tests/utils/linalg.hpp | 2 +- tests/utils/measure.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/utils/linalg.cpp b/tests/utils/linalg.cpp index d7fe0f652..1ecbd69b8 100644 --- a/tests/utils/linalg.cpp +++ b/tests/utils/linalg.cpp @@ -40,7 +40,7 @@ qcomp getExpI(qreal x) { } -int getBit(qindex num, int ind) { +int getBitAt(qindex num, int ind) { return (num >> ind) & 1; } @@ -308,7 +308,7 @@ qmatrix getPartialTrace(qmatrix in, vector targets) { // prepare { |0>, I, I, |1>, ... } vector matrices(numQubits, getIdentityMatrix(2)); for (size_t t=0; t getAllRefProbsInner(auto& state, vector targets) { for (size_t i=0; i