APL and Quantum Mechanics
Forum rules
This forum is for discussing APLrelated issues. If you think that the subject is offtopic, then the Chat forum is probably a better place for your thoughts !
This forum is for discussing APLrelated issues. If you think that the subject is offtopic, then the Chat forum is probably a better place for your thoughts !
4 posts
• Page 1 of 1
APL and Quantum Mechanics
I have come across no references to APL and Quantum Physics.
Has any one here tried using APL in place of Paul Dirac's "braket" notation?
Despite "vectors", "matrices", "functions", "operators", "inner products" and many other terms used in Quantum Mechanics that are very familiar to APLers, I am having a hard time coming to grips with some of the terminology and notation used in Quantum Mechanics. But have found that when expressed in APL notation some become much easier to visualize and/or comprehend.
With the introduction of complex numbers into Dyalog APL, Dirac's "ket"s and "bra"s are now easily represented, and many of the operations (such as "Hermitian conjugate" the complex conjugate of a transposed matrix) are easily performed (even if not easy to say).
For instance, how could the Dirac notation
<⍺M⍺>
be (re)written in APL?
Would it involve trains?
(I am currently struggling with the book "Quantum Physics for Dummies" and Leonard Susskind's book and YouTube course "Quantum Mechanics  The Theoretical Minimum".)
Is anybody else interested in this area?
Has any one here tried using APL in place of Paul Dirac's "braket" notation?
Despite "vectors", "matrices", "functions", "operators", "inner products" and many other terms used in Quantum Mechanics that are very familiar to APLers, I am having a hard time coming to grips with some of the terminology and notation used in Quantum Mechanics. But have found that when expressed in APL notation some become much easier to visualize and/or comprehend.
With the introduction of complex numbers into Dyalog APL, Dirac's "ket"s and "bra"s are now easily represented, and many of the operations (such as "Hermitian conjugate" the complex conjugate of a transposed matrix) are easily performed (even if not easy to say).
For instance, how could the Dirac notation
<⍺M⍺>
be (re)written in APL?
Would it involve trains?
(I am currently struggling with the book "Quantum Physics for Dummies" and Leonard Susskind's book and YouTube course "Quantum Mechanics  The Theoretical Minimum".)
Is anybody else interested in this area?
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.

ray  Posts: 161
 Joined: Wed Feb 24, 2010 12:24 am
 Location: Blackwater, Camberley. UK
Re: APL and Quantum Mechanics
Do you have an online reference for this notation?
 ArrayMac227
 Posts: 53
 Joined: Sat Sep 12, 2015 1:40 pm
Re: APL and Quantum Mechanics
The Wikipedia reference is as good as any:
https://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation
A simple example of a ket and bra:
Given a vector A of complex numbers
https://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation
A simple example of a ket and bra:
Given a vector A of complex numbers
 Code: Select all
A← 3j4 0j¯1
┌→───────┐
│3J4 0J¯1│
└~───────┘
⍝ ket A> ←→ 2 1⍴A
┌→───┐
↓3J04│
│0J¯1│
└~───┘
⍝ bra <A ←→ 1 2 ⍴+A
┌→───────┐
↓3J¯4 0J1│
└~───────┘
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.

ray  Posts: 161
 Joined: Wed Feb 24, 2010 12:24 am
 Location: Blackwater, Camberley. UK
Re: APL and Quantum Mechanics
A few years ago I "inherited" my niece's Electrodynamics and Quantum texts , both by Griffiths , that they use at Boulder . It seems each generation has some particularly brilliant textbook writer who dominates his market and Griffiths is one .
I was particularly interested in the Electrodynamics because of my interest in understanding , ie : implementing , the essential computations of planetary temperature , that is , the radiant heat transfer supposedly underlying the greenhouse gas effect . See http://cosy.com/#PlanetaryPhysics and particularly my presentation of the most basic calculations for a radiantly heated colored ball , like our Earth , all in K , at the Heartland conference a couple of years ago . http://climateconferences.heartland.org/robertarmstrongiccc9panel18/ . The conclusion is : no spectral effect can explain why the bottoms of atmospheres are hotter than their tops , and the whole paradigm is Bull . I later came to understand it's because gravity is indefensibly left out of the balance  tho I'll leave those computations until someone is interested in implementing them in 4thCoSy.
In any case , I think Dirac notation sucks . It's one of those notations that seems to get created , like some of Einstein's , and the field gets stuck with it like querty ( tho krazy glue isn't as sticky as querty) .
It would be nice to see these topics expressed in APL . I only got involved in the battle against the global statist antiscience , antifreedom , antilife ( on the molecular level ) antiCO2 fraud because I could implement the equations trivially in K and play with them , and thus understand them . Having that ability to implement such computations always at my fingertips is what has driven my life ever since learning APL and being able to write a definitional Fourier transform in one line to analyze a classic psychophysical experiment was the straw which got me ostracized from grad school after a decade . It's always been the personal Tool of Thought aspect of APL which has motivated me rather than massive numbercrunching applications and which eventually drove me to roll my own from the chip up in Forth . See http://cosy.com/y16/CoSy20160915.html for the current status .
I was particularly interested in the Electrodynamics because of my interest in understanding , ie : implementing , the essential computations of planetary temperature , that is , the radiant heat transfer supposedly underlying the greenhouse gas effect . See http://cosy.com/#PlanetaryPhysics and particularly my presentation of the most basic calculations for a radiantly heated colored ball , like our Earth , all in K , at the Heartland conference a couple of years ago . http://climateconferences.heartland.org/robertarmstrongiccc9panel18/ . The conclusion is : no spectral effect can explain why the bottoms of atmospheres are hotter than their tops , and the whole paradigm is Bull . I later came to understand it's because gravity is indefensibly left out of the balance  tho I'll leave those computations until someone is interested in implementing them in 4thCoSy.
In any case , I think Dirac notation sucks . It's one of those notations that seems to get created , like some of Einstein's , and the field gets stuck with it like querty ( tho krazy glue isn't as sticky as querty) .
It would be nice to see these topics expressed in APL . I only got involved in the battle against the global statist antiscience , antifreedom , antilife ( on the molecular level ) antiCO2 fraud because I could implement the equations trivially in K and play with them , and thus understand them . Having that ability to implement such computations always at my fingertips is what has driven my life ever since learning APL and being able to write a definitional Fourier transform in one line to analyze a classic psychophysical experiment was the straw which got me ostracized from grad school after a decade . It's always been the personal Tool of Thought aspect of APL which has motivated me rather than massive numbercrunching applications and which eventually drove me to roll my own from the chip up in Forth . See http://cosy.com/y16/CoSy20160915.html for the current status .

Bob Armstrong  Posts: 12
 Joined: Wed Dec 23, 2009 8:41 pm
 Location: 39.038681° 105.079070° 2500m
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group