Skip to content

Commit

Permalink
refactor gs.py (#115)
Browse files Browse the repository at this point in the history
* refactor gs.py

* fix res_mps_idx bug

* further fix res_mps_idx bug
  • Loading branch information
liwt31 authored May 21, 2021
1 parent bd5ef94 commit 820cf85
Show file tree
Hide file tree
Showing 3 changed files with 427 additions and 404 deletions.
2 changes: 2 additions & 0 deletions renormalizer/mps/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@

if not USE_GPU:
logger.info("use numpy as backend")
OE_BACKEND = "numpy"
else:
logger.info("use cupy as backend")
OE_BACKEND = "cupy"


xp.random.seed(2019)
Expand Down
Loading

0 comments on commit 820cf85

Please sign in to comment.