Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrandhsn committed Sep 2, 2024
1 parent 044cd60 commit 37bac9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/accelerate/src/commutation_cancellation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,7 @@ pub(crate) fn cancel_commutations(
};

//dag.add_global_phase(py, &Param::Float(total_phase-new_op_phase))?;
//TODO do we really want this or is this a bug in the original pass?
// This will set the global phase to 0 even if the pass does not modify the dag otherwise
//TODO do we really want this instead of adding the new phase to the dag or is this a bug in the original pass?
dag.set_global_phase(Param::Float(total_phase - new_op_phase));

for node in cancel_set {
Expand Down

0 comments on commit 37bac9b

Please sign in to comment.