We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e59b1 commit 526a31aCopy full SHA for 526a31a
crates/pecos-engines/src/noise/general.rs
@@ -830,11 +830,10 @@ impl GeneralNoiseModel {
830
let gate_qubits: Vec<usize> = gate.qubits.iter().map(|q| usize::from(*q)).collect();
831
832
for q in self.prepared_qubits.clone() {
833
- if !gate_qubits.contains(&q)
834
- && self.rng.occurs(probability) {
835
- affected_qubits.push(q);
836
- trace!("Qubit {q} affected by crosstalk error");
837
- }
+ if !gate_qubits.contains(&q) && self.rng.occurs(probability) {
+ affected_qubits.push(q);
+ trace!("Qubit {q} affected by crosstalk error");
+ }
838
}
839
840
builder.add_measurements(&affected_qubits);
0 commit comments