Skip to content

Commit

Permalink
Check prob_perm() parameter lengths match
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed Feb 23, 2023
1 parent 9f549ab commit a50cd2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qrack_simulator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2165,6 +2165,9 @@ impl QrackSimulator {
// probability that each qubit in "q[i]" has corresponding truth
// value in "c[i]", at once

if q.len() != c.len() {
return Err(QrackError{});
}
let mut _q = q.to_vec();
let mut _c = c.to_vec();
let result:f64;
Expand Down

0 comments on commit a50cd2c

Please sign in to comment.