Skip to content

Commit

Permalink
Correct example 2
Browse files Browse the repository at this point in the history
  • Loading branch information
LeanderReascos authored Jan 15, 2025
1 parent 44627d8 commit 06c877d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ V = g * sx

# Setup EffectiveFrame
eff_frame = EffectiveFrame(H, V, subspaces=[spin])
eff_frame.solve(max_order=2, method="SW", subspaces=[spin])
eff_frame.solve(max_order=2, method="SW")
H_eff = eff_frame.get_H(return_form="operator")
print(H_eff)
```
Expand All @@ -131,7 +131,7 @@ ad = Dagger(a)

# Define Hamiltonian
H = Rational(1,2) * omega * sz + g * sx * (a + ad)
mask = Block(fin = sx, inf = a) # this mask is equivalent to "SW" up to second order
mask = Block(fin = sx.matrix, inf = a) # this mask is equivalent to "SW" up to second order

# Solve ACE transformation
eff_frame = EffectiveFrame(H)
Expand Down

0 comments on commit 06c877d

Please sign in to comment.