@@ -110,11 +110,11 @@ A structure representing a Bloch sphere visualization for quantum states.
110110- `view::Tuple{Int,Int}}`: Azimuthal and elevation viewing angles in degrees (default: (-60, 30))
111111
112112## Label properties
113- - `xlabel::Vector{AbstractString }}`: Labels for x-axis (default: [L"x ", ""])
113+ - `xlabel::Vector{String }}`: Labels for x-axis (default: [raw"$x$ ", ""])
114114- `xlpos::Vector{Float64}}`: Positions of x-axis labels (default: [1.0, -1.0])
115- - `ylabel::Vector{AbstractString }}`: Labels for y-axis (default: [L"y ", ""])
115+ - `ylabel::Vector{String }}`: Labels for y-axis (default: [raw"$y$ ", ""])
116116- `ylpos::Vector{Float64}}`: Positions of y-axis labels (default: [1.0, -1.0])
117- - `zlabel::Vector{AbstractString }}`: Labels for z-axis (default: [L" |0\r angle", L" |1\r angle"])
117+ - `zlabel::Vector{String }}`: Labels for z-axis (default: [raw"$ |0\r angle$ ", raw"$ |1\r angle$ "])
118118- `zlpos::Vector{Float64}}`: Positions of z-axis labels (default: [1.0, -1.0])
119119"""
120120@kwdef mutable struct Bloch
@@ -139,11 +139,11 @@ A structure representing a Bloch sphere visualization for quantum states.
139139 vector_width:: Float64 = 0.025
140140 vector_arrowsize:: NTuple{3,Real} = (0.07 , 0.08 , 0.08 )
141141 view:: Tuple{Int,Int} = (- 60 , 30 )
142- xlabel:: Vector{AbstractString } = [L " x " , " " ]
142+ xlabel:: Vector{String } = [raw " $x$ " , raw " " ]
143143 xlpos:: Vector{Float64} = [1.0 , - 1.0 ]
144- ylabel:: Vector{AbstractString } = [L " y " , " " ]
144+ ylabel:: Vector{String } = [raw " $y$ " , " " ]
145145 ylpos:: Vector{Float64} = [1.0 , - 1.0 ]
146- zlabel:: Vector{AbstractString } = [L " |0\r angle" , L " |1\r angle" ]
146+ zlabel:: Vector{String } = [raw " $ |0\r angle$ " , raw " $ |1\r angle$ " ]
147147 zlpos:: Vector{Float64} = [1.0 , - 1.0 ]
148148end
149149
0 commit comments