Skip to content

Commit

Permalink
Tidy comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Jun 24, 2024
1 parent 8074976 commit 001c5ed
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions recirq/qcqmc/optimize_wf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@
import scipy.optimize
import scipy.sparse

from recirq.qcqmc import (afqmc_circuits, afqmc_generators, converters, data,
fermion_mode, hamiltonian, layer_spec, trial_wf)
from recirq.qcqmc import (
afqmc_circuits,
afqmc_generators,
converters,
data,
fermion_mode,
hamiltonian,
layer_spec,
trial_wf,
)


def get_and_check_energy(
Expand Down Expand Up @@ -403,8 +411,8 @@ def evaluate_energy_and_gradient(
) -> Tuple[float, np.ndarray]:
"""Evaluate gradient and cost function for optimization.
Uses the linear scaling algorithm (see algo 2 from example:
https://arxiv.org/pdf/2009.02823) at the expense of three copies of the
Uses the linear scaling algorithm (see algo 1 from
https://arxiv.org/pdf/2009.02823 for example) at the expense of three copies of the
wavefunction.
Args:
Expand Down

0 comments on commit 001c5ed

Please sign in to comment.