Skip to content

Commit 89564c1

Browse files
committed
Fix typo
1 parent 47009bd commit 89564c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/plotting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function entanglementplot end
2626
@recipe function f(h::EntanglementPlot; site=0, expand_symmetry=false, sortby=maximum,
2727
sector_margin=1 // 10, sector_formatter=string)
2828
mps = h.args[1]
29-
(site <= length(mps) && !(site = 0 && isa(mps, FiniteMPS))) ||
29+
(site <= length(mps) && !(isa(mps, FiniteMPS) && site == 0)) ||
3030
throw(ArgumentError("Invalid site $site for the given mps."))
3131

3232
spectra = entanglement_spectrum(mps, site)

0 commit comments

Comments
 (0)