Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PRs from #226 to #282
Changes since v1.0.1
New features
current(h::AbstractHamiltonian; direction = 1)
returns the currentOperator
along a givendirection
(Introducing the current Operator #227)OrbitalSliceArray
s andCellSites
: indexing has been improved (Refactor of LatticeSlice and Contacts #234, AddOrbitalSliceArray
#245, Makeview(gω::GreenSolution, contact_inds...)
aSubArray
instead of anOrbitalSliceArray
#271, Renamecellsites
tosites
and polish indexing API #277, GeneralizeAbstractHamiltonian
indexing #280)GreenSolvers.Spectrum
(Add Spectrum GreenSolver #240)densitymatrix
observable (Adddensitymatrix
observable at thermal equilibrium #241)omegamap
option injosephson
observable, to allow parameters to act as frequency (Addomegamap
option #247)attach
now allows atransform
keyword in its most general method (Addtransform
keyword to genericattach
method (second try) #263)g::GreenFunction
s withg(; params)
(Partial evaluation ofGreenFunction
s #270)combine
now works also withParametricHamiltonian
s andParametricModel
s as couplings (combine
ofParametricHamiltonian
s #278)Fixes and improvements
bands
: doset_blas_threads(1)
before diagonalization, then restore #226)GreenFunction
plotting #251, Alternative representation of GreenFunction boundaries in plots #255, Allow a collection of sitecolors/hopcolors #258, Makeinspector = true
the default #272, Addqplot(::OpenHamiltonian)
#273)GreenSolvers.Bands
(Fix boundary construction inGS.Bands
#253, New algorithm for duals inGS.Bands
#259)cells
ordcells
in a selector (Distinguish between null and unspecified selectors #254)spectrum
in newer Julia versions (Add a @static version/OS check on the #235 workaround #260)minimal_callsafe_copy
#269)@onsite(o -> 2o, sublats = :A)
, not only@onsite(o -> 2o; sublats = :A)
(Accept keywords after comma in parametric model macros #275)Breaking changes
wrap
totorus
due to a future name collision withBase
(Renamewrap
totorus
, in preparation for Julia 1.11 #237)