Commit 9422e143 authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Fixed Hadamard test



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parent c909569c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@ double hadamard_test(StatePrep state_prep, Unitary unitary,
  // if not, grab exp-val-z key in buffer
  auto counts = q.counts();
  if (counts.empty()) {
    return q.results()->getExpectationValueZ();
    return q.exp_val_z();
  }
 
  // We have counts, so use that