Multi-product formulas (MPF)
Halaman ini belum diterjemahkan. Anda sedang melihat versi asal dalam bahasa Inggeris.
Package versions
The code on this page was developed using the following requirements. We recommend using these versions or newer.
Multi-product formulas (MPF) can be used to more accurately simulate the dynamics of a quantum system, at the cost of increased circuit executions. This is a post-processing technique that mitigates the error of expectation values for time-evolved states.
Classical computing is used to solve a system of linear equations that provides coefficients to a weighted combination of several circuit executions. Using this weighted combination can reduce the error associated with simulating time evolution, given a good selection of Trotter steps. The MPF tool will ingest a selection of data --- including the number of Trotter steps and the order of the Trotter approximation --- to prepare and solve (or approximate the solution of) the associated system of linear equations, which you can then use to post-process expectation value measurements of a time-evolved state.
Install the MPF package
There are two ways to install the MPF package: via PyPI and building from source. It is recommended to install in a virtual environment to ensure separation between package dependencies.
Install from PyPI
The most straightforward way to install the qiskit-addon-mpf package is via PyPI.
pip install qiskit-addon-mpf
Build from source
Users who wish to develop in the repository or who want to install it manually may do so by first cloning the repository:
git clone git@github.com:Qiskit/qiskit-addon-mpf.git
and install the package via pip. The repository also contains a number of optional dependencies that enable certain features.
Adjust the options to suit your needs.
pip install tox notebook -e '.[notebook-dependencies,dev]'
Theoretical background
MPFs can reduce the Trotter approximation error associated with simulating the dynamics of quantum systems through a weighted combination of several circuit executions. This weighted sum is defined as: