Skip to content

Commit

Permalink
Add missing changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Jun 28, 2024
1 parent b60599e commit caa0046
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recirq/qcqmc/afqmc_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,13 @@ def get_pp_plus_gate_generators(
The list of generators necessary to construct the ansatz.
"""
heuristic_gate_generators = get_heuristic_gate_generators(n_elec, heuristic_layers)
print(heuristic_gate_generators)
if not do_pp:
return heuristic_gate_generators

n_pairs = n_elec // 2
pair_gate_generators = get_pair_hopping_gate_generators(n_pairs, n_elec)
print(pair_gate_generators)
return pair_gate_generators + heuristic_gate_generators


Expand Down Expand Up @@ -86,7 +88,7 @@ def get_charge_charge_generator(indices: Tuple[int, int]) -> of.FermionOperator:
"""Returns the generator for density evolution between the indices
Args:
indices: The indices to for charge-charge terms.:w
indices: The indices to for charge-charge terms.
Returns:
The generator for density evolution for this pair of electrons.
Expand Down

0 comments on commit caa0046

Please sign in to comment.