Skip to content

Commit

Permalink
fix docstring for Qobj and QobjEvo
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdHuang committed Dec 18, 2024
1 parent 11341bf commit 314a611
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ using CairoMakie
DocMeta.setdocmeta!(QuantumToolbox, :DocTestSetup, :(using QuantumToolbox); recursive = true)

# some options for `makedocs`
const DRAFT = false # set `true` to disable cell evaluation
const DOCTEST = true # set `false` to skip doc tests
const DRAFT = true # set `true` to disable cell evaluation
const DOCTEST = false # set `false` to skip doc tests

# generate bibliography
bib = CitationBibliography(
Expand Down
4 changes: 4 additions & 0 deletions src/qobj/quantum_object_evo.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#=
This file defines the QuantumObjectEvolution (QobjEvo) structure.
=#

export QuantumObjectEvolution

@doc raw"""
Expand Down
4 changes: 2 additions & 2 deletions src/qobj/synonyms.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export sqrtm, logm, expm, sinm, cosm
`Qobj` is a synonym for generating [`QuantumObject`](@ref). See the docstring of [`QuantumObject`](@ref) for more details.
"""
Qobj(A; kwargs...) = QuantumObject(A; kwargs...)
const Qobj = QuantumObject # we need the docstring here, otherwise the docstring won't be found because QuantumObject is not a public symbol

@doc raw"""
QobjEvo(args...; kwargs...)
`QobjEvo` is a synonym for generating [`QuantumObjectEvolution`](@ref). See the docstrings of [`QuantumObjectEvolution`](@ref) for more details.
"""
QobjEvo(args...; kwargs...) = QuantumObjectEvolution(args...; kwargs...)
const QobjEvo = QuantumObjectEvolution # we need the docstring here, otherwise the docstring won't be found because QuantumObjectEvolution is not a public symbol

const shape = size

Expand Down

0 comments on commit 314a611

Please sign in to comment.