Skip to main content

Krotov Python Package

Source code on Github Documentation Krotov on the Python Package Index Docs Tests Codecov BSD License Launch Binder DOI

Python implementation of Krotov's method for quantum optimal control.

This implementation follows the original implementation in the QDYN Fortran library.

The krotov package is built on top of QuTiP.

Development happens on Github. You can read the full documentation online.

If you use the krotov package in your research, please cite it.

Purpose

Optimal control is a cornerstone of quantum technology: relying not just on a passive understanding of quantum mechanics, but on the active utilization of the quantum properties of matter. Quantum optimal control asks how to manipulate the dynamics of a quantum system in some desired way. This is essential for the realization of quantum computers and related technologies such as quantum sensing.

Krotov's method and GRAPE are the two leading gradient-based optimization algorithms used in numerical quantum optimal control. Krotov's method distinguishes itself by guaranteeing monotonic convergence for near-continuous control fields. This makes is particularly useful for exploring the limits of controllability in a physical system. While GRAPE is found in various software packages, there has not been an open source implementation of Krotov's method to date. Our package provides that missing implementation.

The Krotov package targets both students wishing to enter the field of quantum control and researchers in the field. It was designed towards the following goals:

  • Leverage the QuTiP library as a platform for numerically describing quantum systems.
  • Provide a collection of examples inspired by recent publications in the Jupyter notebook format, allowing for interactive exploration of the method.
  • Define a general interface for formulating any quantum control problem, which may extend to other optimization methods in the future.
  • Serve as a reference implementation of Krotov's method, and as a foundation against which to test other implementations.
  • Enable the more widespread use of Krotov's method, for example in the design of experiments.

Further Information

For further information, including installation and usage instructions, see the documentation at https://qucontrol.github.io/krotov.

Metadata

Release files for krotov 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for krotov 1.3.0
File Size Uploaded
krotov-1.3.0.tar.gz 3.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for krotov 1.3.0
File Interpreter ABI Platform
krotov-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.5 MB

Release files / krotov-1.3.0.tar.gz

Download URL krotov-1.3.0.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
7053caec3884a21c606abcf50a78d6c3483cebdb4f0c3f5c44f1f2e8c4529846
BLAKE2b-256 checksum
How to use checksums
5031526a4c99735211f51eaa90e6fdba01193ccc2d2475ae0aefbb9cd439a999
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.8.16

Release files / krotov-1.3.0-py3-none-any.whl

Download URL krotov-1.3.0-py3-none-any.whl
Size 73.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
376cf0010be67bf70850fa191c6bae9f4f207f0e11aa0792d29c78aad1faec08
BLAKE2b-256 checksum
How to use checksums
83bcbc161d39e33cda5bd9fb7843e271c191f104876bc4521343d7cef6c226f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.8.16

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page