Skip to content

Commit

Permalink
Allow checking 2Q non-control flow instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
eliarbel committed Sep 8, 2024
1 parent b0d6fda commit 64605cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/accelerate/src/gate_direction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ where
return Ok(false);
}
}
continue;
}
} else if inst_qargs.len() == 2
}

if inst_qargs.len() == 2
&& !match qubit_mapping {
// Check gate direction based either on a given custom mapping or the identity mapping
Some(mapping) => gate_complies(
Expand Down

0 comments on commit 64605cf

Please sign in to comment.