mirror of
https://github.com/vale981/hopsflow
synced 2025-03-04 16:31:38 -05:00
use contract_expression correctly
This commit is contained in:
parent
4fc63d1c39
commit
2bb1ecfa88
1 changed files with 4 additions and 2 deletions
|
@ -59,7 +59,6 @@ class SystemParams:
|
|||
fock_hops: bool = True,
|
||||
):
|
||||
self.t = t
|
||||
self.L = (DynamicMatrixList(L))(self.t)
|
||||
|
||||
self.G = [g * scale for g, scale in zip(G, bcf_scale)] if bcf_scale else G
|
||||
self.W = W
|
||||
|
@ -78,7 +77,10 @@ class SystemParams:
|
|||
self.dim = L[0].shape[0]
|
||||
|
||||
self.apply_L = oe.contract_expression(
|
||||
"ntij,tj->nti", self.L, (len(t), self.dim), constant=[0]
|
||||
"ntij,tj->nti",
|
||||
(DynamicMatrixList(L))(self.t),
|
||||
(len(t), self.dim),
|
||||
constants=[0],
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue