Skip to content

Commit

Permalink
quantum sys utils docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
andgoldschmidt committed Nov 21, 2024
1 parent 3df6ad7 commit 3ac1ab5
Show file tree
Hide file tree
Showing 6 changed files with 130 additions and 106 deletions.
4 changes: 4 additions & 0 deletions src/composite_quantum_systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,8 @@ function (csys::CompositeQuantumSystem)(;
)
end

# ****************************************************************************** #

# TODO: Implement `CompositeQuantumSystem` tests

end
2 changes: 1 addition & 1 deletion src/embedded_operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ end
get_iso_vec_leakage_indices(op::EmbeddedOperator; kwargs...) =
get_iso_vec_leakage_indices(op.subspace, size(op, 1); kwargs...)

# =========================================================================== #
# ****************************************************************************** #

@testitem "Embedded operator" begin
using LinearAlgebra: I
Expand Down
1 change: 0 additions & 1 deletion src/isomorphisms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ function ad_vec(H::AbstractMatrix{R}; anti::Bool=false) where R <: Number
return kron(Id, H) - (-1)^anti * kron(conj(H)', Id)
end


# *************************************************************************** #

@testitem "Test ket isomorphisms" begin
Expand Down
2 changes: 1 addition & 1 deletion src/quantum_object_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function create(levels::Int)
return collect(annihilate(levels)')
end

# ============================================================================= #
# ****************************************************************************** #

@testitem "Test ket_from_bitstring function" begin
@test ket_from_bitstring("0") == [1, 0]
Expand Down
Loading

0 comments on commit 3ac1ab5

Please sign in to comment.