@@ -89,42 +89,42 @@ A structure representing a Bloch sphere visualization for quantum states."""
8989 arcs:: Vector{Vector{Vector{Float64}}} = Vector {Vector{Vector{Float64}}} ()
9090
9191 # Style properties
92- """ Color of axis labels and text (default: '#2E3440') """
92+ """ Color of axis labels and text"""
9393 font_color:: String = " #2E3440"
9494 """ Font size for labels (default: 18)"""
9595 font_size:: Int = 18
96- """ Transparency of wireframe (default: 0.1) """
96+ """ Transparency of wireframe"""
9797 frame_alpha:: Float64 = 0.1
98- """ Color of wireframe (default: '#E5E9F') """
98+ """ Color of wireframe"""
9999 frame_color:: String = " #E5E9F0"
100- """ Width of wireframe lines (default: 1) """
100+ """ Width of wireframe lines"""
101101 frame_width:: Int = 1
102102
103103 # Point properties
104- """ Default color cycle for points (default: ["blue", "red", "green", "orange"]) """
105- point_default_color:: Vector{String} = [" blue" , " red" , " green" , " orange" ]
106- """ Colors for point markers (default: ["blue", "red", "green", "orange"]) """
107- point_color:: Vector{String} = [" blue" , " red" , " green" , " orange" ]
104+ """ Default color cycle for points"""
105+ point_default_color:: Vector{String} = [" blue" , " red" , " green" , " orange" , " cyan " , " magenta " , " yellow " , " black " ]
106+ """ Colors for point markers"""
107+ point_color:: Vector{String} = [" blue" , " red" , " green" , " orange" , " cyan " , " magenta " , " yellow " , " black " ]
108108 """ Marker shapes (default: [:circle, :rect, :diamond, :utriangle])"""
109109 point_marker:: Vector{Symbol} = [:circle , :rect , :diamond , :utriangle ]
110- """ Marker sizes (default: [40, 48, 50, 60]) """
110+ """ Marker sizes"""
111111 point_size:: Vector{Int} = [40 , 48 , 50 , 60 ]
112- """ Marker styles (default: Symbol[]) """
112+ """ Marker styles"""
113113 point_style:: Vector{Symbol} = Symbol[]
114- """ Marker transparencies (default: Float64[]) """
114+ """ Marker transparencies"""
115115 point_alpha:: Vector{Float64} = Float64[]
116116
117117 # Sphere properties
118- """ Transparency of Bloch sphere surface (default: 0.8) """
119- sphere_alpha:: Float64 = 0.8
120- """ Color of Bloch sphere surface (default: '#ECEFF4') """
118+ """ Transparency of Bloch sphere surface"""
119+ sphere_alpha:: Float64 = 0.9
120+ """ Color of Bloch sphere surface"""
121121 sphere_color:: String = " #ECEFF4"
122122
123123 # Layout properties
124- """ Figure size in pixels (default: (1000, 1000)) """
125- size:: Tuple{Int,Int} = (1000 , 1000 )
126- """ Colors for vectors (default: ["green", "blue", "orange"]) """
127- vector_color:: Vector{String} = [" green" , " blue" , " orange" ]
124+ """ Figure size in pixels"""
125+ size:: Tuple{Int,Int} = (700 , 700 )
126+ """ Colors for vectors"""
127+ vector_color:: Vector{String} = [" green" , " blue" , " orange" , " red " , " cyan " , " magenta " , " yellow " , " black " ]
128128 """ Width of vectors (default: 2)"""
129129 vector_width:: Int = 2
130130 """ Azimuthal and elevation viewing angles in degrees (default: (-60, 30))"""
@@ -133,15 +133,15 @@ A structure representing a Bloch sphere visualization for quantum states."""
133133 # Label properties
134134 """ Labels for x-axis (default: ["x", ""])"""
135135 xlabel:: Vector{String} = [" x" , " " ]
136- """ Positions of x-axis labels (default: [1.2, -1.2]) """
136+ """ Positions of x-axis labels"""
137137 xlpos:: Vector{Float64} = [1.2 , - 1.2 ]
138138 """ Labels for y-axis (default: ["y", ""])"""
139139 ylabel:: Vector{String} = [" y" , " " ]
140- """ Positions of y-axis labels (default: [1.2, -1.2] )"""
140+ """ Positions of y-axis labels)"""
141141 ylpos:: Vector{Float64} = [1.2 , - 1.2 ]
142142 """ Labels for z-axis (default: ["|0⟩", "|1⟩"])"""
143143 zlabel:: Vector{String} = [" |0⟩" , " |1⟩" ]
144- """ Positions of z-axis labels (default: [1.2, -1.2]) """
144+ """ Positions of z-axis labels"""
145145 zlpos:: Vector{Float64} = [1.2 , - 1.2 ]
146146end
147147
@@ -241,16 +241,6 @@ Add a line between two points on the Bloch sphere.
241241- p2::Vector{<:Real}: Second 3D point
242242- fmt="k": Line format string (matplotlib style)
243243- kwargs...: Additional line properties
244-
245- # Examples
246-
247- ```jldoctest
248- julia> b = Bloch();
249-
250- julia> add_line!(b, [1, 0, 0], [0, 1, 0])
251- 1-element Vector{Tuple{Vector{Vector{Float64}}, String, Dict{Any, Any}}}:
252- ([[0.0, 1.0], [-1.0, 0.0], [0.0, 0.0]], "k", Dict())
253- ```
254244"""
255245function add_line! (b:: Bloch , p1:: Vector{<:Real} , p2:: Vector{<:Real} ; fmt = " k" , kwargs... )
256246 if length (p1) != 3 || length (p2) != 3
0 commit comments