Ang pahinang ito ay hindi pa naisalin. Nakikita mo ang orihinal na bersyon sa Ingles.
Getting started with Sample-based quantum diagonalization (SQD)
Package versions
The code on this page was developed using the following requirements. We recommend using these versions or newer.
qiskit-addon-sqd~=0.10.0
pyscf~=2.8.0; sys.platform != 'win32'
This example uses the pyscf package, a Python-based chemistry simulation library, which is not natively supported on Windows; therefore, the examples below will not work.
In order to execute the code snippets below, Windows users need to create a Python environment using the Windows Subsystem for Linux, as suggested in the pyscf install guide.
This guide demonstrates a simple working example to get started with the qiskit-addon-sqd package. In this example, you can use SQD to obtain an approximation of the ground state of the molecule at equilibrium.
To begin, recall that the generic interacting-electron Hamiltonian has the form: