Python implementation of the quantum optimal control GOAT-algorithm
Project description
goat_quantumcontrol
goat_quantumcontrol is a python library for the optimization of quantum gates using the GOAT algorithm.
The algorithm was developed in 2018 by Machnes et. al. and got published in the following paper: https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.120.150401
Installation
Use the package manager pip to install goat_quantumcontrol.
pip install goat_quantumcontrol
Usage
import goat_quantumcontrol as Qgoat
#-----System parameters------
# define the drift Hamiltonian
H0 = sigmax
# define the control Hamiltonian
Hdrive = sigmaz
# define the target gate
Utarget = X_gate
#-----Pulse parameters------
# define the number of time intervals
n_ts = 1000
# define the evolution time
evo_time = 3
# define the number of amps
num_of_amps = 2
#-----Optimization parameters--
# define the number of maximal iterations
max_iter = 200
# create an instance of the Pulse class to be used
fourier_pulse = Qgoat.FourierPulseWithEnvelope(n_ts=n_ts,
evo_time=evo_time,
num_of_amps=num_of_amps,
window=None)
# create an instance of the Optimizer class
optimizer = Qgoat.Optimizer(H0=H0, Hdrive=Hdrive,
target=Utarget,
pulse=fourier_pulse,
max_iter=max_iter,
printProgress=True)
# run the optimization
optimizer.run_optimization()
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 goat_quantumcontrol-0.0.6.tar.gz.
File metadata
- Download URL: goat_quantumcontrol-0.0.6.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8adedc505a2becc9861c3c7c286885ac23705b21806e9df5e449190bfce42338
|
|
| MD5 |
ecc4b42b0f9981f34c667fe558af7ca6
|
|
| BLAKE2b-256 |
65a219941d450a36078a84bebe12558570b5236a4becacde9723cf5ba19e72c1
|
File details
Details for the file goat_quantumcontrol-0.0.6-py3-none-any.whl.
File metadata
- Download URL: goat_quantumcontrol-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfe5c405c5791d4bb7d3d58501d3cd1becc0717961f37b7b87d47e37257aa7aa
|
|
| MD5 |
f0e4fb2a6b62b154c89c29cc851d6065
|
|
| BLAKE2b-256 |
fba8c2ab7812a31091a649c01b3c166c05d469979f0eeda00563ba7350d6004f
|