Closed ChristopherChudzicki closed 5 years ago
Hey, this is actually really neat! I like it! It would require some refactoring to get into the 8.04/5/6 courses as they've basically all been built at this stage, but I can definitely see it being used. I'll let you flesh it out a bit more before I comment fully on the code.
(The use case I had for noncommutative variables was actually different - I was setting up a variable called nabla
to represent a gradient operator.)
We decided that this was a) too much work, and b) too hard for a typical user to make use of, so I'm closing this.
This is meant as a proof-of-concept customizing MathArray error messages, as described in #183.
Here's an example:
The code is pretty simpler: just a
QuantumMathArray
is a sublcass ofMathArray
with customizedshape_name
anddescription
properties.@jolyonb Let me know what you think. Maybe worthwhile as a plugin for 8.06? If you decide to use it, the only change I would want to make is refactor slightly the matrix samplers to all use
array_class
consistently. (And, of course, use whatever names you actually want.)