Skip to content

Commit e42f5cb

Browse files
committed
fix peek_measurement
1 parent 5d699b3 commit e42f5cb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/lib.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2603,16 +2603,15 @@ mod graphsim {
26032603
qubits
26042604
.iter()
26052605
.map(|&idx| {
2606-
let ax = if let Some(det) = changeset.find_deterministic(idx) {
2607-
det
2606+
let axis = if let Some(deterministic) = changeset.find_deterministic(idx) {
2607+
deterministic
26082608
} else {
26092609
rand::rng().random()
26102610
};
26112611

2612-
changeset.measure(idx, ax);
2612+
let (result, _) = changeset.measure(idx, axis);
26132613

2614-
todo!();
2615-
//(idx, changeset[idx].vop.into())
2614+
(idx, Outcome { result, axis })
26162615
})
26172616
.collect()
26182617
}

0 commit comments

Comments
 (0)