... | ... | @@ -27,12 +27,14 @@ It should be possible to do the following: |
|
|
```python
|
|
|
sys[onsite] = 1.
|
|
|
sys[onsite] += lambda site, Vb, time: Vb * cos(time)
|
|
|
|
|
|
sys[hopping] = lambda s1, s2, t: -t
|
|
|
sys[hopping] += lambda s1, s2, t, time: -t * time
|
|
|
```
|
|
|
With the meaning that the result of the function evaluation is added to the
|
|
|
constant term when the system Hamiltonian is evaluated.
|
|
|
|
|
|
|
|
|
|
|
|
# Data structures
|
|
|
|
|
|
## [[Builder | Builder]]
|
... | ... | |