Skip to content

Commit 8a8899d

Browse files
🎨 pre-commit fixes
1 parent b91836f commit 8a8899d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/algorithms/StatePreparation.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ template <typename T>
7979
return identity;
8080
}
8181

82-
[[nodiscard]] auto
83-
matrixVectorProd(const Matrix& matrix,
84-
std::vector<double> vector) -> std::vector<double> {
82+
[[nodiscard]] auto matrixVectorProd(const Matrix& matrix,
83+
std::vector<double> vector)
84+
-> std::vector<double> {
8585
std::vector<double> result;
8686
for (const auto& matrixVec : matrix) {
8787
double sum{0};
@@ -195,8 +195,8 @@ rotationsToDisentangle(std::vector<std::complex<double>> amplitudes)
195195

196196
// creates circuit that takes desired vector to zero
197197
[[nodiscard]] auto
198-
gatesToUncompute(std::vector<std::complex<double>> amplitudes,
199-
size_t numQubits) -> QuantumComputation {
198+
gatesToUncompute(std::vector<std::complex<double>> amplitudes, size_t numQubits)
199+
-> QuantumComputation {
200200
QuantumComputation disentangler{numQubits};
201201
for (size_t i = 0; i < numQubits; ++i) {
202202
// rotations to disentangle LSB

0 commit comments

Comments
 (0)