Skip to content

Commit

Permalink
applying review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderivrii committed Feb 10, 2025
1 parent 67d0b19 commit 68e6a7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/accelerate/src/remove_identity_equiv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ fn remove_identity_equiv(

if global_phase_update != 0. {
dag.add_global_phase(py, &Param::Float(global_phase_update))
.unwrap();
.expect("The global phase is guaranteed to be a float");
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
fixes:
- |
Fixed a bug in :class:`.RemoveIdentityEquivalent` transpiler pass, where the
unitary gates close to identity up to a global phase were removed from the circuit,
Fixed a bug in the :class:`.RemoveIdentityEquivalent` transpiler pass, where gates close
to identity up to a global phase were removed from the circuit,
but the global phase of the circuit was not updated. In particular,
:class:`.RemoveIdentityEquivalent` now removes non-parameterized :class:`.GlobalPhaseGate`
gates.

0 comments on commit 68e6a7f

Please sign in to comment.