Ta strona nie została jeszcze przetłumaczona na język polski. Oglądasz oryginalną wersję angielską.
Operator backpropagation (OBP)
Operator backpropagation (OBP) is a technique to reduce circuit depth by trimming operations from its end at the cost of more operator measurements. There are a number of ways in which operator backpropagation can be performed, and this package uses a method based on Clifford perturbation theory [1].
As one propagates an operator further through a circuit, the size of the observable to measure grows exponentially. This results in both a classical and quantum resource overhead. However, for some circuits, the resulting distribution of additional Pauli observables is more concentrated than the worst-case exponential scaling. This implies that some terms in an observable with small coefficients can be truncated to reduce the quantum overhead. The error incurred by doing so can be controlled to find a suitable tradeoff between precision and efficiency.
Installation
You can install the OBP package in one of two ways: via PyPI or building from source. Consider installing these packages in a virtual environment to ensure separation between package dependencies.
Install from PyPI
The most straightforward way to install the qiskit-addon-obp package is via PyPI.
pip install qiskit-addon-obp
Build from source
Users who wish to contribute to this package or who want to install it manually may do so by first cloning the repository:
git clone git@github.com:Qiskit/qiskit-addon-obp.git
```_
and install the package via `pip`. The repository also contains example notebooks. If you plan on developing in the repository, install the `dev` dependencies.
Adjust the options to suit your needs:
```bash
pip install tox notebook -e '.[notebook-dependencies, dev]'
Theoretical background
The OBP procedure implemented in this package is described in detail in [1]. When using the Estimator primitive, the output of a quantum workload is the estimation of one or more expectation values with respect to some state prepared using a QPU. This section summarizes the procedure.
First, start by writing the expectation value measurement of an observable in terms of some initial state and a quantum circuit :
To distribute this problem across both classical and quantum resources, split the circuit into two subcircuits, and , classically simulate the circuit , then execute the circuit on quantum hardware and use the results of the classical simulation to reconstruct the measurement of the observable .

The subcircuit should be selected to be classically simulable and will compute the expectation value
which is the version of the initial operator evolved through the circuit . Once has been determined, the quantum workload is prepared wherein the state is initiated, has the circuit applied to it, and then measures the expectation value . You can show that this is equivalent to measuring by writing: