Replies: 1 comment
-
|
I tested it very quickly by replacing all the NumPy array coefficients with SciPy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the coefficient of a time-dependent Hamiltonian is represented by a NumPy array and interpolation to support arbitrary non-analytical functions. However, in some circumstances, a Python function might be preferable. Hence, it would be good to replace the internal representation of coefficients with a more general python function representation. This will still be compatible with the old input API by converting the NumPy array to a SciPy spline function.
In some circumstances, a Python function might be preferable. E.g. if the control coefficients are analytically defined and need to be very accurately calculated, the number of samples in the spline interpolation needs to be very high, which increases the memory cost. This is also relevant for simulating gate operations with very high fidelity.
Also, in qutip 5, the newly introduced
Coefficientclass makes it more flexible to define different kinds of coefficients. ACoefficientinstance behaves exactly like a Python function, with a__call__method. Hence, making this update will also make it easier forqutip-qipto use the newCoefficientinterface ofqutip v5.Beta Was this translation helpful? Give feedback.
All reactions