Skip to content

Commit

Permalink
use direct amplitude
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhangxyz committed Sep 11, 2024
1 parent 78a5159 commit 8915b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tetraku/tetraku/networks/naqs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def generate(self, batch_size, alpha=1):
real_amplitude = amplitude_phase.exp()
real_probability = (real_amplitude.conj() * real_amplitude).real
x = torch.index_select(x, 1, self.ordering)
return x.reshape([x.size(0), self.L1, self.L2, self.orbit_num]), real_amplitude, real_probability, multiplicity
return x.reshape([x.size(0), self.L1, self.L2, self.orbit_num]), real_amplitude, torch.ones_like(real_probability), torch.ones_like(multiplicity)


def network(state, spin_up, spin_down, hidden_size, ordering=+1):
Expand Down

0 comments on commit 8915b8a

Please sign in to comment.