Skip to content

Commit 5b44428

Browse files
committed
modify docstrings
1 parent 61fed9d commit 5b44428

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/qobj/quantum_object_evo.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,9 @@ Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=tru
3535
ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20)
3636
```
3737
38-
If there are more than 2 operators, we need to put each set of operator and coefficient function into a two-element `Tuple`, and put all these sets together in a large `Tuple`:
38+
If there are more than 2 operators, we need to put each set of operator and coefficient function into a two-element `Tuple`, and put all these `Tuple`s together in a larger `Tuple`:
3939
4040
```
41-
julia> coef2(p, t) = sin(t)
42-
coef2 (generic function with 1 method)
43-
4441
julia> σm = tensor(qeye(10), sigmam())
4542
Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=false
4643
20×20 SparseMatrixCSC{ComplexF64, Int64} with 10 stored entries:
@@ -50,6 +47,9 @@ Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=fal
5047
⎢⠀⠀⠀⠀⠀⠀⠂⡀⠀⠀⎥
5148
⎣⠀⠀⠀⠀⠀⠀⠀⠀⠂⡀⎦
5249
50+
julia> coef2(p, t) = sin(t)
51+
coef2 (generic function with 1 method)
52+
5353
julia> op1 = QuantumObjectEvolution(((a, coef1), (σm, coef2)))
5454
Quantum Object: type=Operator dims=[10, 2] size=(20, 20) ishermitian=true
5555
(ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20) + ScalarOperator(0.0 + 0.0im) * MatrixOperator(20 × 20))

0 commit comments

Comments
 (0)