At current stage testing is almost absent: only one test in test_solvers
is modified to finalize through "vectorize_values"
.
This MR makes Builder finalizable into vectorized systems. Extra option is introduced:
syst = builder.finalize(vectorize=vectorize)
where vectorize
can be False
, True
and "vectorize_values"
. False
is the legacy and default behaviour. The difference between two latter is that vectorize=True
assumes that value functions are already in vectorized format (accepting site array pairs) and vectorize="vectorize_values"
assumes that value functions are in old format and converts them into vectorized format using an unoptimized Python loop.
Depends on !386
Viacheslav Ostroukh (010bca38) at 28 Jun 13:55
[WIP] finalize Builder into a vectorized system
... and 37 more commits
Viacheslav Ostroukh (4067ea9d) at 28 Jun 13:53
add API documentation for operator-based system interface
... and 2 more commits
Viacheslav Ostroukh (f2cdbc1d) at 28 Jun 13:08
add API documentation for operator-based system interface
... and 1 more commit
Viacheslav Ostroukh (46b2c5d4) at 24 Jun 14:18
add API documentation for operator-based system interface
... and 19 more commits
Viacheslav Ostroukh (640e17fc) at 22 Jun 13:01
In several places of code, Numpy arrays are created from lists of arrays with mismatched shape. This is a deprecated behaviour and will be a failure in future. This MR aligns the shape, so that warnings are not emitted.
Part of this MR is a fixer for master
by @anton-akhmerov
Viacheslav Ostroukh (0e398ff4) at 22 Jun 13:01
Merge branch 'fix/ndarray_deprecation_warnings' into 'stable'
... and 2 more commits
Viacheslav Ostroukh (640e17fc) at 22 Jun 12:11
fix multiple warnings (mostly deprecations)
Viacheslav Ostroukh (925163b0) at 22 Jun 12:04
fix multiple warnings (mostly deprecations)
Viacheslav Ostroukh (b107c604) at 22 Jun 11:15
avoid casting irregular-shape block offsets list to array in solvers
In several places of code, Numpy arrays are created from lists of arrays with mismatched shape. This is a deprecated behaviour and will be a failure in future. This MR aligns the shape, so that warnings are not emitted.
Part of this MR is a fixer for master
by @anton-akhmerov
Viacheslav Ostroukh (57bab0f4) at 21 Jun 15:30
fix an array shape mismatch in kwant.plotter.spectrum
... and 5 more commits
Viacheslav Ostroukh (9e1361b8) at 21 Jun 15:19
get rid of deprecated np.complex, use complex instead