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
Metadata
Release files for goat-quantumcontrol 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| goat_quantumcontrol-0.0.6.tar.gz | 7.9 kB | Without provenance | Details for goat_quantumcontrol-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| goat_quantumcontrol-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for goat_quantumcontrol-0.0.6-py3-none-any.whl |
Total release size: 15.7 kB
Release files / goat_quantumcontrol-0.0.6.tar.gz
| Download URL | goat_quantumcontrol-0.0.6.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8adedc505a2becc9861c3c7c286885ac23705b21806e9df5e449190bfce42338
|
|
BLAKE2b-256 checksum How to use checksums |
65a219941d450a36078a84bebe12558570b5236a4becacde9723cf5ba19e72c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / goat_quantumcontrol-0.0.6-py3-none-any.whl
| Download URL | goat_quantumcontrol-0.0.6-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfe5c405c5791d4bb7d3d58501d3cd1becc0717961f37b7b87d47e37257aa7aa
|
|
BLAKE2b-256 checksum How to use checksums |
fba8c2ab7812a31091a649c01b3c166c05d469979f0eeda00563ba7350d6004f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Security for goat-quantumcontrol 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.