Skip to content

Commit

Permalink
Change MPOSum strategy to H strategy from PaulaGarciaMolina/main
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjosegarciaripoll authored May 17, 2024
2 parents 9c6dbc7 + 4e3534b commit f1a6657
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/seemps/evolution/crank_nicolson.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def crank_nicolson(
last_t = t_span[0]
output = []
idt = factor * (t_span[1] - last_t)
id = id_mpo(state.size, strategy=strategy)
A = MPOSum(mpos=[id, H], weights=[1, 0.5 * idt], strategy=strategy).join(
strategy=strategy
id = id_mpo(state.size, strategy=H.strategy)
A = MPOSum(mpos=[id, H], weights=[1, 0.5 * idt], strategy=H.strategy).join(
strategy=H.strategy
)
B = MPOSum(mpos=[id, H], weights=[1, -0.5 * idt], strategy=strategy).join(
strategy=strategy
B = MPOSum(mpos=[id, H], weights=[1, -0.5 * idt], strategy=H.strategy).join(
strategy=H.strategy
)
for t in t_span:
if t != last_t:
Expand Down

0 comments on commit f1a6657

Please sign in to comment.