Implements Double-Bracket Quantum Imaginary Time Evolution (DB-QITE) in Qiskit
Project description
Double-Bracket Quantum Imaginary Time Evolution (DB-QITE)
Implementation of DB-QITE (by Gluza et al)
Installation
pip install db-qite
Usage
To create a QuantumCircuit
from db_qite import DB_QITE
dbq = DB_QITE(
hamiltonian = H, # hamiltonian: `SparsePauliOp`
initial_state = None, # initial_state array-like, default None
time_step = s, # time step. list or a single value
)
circuit = dbq.create_circuit(
num_steps, # #iterations
random_u0, # boolean. U0 is random or not
)
Run for a range of iterations with plots
from db_qite import db_qite_range
runner, results = db_qite_range(
hamiltonian=H,
initial_state=None, # or initial state
time_step=.5, # or a list
random_u0=True, # or False
num_steps_range=range(1, 6),
backend="simulator", # or None to detect a qiskit backend
estimate_energy=True, # wether to estimate energy or just prepare the state
shots=1024
)
Note: if you provide None, or a qiskit backend name or object, it will run on IBM quantum machines. You have to set IBM_QUANTUM_TOKEN environment variable for it
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
db_qite-0.0.2.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file db_qite-0.0.2.tar.gz.
File metadata
- Download URL: db_qite-0.0.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e687be2f6a46771dd33378641c160be05c6c9a647247450edef32209d25858c
|
|
| MD5 |
fa4cd3016361649cb6fcd04ab1a917c5
|
|
| BLAKE2b-256 |
ead89e656241b2f6f67d1eedb04240984be1d45bd0070d596aaba19eb51e2b9e
|
File details
Details for the file db_qite-0.0.2-py3-none-any.whl.
File metadata
- Download URL: db_qite-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18ffdfc1177ab5e9d0dde5a735e14e2a95b6dd2700f640d55f034d9b3d4777a1
|
|
| MD5 |
5c74e409a6e09c60ff1557d5dbb8f3db
|
|
| BLAKE2b-256 |
26aa1cf6257b8f0b6e0c2310e479a00dd79d8968951916f1c696c3f89614f2cf
|