Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Signed-off-by: Alex McCaskey <amccaskey@nvidia.com>
  • Loading branch information
amccaskey committed Jan 23, 2024
1 parent 0678951 commit 14a5a3f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions python/runtime/cudaq/algorithms/py_observe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ enum class PyParType { thread, mpi };
/// @brief Default qpu id value set to 0
constexpr int defaultQpuIdValue = 0;

/// @brief Global cache map of OpaqueArguments
///
/// For asynchronous execution, we need to construct OpaqueArguments
/// outside of the async lambda invocation. If we don't, then we will be
/// using Python types outside of the current GIL context. Bad things happen
/// then.
std::unordered_map<std::size_t, std::unique_ptr<OpaqueArguments>>
asyncArgsHolder;

/// @brief Run `cudaq::observe` on the provided kernel and spin operator.
observe_result pyObserve(kernel_builder<> &kernel, spin_op &spin_operator,
py::args args, int shots,
Expand Down

0 comments on commit 14a5a3f

Please sign in to comment.