Entanglement Reference

These APIs support Schmidt decompositions and entropy calculations for vectors and MPS objects.

EDKit.ent_SFunction

ent_S(v::AbstractVector, Aind::AbstractVector{<:Integer}, b::AbstractBasis; α::Real=1, cutoff::Real=1e-20)

Compute the bipartite entanglement entropy of a state represented in basis b.

The singular values returned by ent_spec are squared into Schmidt probabilities before being passed to entropy.

source
ent_S(v, Aind, L; α=1, cutoff=1e-20)

Convenience overload that infers a TensorBasis from the vector length and system size L.

source
ent_S(ψ::MPS, b::Integer)

Return entanglement entropy between site b and b+1.

Arguments:

  • ψ: MPS
  • b: Link index

Returns:

  • The entropy associated with the cut at bond b.
source
ent_specs(ψ::MPS)

Return entanglement entropies along the full chain.

Arguments:

  • ψ: MPS

Returns:

  • S: Vector of entropy
source
EDKit.ent_specFunction

ent_spec(v::AbstractVector, Aind::AbstractVector{<:Integer}, b::AbstractBasis)

Compute the Schmidt singular values of a state across a bipartition.

Returns:

  • The singular values of the Schmidt matrix produced by schmidt.
source
EDKit.entropyFunction

entropy(s::AbstractVector{<:Real}; α::Real=1, cutoff::Real=1e-20)

Compute the entropy of Schmidt values.

Inputs:

  • s : Schmidt values.
  • α : Renyi index.
  • cutoff: Cutoff of the Schmidt values.

Outputs:

  • S: Entanglement entropy.
source
entropy(dm::DensityMatrix; α=1, cutoff=1e-20)

Compute the entropy of a density matrix from its eigenvalues.

source
EDKit.schmidtFunction
schmidt(v, Ainds, b::AbelianBasis; B1=nothing, B2=nothing)

Construct the Schmidt matrix of a state represented in an AbelianBasis.

Unlike onsite bases, each basis coefficient must be expanded over the entire Abelian orbit with the correct symmetry phase before it contributes to the bipartite decomposition.

source

schmidt(v::AbstractVector, Ainds::AbstractVector{<:Integer}, b::AbstractOnsiteBasis)

Schmidt decomposition of state v, with respect to given lattice bipartition.

Inputs:

  • v : State represented by a (abstract) vector.
  • Ainds: List of indices in subsystem A, the remaining indices are regarded as subsystem B.
  • b : Basis.

Outputs:

  • S: Matrix S in the decomposition: |v⟩ = Sᵢⱼ |Aᵢ⟩|Bⱼ⟩.
source

Schmidt decomposition specialized to TranslationalBasis.

Each reduced-basis coefficient is expanded across the full translation orbit with the appropriate momentum phase before contributing to the bipartite matrix.

source

Schmidt decomposition specialized to FlipBasis.

source

Schmidt decomposition specialized to ParityBasis.

source

Schmidt decomposition specialized to ParityFlipBasis.

source