Skip to content

Commit 77f98fc

Browse files
committed
add changelog and polish documentation/tests
1 parent fd3241e commit 77f98fc

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- Introduce `Lanczos` solver for `spectrum`. ([#476])
1111
- Add Bloch-Redfield master equation solver. ([#473])
12+
- Implement Bloch Sphere rendering. ([#472])
1213

1314
## [v0.31.1]
1415
Release date: 2025-05-16
@@ -231,5 +232,6 @@ Release date: 2024-11-13
231232
[#455]: https://github.com/qutip/QuantumToolbox.jl/issues/455
232233
[#456]: https://github.com/qutip/QuantumToolbox.jl/issues/456
233234
[#460]: https://github.com/qutip/QuantumToolbox.jl/issues/460
235+
[#472]: https://github.com/qutip/QuantumToolbox.jl/issues/472
234236
[#473]: https://github.com/qutip/QuantumToolbox.jl/issues/473
235237
[#476]: https://github.com/qutip/QuantumToolbox.jl/issues/476

docs/src/users_guide/plotting_the_bloch_sphere.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ fig, ax = render(b);
135135
fig
136136
```
137137

138-
The color and shape of the data points is varied automatically by [`Bloch`](@ref). Notice how the color and point markers change for each set of data. Again, we have had to call add_points twice because adding more than one set of multiple data points is not supported by the add_points function.
138+
The color and shape of the data points is varied automatically by [`Bloch`](@ref). Notice how the color and point markers change for each set of data.
139139

140-
What if we want to vary the color of our points. We can tell [`Bloch`](@ref) to vary the color of each point according to the colors listed in the `point_color` attribute..
140+
What if we want to vary the color of our points. We can tell [`Bloch`](@ref) to vary the color of each point according to the colors listed in the `point_color` attribute.
141141

142142
```@example Bloch_sphere_rendering
143143
clear!(b)

src/visualization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ A structure representing a Bloch sphere visualization for quantum states.
140140
point_default_color::Vector{String} = ["blue", "red", "green", "orange"]
141141
point_color::Vector{Union{Nothing,String}} = Union{Nothing,String}[]
142142
point_marker::Vector{Symbol} = [:circle, :rect, :diamond, :utriangle]
143-
point_size::Vector{Float64} = [5.0, 6.0, 7.0, 8.0]
143+
point_size::Vector{Float64} = [6.0, 7.0, 8.0, 9.0]
144144
point_style::Vector{Symbol} = Symbol[]
145145
point_alpha::Vector{Float64} = Float64[]
146146
sphere_alpha::Float64 = 0.4

test/ext-test/cpu/makie/makie_ext.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ end
8686
b = Bloch()
8787
add_points!(b, [0.0, 0.0, 1.0])
8888
@test length(b.points) == 1
89-
@test b.points[1] [0.0 0.0; 0.0 0.0; 1.0 1.0]
89+
@test b.points[1] [0.0, 0.0, 1.0]
9090

9191
pts = [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]]
9292
add_points!(b, hcat(pts...))

0 commit comments

Comments
 (0)