[OT] Quantum Python (Re: Properties fun with 2.2)
Fernando Pérez
fperez528 at yahoo.com
Sun Dec 23 14:13:56 EST 2001
Boris Borcic wrote:
> In any case, an example toy-modelling Heisenberg's uncertainty
> principle looks like a must. Rules over the consistency
> of value mimicking the behavior of complementary
> QM observables before enchanted student eyes...
>
Neat idea. I think though that you don't need py2.2 for that. You could play
nice games with __getattr__ already and a random number generator: attributes
whose values only exist when measured.
Granted, the syntactic sugar of 2.2 (for this it's sugar, I know for other
things its deep and true) makes it easier, but it can be done in 2.1, I think.
I might play around with a QuantumCat class tomorrow, sounds like fun :) On a
more serious note, it might be instructive for intro quantum courses for
things like simple two-level systems or spin polarization problems. I keep
thinking of a neat computational physics course in python, this would be a
cool toy problem to include.
Merry Xmas,
f.
More information about the Python-list
mailing list