We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d699b3 commit e42f5cbCopy full SHA for e42f5cb
src/lib.rs
@@ -2603,16 +2603,15 @@ mod graphsim {
2603
qubits
2604
.iter()
2605
.map(|&idx| {
2606
- let ax = if let Some(det) = changeset.find_deterministic(idx) {
2607
- det
+ let axis = if let Some(deterministic) = changeset.find_deterministic(idx) {
+ deterministic
2608
} else {
2609
rand::rng().random()
2610
};
2611
2612
- changeset.measure(idx, ax);
+ let (result, _) = changeset.measure(idx, axis);
2613
2614
- todo!();
2615
- //(idx, changeset[idx].vop.into())
+ (idx, Outcome { result, axis })
2616
})
2617
.collect()
2618
}
0 commit comments