Skip to content

Commit

Permalink
Update crates/accelerate/src/euler_one_qubit_decomposer.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
jlapeyre authored Jul 2, 2024
1 parent 6b3b3c1 commit 1b65d73
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions crates/accelerate/src/euler_one_qubit_decomposer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1056,14 +1056,10 @@ pub fn collect_1q_runs_filter(py: Python, node: PyObject) -> bool {
.operation
.matrix(&node.instruction.params)
.is_some()
&& (node.instruction.extra_attrs.is_none()
|| node
.instruction
.extra_attrs
.as_ref()
.unwrap()
.condition
.is_none())
&& match &node.instruction.extra_attrs {
None => true,
Some(attrs) => attrs.condition.is_none(),
}
}
Err(_) => false,
}
Expand Down

0 comments on commit 1b65d73

Please sign in to comment.