Skip to content

Commit

Permalink
test single_thread -> multi_thread
Browse files Browse the repository at this point in the history
  • Loading branch information
kotamanegi committed Mar 30, 2022
1 parent 11e3582 commit aca0c6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cppsim/test_hamiltonian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ TEST(ObservableTest, CheckParsedObservableFromOpenFermionText) {

// std::cout << mpt.get_coef() << " ";
// std::cout << elems[3].c_str() << std::endl;
energy += mpt.get_expectation_value_single_thread(state);
energy += mpt.get_expectation_value(state);
// mpt.get_expectation_value(state);
}
return energy;
Expand Down Expand Up @@ -154,7 +154,7 @@ TEST(ObservableTest, CheckParsedObservableFromOpenFermionText) {
QuantumState state(qubit_count);
state.set_computational_basis(0);

res = observable->get_expectation_value_single_thread(&state);
res = observable->get_expectation_value(&state);
test_res = func(text, &state);

ASSERT_NEAR(test_res.real(), res.real(), eps);
Expand Down

0 comments on commit aca0c6f

Please sign in to comment.