-
Notifications
You must be signed in to change notification settings - Fork 11
Naive crosstalk #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Naive crosstalk #175
Changes from 1 commit
dcc5fb7
b18def7
28bb322
8657286
aed8122
34ff8ac
d1e59b1
526a31a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| use crate::noise::{ | ||
| GeneralNoiseModel, NoiseRng, SingleQubitWeightedSampler, TwoQubitWeightedSampler, | ||
| }; | ||
| use std::collections::{BTreeMap, HashSet}; | ||
| use std::collections::{BTreeMap, HashSet, BTreeSet}; | ||
|
|
||
| impl Default for GeneralNoiseModel { | ||
| /// Create a new noise model with default error parameters | ||
|
|
@@ -100,6 +100,7 @@ impl Default for GeneralNoiseModel { | |
| p2_idle: 0.0, | ||
| leaked_qubits: HashSet::new(), | ||
| rng: NoiseRng::default(), | ||
| initialized_qubits: BTreeSet::new(), | ||
|
||
| measured_qubits: Vec::new(), | ||
| p_meas_crosstalk: 0.0, | ||
| p_prep_crosstalk: 0.0, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment from Ciaran on the commit:
dcc5fb7#r164014518
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I think I understand. Without tagging in ByteMessage, what I could do is add an extra bool to
measured_qubits, so that'sVec<(usize, bool, bool)>where the second bool corresponds tois_crosstalkto indicate its origin.For the naive crosstalk, I'd just throw away the measurement outcome at
apply_noise_on_continue_processinghere wheneveris_crosstalkis True. In future versions, it could be used to make a decision on how to apply crosstalk.That makes sense, I can do it tomorrow morning. I guess there's no need for tags for the first version, but if you get them in, I'll use them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, sounds good. Later I can add a tag system and replace that.