Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
inafergra committed Apr 29, 2024
1 parent 4e7753a commit cfc4a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qadence_libs/qinfo_tools/qfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ def get_quantum_fisher(
)

# Run overlap model
ovrlp = ovrlp_model(bra_param_values=fm_dict, ket_param_values=fm_dict)
ovrlp = overlap_model(bra_param_values=fm_dict, ket_param_values=fm_dict)

# Retrieve variational parameters of the overlap model
# Importantly, the vparams of the overlap model are the vparams of the bra tensor,
# Which means if we differentiate wrt vparams we are differentiating only wrt the
# parameters in the bra and not in the ket
vparams = [v for v in ovrlp_model._params.values() if v.requires_grad]
vparams = [v for v in overlap_model._params.values() if v.requires_grad]

return -2 * hessian(ovrlp, vparams)

Expand Down

0 comments on commit cfc4a1c

Please sign in to comment.