Skip to content

Nonlinear dependence on control parameter #42

Answered by goerz
will-atom asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it should be pretty straightforward in principle:

julia> using LinearAlgebra

julia> using QuantumControl: hamiltonian

julia> using QuantumControlTestUtils.RandomObjects: random_matrix

julia> using QuantumControl.PulseParametrizations: SquareParametrization, ParametrizedAmplitude

julia> using QuantumControl.Controls: get_controls, evaluate

julia> N = 10;

julia> H0 = random_matrix(N; hermitian=true);

julia> H1 = random_matrix(N; hermitian=true);

julia> H2 = random_matrix(N; hermitian=true);

julia> ϵ(t) = 0.5;

julia> a = ParametrizedAmplitude(ϵ; parametrization=SquareParametrization());

julia> H = hamiltonian(H0, (H1, ϵ), (H2, a));

julia> get_controls(H)
(ϵ,)

julia> norm(Ar…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@will-atom
Comment options

@will-atom
Comment options

@goerz
Comment options

Answer selected by will-atom
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@goerz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants