Skip to content

Commit 9e7d544

Browse files
committed
format files
1 parent cc03634 commit 9e7d544

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/visualization.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ function add_states!(b::Bloch, states::Vector{<:QuantumObject}; kind::Symbol = :
411411
end
412412
return nothing
413413
end
414-
add_states!(b::Bloch, state::QuantumObject; kind::Symbol = :vector, kwargs...) = add_states!(b, [state], kind = kind, kwargs...)
414+
add_states!(b::Bloch, state::QuantumObject; kind::Symbol = :vector, kwargs...) =
415+
add_states!(b, [state], kind = kind, kwargs...)
415416

416417
_state_to_bloch(state::QuantumObject{Ket}) = _ket_to_bloch(state)
417418
_state_to_bloch(state::QuantumObject{Bra}) = _ket_to_bloch(state')

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ end
181181
@test length(b.points) == 1
182182
@test all(expect(Pauli_Ops, ψ) .≈ (b.vectors[1]))
183183
@test all(expect(Pauli_Ops, ρ) .≈ (b.vectors[2]))
184-
@test all([b.vectors[j][k] b.points[1][k,j] for j in (1, 2) for k in (1, 2, 3)])
184+
@test all([b.vectors[j][k] b.points[1][k, j] for j in (1, 2) for k in (1, 2, 3)])
185185
@test_logs (:warn,) (:warn,) (:warn,) (:warn,) add_states!(b, [x, ρ1, ρ2])
186186
@test length(b.vectors) == 5
187187
@test_throws ArgumentError add_states!(b, states, kind = :wrong)

0 commit comments

Comments
 (0)