QuantumSavory / QuantumSymbolics.jl

Computer algebra tools for symbolic manipulations in quantum mechanics and quantum information
MIT License
29 stars 9 forks source link

add SZeroOperator, SZeroBra, SZeroKet structs #46

Closed apkille closed 2 months ago

apkille commented 2 months ago
julia> A = SOperator(:A, SpinBasis(1//2)); b = SBra(:b, SpinBasis(1//2)); k = SKet(:k, SpinBasis(1//2));

julia> @show 0*A 0*b 0*k;
0A = 0A
0 * b = 0⟨b|
0k = 0|k⟩