qiskit-community / qiskit-algorithms

A library of quantum algorithms for Qiskit.
https://qiskit-community.github.io/qiskit-algorithms/
Apache License 2.0
116 stars 59 forks source link

`TrotterQRTE` should have an argument `insert_barriers` #127

Closed Durd3nT closed 9 months ago

Durd3nT commented 10 months ago

What should we add?

Currently, barriers can only be added through the synthesis (e.g. LieTrotter). In some cases, this leads to a barrier after every single gate (e.g. when passing a single sum of Paulis). What's more desirable, however, is to add barriers between Trotter-layers, which are appended to the evolution circuit in TrotterQRTE, not in the synthesis.