Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Trotter evolution of sums with identity terms (qiskit-community/q…
…iskit-aqua#1304) * Fix Trotter evolution of sums with identity terms Previously, Trotterization did not exclude any terms consisting of a scalar times the identity from the list of terms to be repeated. Instead, if present, an identity term was included in the resulting circuit as repeated identity gates, with the coefficient of the identity operator discarded. But, this coefficient must be accounted for: exp(-i * coeff * I) should introduce a global phase. With this PR, we remove the scalar-multiple-of-identity terms from the SummedOp to be Trotterized. We then set the global phase of the resulting circuit to account for the removed identity term. Fixes qiskit-community/qiskit-aqua#1269 * Add test for Trotter evolution of sums with identity terms * Add release note for fix-trotter-global-phase * Fix linter complaints Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
- Loading branch information