You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/users_guide/plotting_the_bloch_sphere.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ fig
65
65
66
66
## Add multiple data
67
67
68
-
We can also plot multiple points, vectors, and states at the same time by passing arrays instead of individual elements via [`add_points!](@ref), [`add_vectors!](@ref), and [`add_states!](@ref), respectively. Before giving an example, we can use [`clear!`](@ref) to remove the current data from our [`Bloch`](@ref) sphere instead of creating a new instance:
68
+
We can also plot multiple points, vectors, and states at the same time by passing arrays instead of individual elements via [`add_points!`](@ref), [`add_vectors!`](@ref), and [`add_states!`](@ref), respectively. Before giving an example, we can use [`clear!`](@ref) to remove the current data from our [`Bloch`](@ref) sphere instead of creating a new instance:
69
69
70
70
```@example Bloch_sphere_rendering
71
71
clear!(b)
@@ -77,7 +77,7 @@ Now on the same [`Bloch`](@ref) sphere, we can plot the three states via [`add_s
77
77
78
78
```@example Bloch_sphere_rendering
79
79
x = basis(2, 0) + basis(2, 1)
80
-
y = basis(2, 0) - im * basis(2, 1)
80
+
y = basis(2, 0) + im * basis(2, 1)
81
81
z = basis(2, 0)
82
82
add_states!(b, [x, y, z])
83
83
fig, _ = render(b)
@@ -175,7 +175,7 @@ At the end of the last section we saw that the colors and marker shapes of the d
175
175
|`b.font_size`| Font size for labels |`15`|
176
176
|`b.frame_alpha`| Transparency of the frame background |`0.1`|
177
177
|`b.frame_color`| Background color of the frame |`"gray"`|
178
-
|`b.frame_limit`| Axis limits for the 3D frame (symmetric around origin) |`1.14`|
178
+
|`b.frame_limit`| Axis limits for the 3D frame (symmetric around origin) |`1.2`|
179
179
|`b.point_default_color`| Default color cycle for points |`["blue", "red", "green", "#CC6600"]`|
180
180
|`b.point_color`| List of colors for Bloch point markers to cycle through |`Union{Nothing,String}[]`|
181
181
|`b.point_marker`| List of point marker shapes to cycle through |`[:circle, :rect, :diamond, :utriangle]`|
@@ -186,14 +186,14 @@ At the end of the last section we saw that the colors and marker shapes of the d
186
186
|`b.sphere_alpha`| Transparency of sphere surface |`"#FFDDDD"`|
187
187
|`b.vector_color`| Colors for vectors |`["green", "#CC6600", "blue", "red"]`|
188
188
|`b.vector_width`| Width of vectors |`0.025`|
189
-
|`b.vector_arrowsize`| Arrow size parameters as (head length, head width, stem width) |`(0.07, 0.08, 0.08)`|
190
-
|`b.view`| Azimuthal and elevation viewing angles in degrees |`(-60, 30)`|
191
-
|`b.xlabel`| Labels for x-axis |`(L"x", "")`|
192
-
|`b.xlpos`| Positions of x-axis labels |`(1.0, -1.0)`|
193
-
|`b.ylabel`| Labels for y-axis |`(L"y", "")`|
194
-
|`b.ylpos`| Positions of y-axis labels |`(1.0, -1.0)`|
195
-
|`b.zlabel`| Labels for z-axis |`(L"\|0\rangle", L"\|1\rangle)"`|
196
-
|`b.zlpos`| Positions of z-axis labels |`(1.0, -1.0)`|
189
+
|`b.vector_arrowsize`| Arrow size parameters as (head length, head width, stem width) |`[0.07, 0.08, 0.08]`|
190
+
|`b.view`| Azimuthal and elevation viewing angles in degrees |`[30, 30]`|
191
+
|`b.xlabel`| Labels for x-axis |`[L"x", ""]` (``+x`` and ``-x``)|
192
+
|`b.xlpos`| Positions of x-axis labels |`[1.0, -1.0]`|
193
+
|`b.ylabel`| Labels for y-axis |`[L"y", ""]` (``+y`` and ``-y``)|
194
+
|`b.ylpos`| Positions of y-axis labels |`[1.0, -1.0]`|
195
+
|`b.zlabel`| Labels for z-axis |`[L"\|0\rangle", L"\|1\rangle]"` (``+z`` and ``-z``)|
196
+
|`b.zlpos`| Positions of z-axis labels |`[1.0, -1.0]`|
197
197
198
198
These properties can also be accessed via the `print` command:
0 commit comments