Skip to content

Commit 3d69d1e

Browse files
🎨 pre-commit fixes
1 parent 21bf9f0 commit 3d69d1e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/algorithms/simulation/quantum_computation_simulation_for_state.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
namespace {
2929
/*
30-
* Prefer the usage of std::chrono::steady_clock instead of std::chrono::sytem_clock since the former cannot decrease (due to time zone changes, etc.) and is most suitable for measuring intervals according to (https://en.cppreference.com/w/cpp/chrono/steady_clock)
30+
* Prefer the usage of std::chrono::steady_clock instead of std::chrono::system_clock since the former cannot decrease (due to time zone changes, etc.) and is most suitable for measuring intervals according to (https://en.cppreference.com/w/cpp/chrono/steady_clock)
3131
*/
3232
using TimeStamp = std::chrono::time_point<std::chrono::steady_clock>;
3333
} // namespace
@@ -47,7 +47,7 @@ namespace syrec {
4747
return std::nullopt;
4848
}
4949
if (statistics != nullptr) {
50-
statistics->set("runtime", static_cast<double>(0));
50+
statistics->set("runtime", static_cast<double>(0));
5151
}
5252
return std::nullopt;
5353
}

src/algorithms/synthesis/syrec_synthesis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
namespace {
3434
/*
35-
* Prefer the usage of std::chrono::steady_clock instead of std::chrono::sytem_clock since the former cannot decrease (due to time zone changes, etc.) and is most suitable for measuring intervals according to (https://en.cppreference.com/w/cpp/chrono/steady_clock)
35+
* Prefer the usage of std::chrono::steady_clock instead of std::chrono::system_clock since the former cannot decrease (due to time zone changes, etc.) and is most suitable for measuring intervals according to (https://en.cppreference.com/w/cpp/chrono/steady_clock)
3636
*/
3737
using TimeStamp = std::chrono::time_point<std::chrono::steady_clock>;
3838
} // namespace

test/unittests/test_simulation_interface_error_cases.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ TEST(SimulationInterfaceErrorCasesTests, EmptyInputStateInQuantumComputationWith
3636
ASSERT_NO_FATAL_FAILURE(quantumComputationOutputQubitValues = simulateQuantumComputationExecutionForState(annotatableQuantumComputation, quantumComputationInputQubitValues, statistics));
3737
ASSERT_FALSE(quantumComputationOutputQubitValues.has_value());
3838
// With the current syrec::Properties interface our only option to check that a property does not exist is by using the .get(...) call without providing a fall-back default value.
39-
// This assertion will however not catch the expected exception in debug builds since an internal assert fails which is not caught by the gtest assertion. Thus we omit the non-existance
39+
// This assertion will however not catch the expected exception in debug builds since an internal assert fails which is not caught by the gtest assertion. Thus we omit the non-existence
4040
// check of the runtime property
4141
//ASSERT_ANY_THROW(statistics->get<double>(EXPECTED_SIMULATION_RUNTIME_PROPERTY_KEY));
4242
}
@@ -87,7 +87,7 @@ TEST(SimulationInterfaceErrorCasesTests, ProvidingLessQubitValuesThanDataQubitsA
8787
ASSERT_NO_FATAL_FAILURE(quantumComputationOutputQubitValues = simulateQuantumComputationExecutionForState(annotatableQuantumComputation, quantumComputationInputQubitValues, statistics));
8888
ASSERT_FALSE(quantumComputationOutputQubitValues.has_value());
8989
// With the current syrec::Properties interface our only option to check that a property does not exist is by using the .get(...) call without providing a fall-back default value.
90-
// This assertion will however not catch the expected exception in debug builds since an internal assert fails which is not caught by the gtest assertion. Thus we omit the non-existance
90+
// This assertion will however not catch the expected exception in debug builds since an internal assert fails which is not caught by the gtest assertion. Thus we omit the non-existence
9191
// check of the runtime property
9292
//ASSERT_ANY_THROW(statistics->get<double>(EXPECTED_SIMULATION_RUNTIME_PROPERTY_KEY));
9393
}
@@ -121,7 +121,7 @@ TEST(SimulationInterfaceErrorCasesTests, ProvidingMoreQubitValuesThanDataQubitsA
121121
ASSERT_NO_FATAL_FAILURE(quantumComputationOutputQubitValues = simulateQuantumComputationExecutionForState(annotatableQuantumComputation, quantumComputationInputQubitValues, statistics));
122122
ASSERT_FALSE(quantumComputationOutputQubitValues.has_value());
123123
// With the current syrec::Properties interface our only option to check that a property does not exist is by using the .get(...) call without providing a fall-back default value.
124-
// This assertion will however not catch the expected exception in debug builds since an internal assert fails which is not caught by the gtest assertion. Thus we omit the non-existance
124+
// This assertion will however not catch the expected exception in debug builds since an internal assert fails which is not caught by the gtest assertion. Thus we omit the non-existence
125125
// check of the runtime property
126126
//ASSERT_ANY_THROW(statistics->get<double>(EXPECTED_SIMULATION_RUNTIME_PROPERTY_KEY));
127127
}
@@ -159,7 +159,7 @@ TEST(SimulationInterfaceErrorCasesTests, CheckFetchingRuntimePropertyWhenStatist
159159
ASSERT_TRUE(quantumComputationOutputQubitValues.has_value());
160160
ASSERT_EQ(1, quantumComputationOutputQubitValues->size());
161161
// With the current syrec::Properties interface our only option to check that a property does not exist is by using the .get(...) call without providing a fall-back default value.
162-
// This assertion will however not catch the expected exception in debug builds since an internal assert fails which is not caught by the gtest assertion. Thus we omit the non-existance
162+
// This assertion will however not catch the expected exception in debug builds since an internal assert fails which is not caught by the gtest assertion. Thus we omit the non-existence
163163
// check of the runtime property
164164
//ASSERT_ANY_THROW(statistics->get<double>(EXPECTED_SIMULATION_RUNTIME_PROPERTY_KEY));
165-
}
165+
}

0 commit comments

Comments
 (0)