From cfc4a1ce6475db1fe8fb729032a77d714ae23b40 Mon Sep 17 00:00:00 2001 From: Ignacio Date: Mon, 29 Apr 2024 17:03:07 +0200 Subject: [PATCH] typos --- qadence_libs/qinfo_tools/qfi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qadence_libs/qinfo_tools/qfi.py b/qadence_libs/qinfo_tools/qfi.py index 05d646d..bfba9c1 100644 --- a/qadence_libs/qinfo_tools/qfi.py +++ b/qadence_libs/qinfo_tools/qfi.py @@ -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)