Skip to content

Commit

Permalink
Add support for get_parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
goerz committed Apr 22, 2024
1 parent 6c01a54 commit 933fc27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/grad_generator.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using QuantumControlBase: get_control_derivs
import QuantumControlBase.QuantumPropagators.Controls: get_controls
import QuantumControlBase.QuantumPropagators.Controls: get_parameters
import QuantumControlBase.QuantumPropagators: _exp_prop_convert_operator


Expand Down Expand Up @@ -50,4 +51,9 @@ function get_controls(gradgen::GradGenerator)
end


function get_parameters(gradgen::GradGenerator)
return get_parameters(gradgen.G)
end


_exp_prop_convert_operator(::GradGenerator) = Matrix{ComplexF64}
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterInterLinks = "d12716ef-a0f6-4df4-a9f1-a5a34e75c656"
GRAPE = "6b52fcaf-80fe-489a-93e9-9f92080510be"
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
LiveServer = "16fef848-5104-11e9-1b77-fb7a48bbb589"
LocalCoverage = "5f6e1e16-694c-5876-87ef-16b5274f298e"
Expand Down

0 comments on commit 933fc27

Please sign in to comment.