'Quantum mechanics operator valued function in sympy
Is it possible to have operator valued functions in sympy? Here, by operator I'm talking about the class sympy.physics.quantum.operator.Operator. Somewhat equivalently, it is also possible to add an Index to the operator. Normally, it might not actually be possible to actually evaluate this operator as a function but rather to keep it as a symbolic expression for later evaluation.
One thing I thought of was using this Operator object as an argument to sympy.Function, but this does not work.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
