Skip to content

Commit

Permalink
Merge pull request #24 from qutech/23-typeerror-in-optimizationresult…
Browse files Browse the repository at this point in the history
…from_dict

fix `final_amps` -> `final_parameters`
  • Loading branch information
Nomos11 authored Apr 25, 2023
2 parents a3b2ae1 + c3d3ddd commit 7902a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qopt/optimization_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def to_dict(self):
"""
return {'final_cost': self.final_cost,
'indices': self.indices,
'final_amps': self.final_parameters,
'final_parameters': self.final_parameters,
'final_grad_norm': self.final_grad_norm,
'init_parameters': self.init_parameters,
'num_iter': self.num_iter,
Expand Down

0 comments on commit 7902a45

Please sign in to comment.