Skip to content

Commit

Permalink
Represent Var with BitData.
Browse files Browse the repository at this point in the history
Co-authored-by: John Lapeyre <jlapeyre@users.noreply.github.com>
  • Loading branch information
kevinhartman and jlapeyre committed Oct 23, 2024
1 parent 9a1d8d3 commit 013c7fc
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 232 deletions.
2 changes: 1 addition & 1 deletion crates/accelerate/src/commutation_analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub(crate) fn analyze_commutations_inner(
for qubit in 0..dag.num_qubits() {
let wire = Wire::Qubit(Qubit(qubit as u32));

for current_gate_idx in dag.nodes_on_wire(py, &wire, false) {
for current_gate_idx in dag.nodes_on_wire(&wire, false) {
// get the commutation set associated with the current wire, or create a new
// index set containing the current gate
let commutation_entry = commutation_set
Expand Down
Loading

0 comments on commit 013c7fc

Please sign in to comment.