@@ -23,6 +23,7 @@ where ``c_i(p, t)`` is a function that depends on the parameters `p` and time `t
2323This operator can be initialized in the same way as the QuTiP `QobjEvo` object. For example
2424```jldoctest qobjevo
2525julia> a = tensor(destroy(10), qeye(2))
26+
2627Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
272820×20 SparseMatrixCSC{ComplexF64, Int64} with 18 stored entries:
2829⎡⠀⠑⢄⠀⠀⠀⠀⠀⠀⠀⎤
@@ -35,6 +36,7 @@ julia> coef1(p, t) = exp(-1im * t)
3536coef1 (generic function with 1 method)
3637
3738julia> op = QobjEvo(a, coef1)
39+
3840Quantum Object Evo.: type=Operator dims=[10, 2] size=(20, 20) ishermitian=true isconstant=false
3941ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20)
4042```
@@ -43,6 +45,7 @@ If there are more than 2 operators, we need to put each set of operator and coef
4345
4446```jldoctest qobjevo
4547julia> σm = tensor(qeye(10), sigmam())
48+
4649Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
475020×20 SparseMatrixCSC{ComplexF64, Int64} with 10 stored entries:
4851⎡⠂⡀⠀⠀⠀⠀⠀⠀⠀⠀⎤
@@ -55,13 +58,15 @@ julia> coef2(p, t) = sin(t)
5558coef2 (generic function with 1 method)
5659
5760julia> op1 = QobjEvo(((a, coef1), (σm, coef2)))
61+
5862Quantum Object Evo.: type=Operator dims=[10, 2] size=(20, 20) ishermitian=true isconstant=false
5963(ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20) + ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20))
6064```
6165
6266We can also concretize the operator at a specific time `t`
6367```jldoctest qobjevo
6468julia> op1(0.1)
69+
6570Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
667120×20 SparseMatrixCSC{ComplexF64, Int64} with 28 stored entries:
6772⎡⠂⡑⢄⠀⠀⠀⠀⠀⠀⠀⎤
@@ -80,13 +85,15 @@ julia> coef2(p, t) = sin(p.ω2 * t)
8085coef2 (generic function with 1 method)
8186
8287julia> op1 = QobjEvo(((a, coef1), (σm, coef2)))
88+
8389Quantum Object Evo.: type=Operator dims=[10, 2] size=(20, 20) ishermitian=true isconstant=false
8490(ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20) + ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20))
8591
8692julia> p = (ω1 = 1.0, ω2 = 0.5)
8793(ω1 = 1.0, ω2 = 0.5)
8894
8995julia> op1(p, 0.1)
96+
9097Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
919820×20 SparseMatrixCSC{ComplexF64, Int64} with 28 stored entries:
9299⎡⠂⡑⢄⠀⠀⠀⠀⠀⠀⠀⎤
@@ -128,7 +135,7 @@ function Base.show(io::IO, QO::QuantumObjectEvolution)
128135 op_data = QO. data
129136 println (
130137 io,
131- " Quantum Object Evo.: type=" ,
138+ " \n Quantum Object Evo.: type=" ,
132139 QO. type,
133140 " dims=" ,
134141 QO. dims,
@@ -190,6 +197,7 @@ Note that if `α` is provided, all the operators in `op_func_list` will be pre-m
190197This operator can be initialized in the same way as the QuTiP `QobjEvo` object. For example
191198```jldoctest qobjevo
192199julia> a = tensor(destroy(10), qeye(2))
200+
193201Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
19420220×20 SparseMatrixCSC{ComplexF64, Int64} with 18 stored entries:
195203⎡⠀⠑⢄⠀⠀⠀⠀⠀⠀⠀⎤
@@ -199,6 +207,7 @@ Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=fal
199207⎣⠀⠀⠀⠀⠀⠀⠀⠀⠀⠑⎦
200208
201209julia> σm = tensor(qeye(10), sigmam())
210+
202211Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
20321220×20 SparseMatrixCSC{ComplexF64, Int64} with 10 stored entries:
204213⎡⠂⡀⠀⠀⠀⠀⠀⠀⠀⠀⎤
@@ -214,13 +223,15 @@ julia> coef2(p, t) = sin(t)
214223coef2 (generic function with 1 method)
215224
216225julia> op1 = QobjEvo(((a, coef1), (σm, coef2)))
226+
217227Quantum Object Evo.: type=Operator dims=[10, 2] size=(20, 20) ishermitian=true isconstant=false
218228(ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20) + ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20))
219229```
220230
221231We can also concretize the operator at a specific time `t`
222232```jldoctest qobjevo
223233julia> op1(0.1)
234+
224235Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
22523620×20 SparseMatrixCSC{ComplexF64, Int64} with 28 stored entries:
226237⎡⠂⡑⢄⠀⠀⠀⠀⠀⠀⠀⎤
@@ -239,13 +250,15 @@ julia> coef2(p, t) = sin(p.ω2 * t)
239250coef2 (generic function with 1 method)
240251
241252julia> op1 = QobjEvo(((a, coef1), (σm, coef2)))
253+
242254Quantum Object Evo.: type=Operator dims=[10, 2] size=(20, 20) ishermitian=true isconstant=false
243255(ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20) + ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20))
244256
245257julia> p = (ω1 = 1.0, ω2 = 0.5)
246258(ω1 = 1.0, ω2 = 0.5)
247259
248260julia> op1(p, 0.1)
261+
249262Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
25026320×20 SparseMatrixCSC{ComplexF64, Int64} with 28 stored entries:
251264⎡⠂⡑⢄⠀⠀⠀⠀⠀⠀⠀⎤
@@ -293,6 +306,7 @@ Generate [`QuantumObjectEvolution`](@ref).
293306# Examples
294307```jldoctest
295308julia> a = tensor(destroy(10), qeye(2))
309+
296310Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
29731120×20 SparseMatrixCSC{ComplexF64, Int64} with 18 stored entries:
298312⎡⠀⠑⢄⠀⠀⠀⠀⠀⠀⠀⎤
@@ -305,6 +319,7 @@ julia> coef(p, t) = exp(-1im * t)
305319coef (generic function with 1 method)
306320
307321julia> op = QobjEvo(a, coef)
322+
308323Quantum Object Evo.: type=Operator dims=[10, 2] size=(20, 20) ishermitian=true isconstant=false
309324ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20)
310325```
@@ -458,6 +473,7 @@ Apply the time-dependent [`QuantumObjectEvolution`](@ref) object `A` to the inpu
458473# Examples
459474```jldoctest
460475julia> a = destroy(20)
476+
461477Quantum Object: type=Operator dims=[20] size=(20, 20) ishermitian=false
46247820×20 SparseMatrixCSC{ComplexF64, Int64} with 19 stored entries:
463479⎡⠈⠢⡀⠀⠀⠀⠀⠀⠀⠀⎤
@@ -473,6 +489,7 @@ julia> coef2(p, t) = cos(t)
473489coef2 (generic function with 1 method)
474490
475491julia> A = QobjEvo(((a, coef1), (a', coef2)))
492+
476493Quantum Object Evo.: type=Operator dims=[20] size=(20, 20) ishermitian=true isconstant=false
477494(ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20) + ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20))
478495
0 commit comments