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.4.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.4.tar.gz.
File metadata
- Download URL: db_qite-0.0.4.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 |
b205717a8978d83326c1fbe8f86bb729180297908663a4d0028255b37f785e57
|
|
| MD5 |
df001b2ca3a9b64843acfba077c307b7
|
|
| BLAKE2b-256 |
eb1a698cefd9f150d1ea4dd73089a9d1d7f7ac8b5507ed654d44f8f1f7bc6c17
|
File details
Details for the file db_qite-0.0.4-py3-none-any.whl.
File metadata
- Download URL: db_qite-0.0.4-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 |
3e7b0e9499eed17fa39339bb6e1637f74890e11acbb18a362eabc8f73c65b5ec
|
|
| MD5 |
5f2074e0e79d788ddb908d9fbd71614d
|
|
| BLAKE2b-256 |
795b186a07aa4867717eda9f3c1711f2ce10d3f3afcb069e2c272ce3efd83eb7
|