Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/transpiler/src/passes/constrained_reschedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ fn push_node_back(

// Compute overlap if there is qubits overlap
let qreg_overlap = if !this_qubits.is_disjoint(&next_qubits) {
new_t1q - next_t0q
new_t1q.saturating_sub(next_t0q)
} else {
0
};
Expand All @@ -219,7 +219,7 @@ fn push_node_back(
&& !this_clbits.is_disjoint(&next_clbits)
{
if let (Some(t1c), Some(t0c)) = (new_t1c, next_t0c) {
t1c - t0c
t1c.saturating_sub(t0c)
} else {
0
}
Expand Down
Loading