Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/src/examples/quantum1d/5.haldane-spt/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ SPT phase has a dominant value that is not in the trivial sector, which leads to
non-injective MPS.

Finally, the entanglement spectrum of the wrong SPT phase will show degeneracies of all
singular values, which can again be attributed to an attempt to mimick the spectrum of the
singular values, which can again be attributed to an attempt to mimic the spectrum of the
right SPT phase.

````julia
Expand Down Expand Up @@ -196,4 +196,3 @@ S_plus = 1.5450323530571919
---

*This page was generated using [Literate.jl](https://github.com/fredrikekre/Literate.jl).*

4 changes: 2 additions & 2 deletions docs/src/examples/quantum1d/5.haldane-spt/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"non-injective MPS.\n",
"\n",
"Finally, the entanglement spectrum of the wrong SPT phase will show degeneracies of all\n",
"singular values, which can again be attributed to an attempt to mimick the spectrum of the\n",
"singular values, which can again be attributed to an attempt to mimic the spectrum of the\n",
"right SPT phase."
]
},
Expand Down Expand Up @@ -213,4 +213,4 @@
},
"nbformat": 4,
"nbformat_minor": 3
}
}
3 changes: 1 addition & 2 deletions docs/src/examples/quantum1d/8.bose-hubbard/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ scatter!(
![](figure-3.png)

This shows that any finite bond dimension MPS necessarily breaks the symmetry of the system,
forming a Bose-Einstein condensate which introduces erraneous long-distance behaviour of
forming a Bose-Einstein condensate which introduces erroneous long-distance behaviour of
correlation functions. In case of finite bond dimension, it is thus reasonable to associate
the finite expectation value of the field operator to the 'quasicondensate' density of the
system which vanishes as $D \to \infty$.
Expand Down Expand Up @@ -466,4 +466,3 @@ using what we have learnt in this tutorial.
---

*This page was generated using [Literate.jl](https://github.com/fredrikekre/Literate.jl).*

12 changes: 6 additions & 6 deletions docs/src/man/parallelism.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ overall performance.
A lot of the confusion stems from the fact that the BLAS threading behaviour is not
consistent between different vendors. Additionally, performance behaviour is severely
dependent on hardware, the specifics of the problem, and the availability of other resources
such as total memory, or memory bandwith. This means that there is no one size fits all
such as total memory, or memory bandwidth. This means that there is no one size fits all
solution, and that you will have to experiment with the settings to get optimal performance.
Nevertheless, there are some general guidelines that can be followed, which seem to at least
work well in most cases.
Expand Down Expand Up @@ -45,9 +45,9 @@ julia> using ThreadPinning; threadinfo(; blas=true, hints=true)

System: 8 cores (2-way SMT), 1 sockets, 1 NUMA domains

| 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 |
| 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 |

# = Julia thread, # = HT, # = Julia thread on HT, | = Socket seperator
# = Julia thread, # = HT, # = Julia thread on HT, | = Socket separator

Julia threads: 4
├ Occupied CPU-threads: 4
Expand All @@ -62,9 +62,9 @@ julia> using MKL; threadinfo(; blas=true, hints=true)

System: 8 cores (2-way SMT), 1 sockets, 1 NUMA domains

| 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 |
| 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 |

# = Julia thread, # = HT, # = Julia thread on HT, | = Socket seperator
# = Julia thread, # = HT, # = Julia thread on HT, | = Socket separator

Julia threads: 4
├ Occupied CPU-threads: 4
Expand Down Expand Up @@ -95,7 +95,7 @@ MPSKit.Defaults.set_scheduler!(:greedy) # multithreading with greedy load-balanc
MPSKit.Defaults.set_scheduler!(:dynamic) # default: multithreading with some load-balancing
```

For further reference on the available schedulers and finer control, please refer to the
For further reference on the available schedulers and finer control, please refer to the
[`OhMyThreads.jl` documentation](https://juliafolds2.github.io/OhMyThreads.jl/stable/)

## TensorKit multithreading
Expand Down
2 changes: 1 addition & 1 deletion examples/quantum1d/5.haldane-spt/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ SPT phase has a dominant value that is not in the trivial sector, which leads to
non-injective MPS.

Finally, the entanglement spectrum of the wrong SPT phase will show degeneracies of all
singular values, which can again be attributed to an attempt to mimick the spectrum of the
singular values, which can again be attributed to an attempt to mimic the spectrum of the
right SPT phase.
"""

Expand Down
8 changes: 4 additions & 4 deletions examples/quantum1d/8.bose-hubbard/main.jl
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ scatter!(

md"""
This shows that any finite bond dimension MPS necessarily breaks the symmetry of the system,
forming a Bose-Einstein condensate which introduces erraneous long-distance behaviour of
forming a Bose-Einstein condensate which introduces erroneous long-distance behaviour of
correlation functions. In case of finite bond dimension, it is thus reasonable to associate
the finite expectation value of the field operator to the 'quasicondensate' density of the
system which vanishes as $D \to \infty$.
Expand All @@ -242,14 +242,14 @@ Fourier transform of the single-particle density matrix. Starting from the defin
momentum occupation operators:

```math
\hat{a}_k = \frac{1}{\sqrt{L}} \sum_j e^{-ikj} \hat{a}_j, \qquad
\hat{a}_k = \frac{1}{\sqrt{L}} \sum_j e^{-ikj} \hat{a}_j, \qquad
\hat{a}_k^\dagger = \frac{1}{\sqrt{L}} \sum_{j'} e^{ikj'} \hat{a}_{j'}^\dagger
```

the momentum distribution is

```math
\langle \hat{n}_k \rangle = \langle \hat{a}_k^\dagger \hat{a}_k \rangle
\langle \hat{n}_k \rangle = \langle \hat{a}_k^\dagger \hat{a}_k \rangle
= \frac{1}{L} \sum_{j',j} e^{ik(j'-j)} \langle \hat{a}_{j'}^\dagger \hat{a}_j \rangle.
```

Expand Down Expand Up @@ -310,7 +310,7 @@ insulating phase would not. In the thermodynamic limit, one could show that the
conditions may be considered as periodic and instead uniformly distribute the phase across
the chain as $\hat{a}_i \to \hat{a}_i e^{i\Phi/L}$. Concretely, in the limit of
$\Phi/L \to 0$, we have:

$$\frac{E[\Phi] - E[0]}{L} \approx \frac{1}{2} \Upsilon(L) \bigg (\frac{\Phi}{L}\bigg)^2 + \cdots$$

In order to find the ground state under these twisted boundary conditions, we must construct
Expand Down
2 changes: 1 addition & 1 deletion src/algorithms/changebonds/changebonds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Change the bond dimension of `ψ` using the algorithm `alg`, and return the new `ψ` and the new `envs`.
For AbstractInfiniteMPS, changebonds returns new environments without modifying the one provided.
changedbonds! can modifiy both the provided state and environments, depending on the algorithm.
changedbonds! can modify both the provided state and environments, depending on the algorithm.
For FiniteMPS, changebonds also modifies the environments.

See also: [`SvdCut`](@ref), [`RandExpand`](@ref), [`VUMPSSvdCut`](@ref), [`OptimalExpand`](@ref)
Expand Down
4 changes: 2 additions & 2 deletions src/operators/lazysum.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
LazySum{O} <: AbstractVector{O}

Type that represents a lazy sum i.e explicit summation is only done when needed.
Type that represents a lazy sum i.e explicit summation is only done when needed.
This type is basically an `AbstractVector` with some extra functionality to calculate things efficiently.

## Fields
Expand Down Expand Up @@ -37,7 +37,7 @@ LazySum(ops::AbstractVector, fs::AbstractVector) = LazySum(map(MultipliedOperato
# wrapper around _eval_at
safe_eval(::TimeDependent, x::LazySum, t::Number) = map(O -> _eval_at(O, t), x)
function safe_eval(::TimeDependent, x::LazySum)
throw(ArgumentError("attempting to evaluate time-dependent LazySum without specifiying a time"))
throw(ArgumentError("attempting to evaluate time-dependent LazySum without specifying a time"))
end
safe_eval(::NotTimeDependent, x::LazySum) = sum(_eval_at, x)
function safe_eval(::NotTimeDependent, x::LazySum, t::Number)
Expand Down
2 changes: 1 addition & 1 deletion src/operators/mpohamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ lattice = fill(ℂ^2, 10)
H = MPOHamiltonian(lattice, (i, i+1) => O for i in 1:length(lattice)-1)
```

See also [`instantiate_operator`](@ref), which is responsable for instantiating the local
See also [`instantiate_operator`](@ref), which is responsible for instantiating the local
operators in a form that is compatible with this constructor.
"""
struct MPOHamiltonian{TO <: JordanMPOTensor, V <: AbstractVector{TO}} <: AbstractMPO{TO}
Expand Down
4 changes: 2 additions & 2 deletions src/states/windowmps.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
WindowMPS{A<:GenericMPSTensor,B<:MPSBondTensor} <: AbstractFiniteMPS

Type that represents a finite Matrix Product State embedded in an infinte Matrix Product State.
Type that represents a finite Matrix Product State embedded in an infinite Matrix Product State.

## Fields

Expand All @@ -20,7 +20,7 @@ Type that represents a finite Matrix Product State embedded in an infinte Matrix
[right_gs::InfiniteMPS])
WindowMPS([f, eltype], physicalspaces::Vector{<:Union{S,CompositeSpace{S}}},
maxvirtualspace::S, left_gs::InfiniteMPS, [right_gs::InfiniteMPS])

Construct a WindowMPS via a specification of left and right infinite environment, and either
a window state or a vector of tensors to construct the window. Alternatively, it is possible
to supply the same arguments as for the constructor of [`FiniteMPS`](@ref), followed by a
Expand Down
2 changes: 1 addition & 1 deletion src/utility/defaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const scheduler = Ref{Scheduler}()

Set the `OhMyThreads` multi-threading scheduler parameters.

The function either accepts a `scheduler` as an `OhMyThreads.Scheduler` or as a symbol where the corresponding parameters are specificed as keyword arguments.
The function either accepts a `scheduler` as an `OhMyThreads.Scheduler` or as a symbol where the corresponding parameters are specified as keyword arguments.
For a detailed description of all schedulers and their keyword arguments consult the [`OhMyThreads` documentation](https://juliafolds2.github.io/OhMyThreads.jl/stable/refs/api/#Schedulers).
"""
function set_scheduler!(sc = OhMyThreads.Implementation.NotGiven(); kwargs...)
Expand Down
2 changes: 1 addition & 1 deletion src/utility/windowarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A vector embedded in a periodic environment to the left and right, which can be
The `middle` part is a regular `Vector{T}` and the `left` and `right` parts are `PeriodicVector{T}`s.

This vector inherits most of its properties from the middle part, including its length and axes.
Nevertheless, indexing operations are overloaded to allow for out-of-bounds access, which is resolved by the periodic enviroments.
Nevertheless, indexing operations are overloaded to allow for out-of-bounds access, which is resolved by the periodic environments.

See also [`PeriodicVector`](@ref).
"""
Expand Down
Loading