Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
multiphaseCFD committed Sep 13, 2024
1 parent f4e2587 commit aeac9ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ template <class PrecisionT> class MPOTNCuda {
PL_ABORT_IF_NOT(std::is_sorted(wires.begin(), wires.end()),
"Only sorted target wires is accepeted.");

PL_ABORT_IF_NOT(
wires.size() == wires.back() - wires.front() + 1,
"Only support local target wires.");
PL_ABORT_IF_NOT(wires.size() == wires.back() - wires.front() + 1,
"Only support local target wires.");

// Create an empty MPO tensor network operator. Note that the state
// extents are aligned with the quantum state.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ template <class TensorNetT> class MeasurementsTNCuda {
// LCOV_EXCL_START
if (wires.size() > 10) {
PrecisionT sum;

asum_CUDA_device<PrecisionT>(
d_output_probs.getData(), length,
tensor_network_.getDevTag().getDeviceID(),
Expand Down

0 comments on commit aeac9ed

Please sign in to comment.