-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix of gpu msd-afqmc; fix tutorial (#327)
1. fix msd-afqmc green's function with gpu change `walker_batch.Ga.fill(0.0 + 0.0j)` to `walker_batch.Ga = xp.zeros_like(walker_batch.Ga)` since cupy does not have cupy.ndarray.fill 2. fix initial walker of msd trial from ``` elif isinstance(trial, ParticleHole): initial_walker = numpy.hstack([trial.psi0a, trial.psi0b]) ``` to ``` elif isinstance(trial, ParticleHole): initial_walker = numpy.hstack([trial.psi0a, trial.psi0b]) random_walker = numpy.random.random(initial_walker.shape) initial_walker = initial_walker + random_walker initial_walker, _ = numpy.linalg.qr(initial_walker) ``` Otherwise cause issues. 3. fix the integration. In #277, the msd example was disabled. Now fixed with the second point mentioned above. 4. Modify the example for running msd-afqmc with MPI / GPU
- Loading branch information
Showing
3 changed files
with
77 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters