Skip to content

Commit

Permalink
Fix field name
Browse files Browse the repository at this point in the history
  • Loading branch information
swernli committed Sep 11, 2024
1 parent a0dd818 commit 1beedf1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compiler/qsc_circuit/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl Builder {
struct Remapper {
next_meas_id: usize,
next_qubit_id: usize,
next_qubit_hardware_id: WireId,
next_qubit_wire_id: WireId,
qubit_map: IndexMap<usize, WireId>,
qubit_measurement_counts: IndexMap<WireId, usize>,
}
Expand All @@ -393,8 +393,8 @@ impl Remapper {
if let Some(mapped) = self.qubit_map.get(qubit) {
*mapped
} else {
let mapped = self.next_qubit_hardware_id;
self.next_qubit_hardware_id.0 += 1;
let mapped = self.next_qubit_wire_id;
self.next_qubit_wire_id.0 += 1;
self.qubit_map.insert(qubit, mapped);
mapped
}
Expand Down Expand Up @@ -442,7 +442,7 @@ impl Remapper {

#[must_use]
fn num_qubits(&self) -> usize {
self.next_qubit_hardware_id.0
self.next_qubit_wire_id.0
}

#[must_use]
Expand Down

0 comments on commit 1beedf1

Please sign in to comment.