@@ -80,7 +80,7 @@ A structure representing a Bloch sphere visualization for quantum states.
8080## Style properties
8181
8282- `font_color::String`: Color of axis labels and text
83- - `font_size::Int`: Font size for labels (default: 15)
83+ - `font_size::Int`: Font size for labels. Default: `15`
8484- `frame_alpha::Float64`: Transparency of the frame background
8585- `frame_color::String`: Background color of the frame
8686- `frame_limit::Float64`: Axis limits for the 3D frame (symmetric around origin)
@@ -89,15 +89,15 @@ A structure representing a Bloch sphere visualization for quantum states.
8989
9090- `point_default_color::Vector{String}}`: Default color cycle for points
9191- `point_color::Vector{String}}`: List of colors for Bloch point markers to cycle through
92- - `point_marker::Vector{Symbol}}`: List of point marker shapes to cycle through (default: [:circle, :rect, :diamond, :utriangle])
92+ - `point_marker::Vector{Symbol}}`: List of point marker shapes to cycle through. Default: ` [:circle, :rect, :diamond, :utriangle]`
9393- `point_size::Vector{Int}}`: List of point marker sizes (not all markers look the same size when plotted)
9494- `point_style::Vector{Symbol}}`: List of marker styles
9595- `point_alpha::Vector{Float64}}`: List of marker transparencies
9696
9797## Sphere properties
9898
9999- `sphere_color::String`: Color of Bloch sphere surface
100- - `sphere_alpha::Float64`: Transparency of sphere surface (default: 0.2)
100+ - `sphere_alpha::Float64`: Transparency of sphere surface. Default: ` 0.2`
101101
102102# Vector properties
103103
@@ -107,15 +107,15 @@ A structure representing a Bloch sphere visualization for quantum states.
107107
108108## Layout properties
109109
110- - `view::Tuple{Int,Int}}`: Azimuthal and elevation viewing angles in degrees (default: (-60, 30))
110+ - `view::Tuple{Int,Int}}`: Azimuthal and elevation viewing angles in degrees. Default: ` (-60, 30)`
111111
112112## Label properties
113- - `xlabel::Vector{String}} `: Labels for x-axis (default: [raw"$x$ ", ""])
114- - `xlpos::Vector {Float64}} `: Positions of x-axis labels (default: [ 1.0, -1.0])
115- - `ylabel::Vector{String}} `: Labels for y-axis (default: [raw"$y$ ", ""])
116- - `ylpos::Vector {Float64}} `: Positions of y-axis labels (default: [ 1.0, -1.0])
117- - `zlabel::Vector{String}} `: Labels for z-axis (default: [raw"$ |0\r angle$ ", raw"$ |1\r angle$"])
118- - `zlpos::Vector {Float64}} `: Positions of z-axis labels (default: [ 1.0, -1.0])
113+ - `xlabel::Tuple{AbstractString,AbstractString} `: Labels for x-axis. Default: `(L"x ", "")`
114+ - `xlpos::Tuple {Float64,Float64} `: Positions of x-axis labels. Default: `( 1.0, -1.0)`
115+ - `ylabel::Tuple{AbstractString,AbstractString} `: Labels for y-axis. Default: `(L"y ", "")`
116+ - `ylpos::Tuple {Float64,Float64} `: Positions of y-axis labels. Default: `( 1.0, -1.0)`
117+ - `zlabel::Tuple{AbstractString,AbstractString} `: Labels for z-axis. Default: `(L" |0\r angle", L" |1\r angle")`
118+ - `zlpos::Tuple {Float64,Float64} `: Positions of z-axis labels. Default: `( 1.0, -1.0)`
119119"""
120120@kwdef mutable struct Bloch
121121 points:: Vector{Matrix{Float64}} = Vector {Matrix{Float64}} ()
@@ -139,12 +139,12 @@ 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{String } = [ raw " $x$ " , raw " " ]
143- xlpos:: Vector {Float64} = [ 1.0 , - 1.0 ]
144- ylabel:: Vector{String } = [ raw " $y$ " , " " ]
145- ylpos:: Vector {Float64} = [ 1.0 , - 1.0 ]
146- zlabel:: Vector{String } = [ raw " $ |0\r angle$ " , raw " $ |1\r angle$ " ]
147- zlpos:: Vector {Float64} = [ 1.0 , - 1.0 ]
142+ xlabel:: Tuple{AbstractString,AbstractString } = ( L " x " , " " )
143+ xlpos:: Tuple {Float64,Float64 } = ( 1.0 , - 1.0 )
144+ ylabel:: Tuple{AbstractString,AbstractString } = ( L " y " , " " )
145+ ylpos:: Tuple {Float64,Float64 } = ( 1.0 , - 1.0 )
146+ zlabel:: Tuple{AbstractString,AbstractString } = ( L " |0\r angle" , L " |1\r angle" )
147+ zlpos:: Tuple {Float64,Float64 } = ( 1.0 , - 1.0 )
148148end
149149
150150const BLOCH_DATA_FIELDS = (:points , :vectors , :lines , :arcs )
0 commit comments