Skip to content

Commit

Permalink
Fix xacc quantum test for revert to single interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sethrj committed Jul 19, 2024
1 parent 2bf053d commit def9076
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/qirxacc/XaccQuantum.test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

#include "qiree/Types.hh"
#include "qiree_test.hh"
#include "qirxacc/XaccDefaultRuntime.hh"

namespace qiree
{
Expand Down Expand Up @@ -66,7 +65,6 @@ TEST_F(XaccQuantumTest, sim_rotation)

// Create a simulator that will write to the string stream
XaccQuantum xacc_sim{os};
XaccDefaultRuntime xacc_rt{os, xacc_sim};

// Call functions in the same sequence that rotation.ll would
xacc_sim.set_up([] {
Expand All @@ -79,8 +77,8 @@ TEST_F(XaccQuantumTest, sim_rotation)
xacc_sim.rx(pi / 6, Q{0});
xacc_sim.h(Q{0});
xacc_sim.mz(Q{0}, R{0});
xacc_rt.array_record_output(1, "yeehaw");
xacc_rt.result_record_output(R{0}, "tag");
xacc_sim.array_record_output(1, "yeehaw");
xacc_sim.result_record_output(R{0}, "tag");
xacc_sim.tear_down();

auto result = clean_output(os.str());
Expand Down

0 comments on commit def9076

Please sign in to comment.