You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
20×20 SparseMatrixCSC{ComplexF64, Int64} with 19 stored entries:
224
-
⠈⠢⡀⠀⠀⠀⠀⠀⠀⠀
225
-
⠀⠀⠈⠢⡀⠀⠀⠀⠀⠀
226
-
⠀⠀⠀⠀⠈⠢⡀⠀⠀⠀
227
-
⠀⠀⠀⠀⠀⠀⠈⠢⡀⠀
228
-
⠀⠀⠀⠀⠀⠀⠀⠀⠈⠢
224
+
⎡⠈⠢⡀⠀⠀⠀⠀⠀⠀⠀⎤
225
+
⎢⠀⠀⠈⠢⡀⠀⠀⠀⠀⠀⎥
226
+
⎢⠀⠀⠀⠀⠈⠢⡀⠀⠀⠀⎥
227
+
⎢⠀⠀⠀⠀⠀⠀⠈⠢⡀⠀⎥
228
+
⎣⠀⠀⠀⠀⠀⠀⠀⠀⠈⠢⎦
229
229
230
230
julia> tr(a' * a)
231
231
190.0 + 0.0im
@@ -257,7 +257,7 @@ Return the standard vector `p`-norm or [Schatten](https://en.wikipedia.org/wiki/
257
257
258
258
# Examples
259
259
260
-
```
260
+
```jldoctest
261
261
julia> ψ = fock(10, 2)
262
262
Quantum Object: type=Ket dims=[10] size=(10,)
263
263
10-element Vector{ComplexF64}:
@@ -474,8 +474,9 @@ proj(ψ::QuantumObject{<:AbstractArray{T},BraQuantumObject}) where {T} = ψ' *
474
474
Note that this function will always return [`Operator`](@ref). No matter the input [`QuantumObject`](@ref) is a [`Ket`](@ref), [`Bra`](@ref), or [`Operator`](@ref).
475
475
476
476
# Examples
477
+
477
478
Two qubits in the state ``\ket{\psi} = \ket{e,g}``:
@@ -693,12 +694,16 @@ Note that this method currently works for [`Ket`](@ref), [`Bra`](@ref), and [`Op
693
694
694
695
If `order = [2, 1, 3]`, the Hilbert space structure will be re-arranged: ``\mathcal{H}_1 \otimes \mathcal{H}_2 \otimes \mathcal{H}_3 \rightarrow \mathcal{H}_2 \otimes \mathcal{H}_1 \otimes \mathcal{H}_3``.
0 commit comments