UndefVarError: `𝕊ᶻ` not defined

Hi Julia team,

I am trying this trial code given on julia website to do exact diagonalization using QuantumLattices. The problem is: writing the following code it says

UndefVarError: 𝕊ᶻ not defined

using QuantumLattices
using ExactDiagonalization
using LinearAlgebra: eigen

define the unitcell of the square lattice

unitcell = Lattice([0.0, 0.0]; name=:Square, vectors=[[1.0, 0.0], [0.0, 1.0]])

define a finite 4×4 cluster of the square lattice with open boundary condition

lattice = Lattice(unitcell, (4, 4))

define the Hilbert space (spin-1/2)

hilbert = Hilbert(Spin{1//2}(), length(lattice))

define the quantum number of the sub-Hilbert space in which the computation to be carried out

for the ground state, Sz=0

quantumnumber = 𝕊ᶻ(0) …

what could be the reason??

I am using Julia version 1.9.0. Is this symbol not supported or something??

Thank you in advance !!

Searching, it seems you’re referring to this package, not something related to Julia base: Antiferromagnetic Heisenberg Model on square lattice · ExactDiagonalization.jl

And yeah it suggests that symbol is not exported from one of the packages. Perhaps the example is wrong or out of date.

For future reference, code examples are best pasted between sets of three backticks (```)

2 Likes

Okay thank you. I will keep this in mind from the next time “For future reference, code examples are best pasted between sets of three backticks (```)”.