Skip to content

Commit

Permalink
add reno
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryoris committed Feb 13, 2025
1 parent c3b1b9a commit 10a49b4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions releasenotes/notes/pauli-evo-sparse-obs-9ed7aee2e7c64fcd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
features_circuits:
- |
The :class:`.PauliEvolutionGate` now natively supports :class:`.SparseObservable`\ s as input.
This efficiently allows to handle evolution under projectors, which are implemented as
controls of a phase rotation and require less gates than explicitly expanding the projector
in terms of Paulis. For example::
from qiskit.circuit.library import PauliEvolutionGate
from qiskit.quantum_info import SparseObservable
obs = SparseObservable("001")
evo_proj = PauliEvolutionGate(obs, time=1)
print(evo_proj.definition.draw())

0 comments on commit 10a49b4

Please sign in to comment.