We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47009bd commit 89564c1Copy full SHA for 89564c1
src/utility/plotting.jl
@@ -26,7 +26,7 @@ function entanglementplot end
26
@recipe function f(h::EntanglementPlot; site=0, expand_symmetry=false, sortby=maximum,
27
sector_margin=1 // 10, sector_formatter=string)
28
mps = h.args[1]
29
- (site <= length(mps) && !(site = 0 && isa(mps, FiniteMPS))) ||
+ (site <= length(mps) && !(isa(mps, FiniteMPS) && site == 0)) ||
30
throw(ArgumentError("Invalid site $site for the given mps."))
31
32
spectra = entanglement_spectrum(mps, site)
0 commit comments