kestrelquantum / QuantumCollocation.jl

Quantum Optimal Control with Direct Collocation
MIT License
29 stars 7 forks source link

[Feature]: Virtual Z-gate Loss #86

Closed aarontrowbridge closed 1 month ago

aarontrowbridge commented 4 months ago

Feature Description

In certain situations, it is convenient to define a unitary infidelity loss that takes into account the ability of the hardware to easily handle virtual Z-gates. A loss can be written down for this in the form of

$$ \ell(U, \theta) = \mathcal{F}\left( \left(\bigotimes\alpha Z(\theta\alpha) \right) U, U_{\text{goal}} \right). $$

Here $\theta$ is a vector of free Z-rotation angles, that are also decision variables. An issue in NamedTrajectories.jl will provide the functionality to store "global" parameters -- parameters that don't depend on time -- to be used as decision variables in the optimizer.

Completing this issue requires:

Importance

3

What does this feature affect?

Other information

No response

andgoldschmidt commented 1 month ago

implemented in #149, interface and documentation to come

andgoldschmidt commented 1 month ago

cross reference kestrelquantum/NamedTrajectories.jl#47 for global data