Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed Aug 27, 2024
1 parent a0e4592 commit d759381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/accelerate/src/euler_one_qubit_decomposer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ pub(crate) fn optimize_1q_gates_decomposition(
None => raw_run.len() as f64,
};
let qubit: PhysicalQubit = if let NodeType::Operation(inst) = &dag.dag[raw_run[0]] {
PhysicalQubit::new(dag.get_qubits(inst.qubits)[0].0)
PhysicalQubit::new(dag.get_qargs(inst.qubits)[0].0)
} else {
unreachable!("nodes in runs will always be op nodes")
};
Expand Down

0 comments on commit d759381

Please sign in to comment.