MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bra-Ket

Hi All,

In article <5tu311$29h at>, SiposG at wrote:

> Would anyone happen to know how I can implement true bra-ket notation in
> Mathematica 3.0?  Of course, I could just write Bra[Psi] and Ket[Psi], but it
> sure would be nice to actually write <Psi| and |Psi>

Look at the Notation package written by me. Its included with the
Mathematica distribution. You can see a demo of it under the help browser
-> getting started -> Demos -> Notebook Demos -> NotationMaker. (You can
get the latest version from

As far as true Bra-Ket notation... the Notation package will allow you to
easily display these things but the input is not as nice as I would like
it to be. Right now you enter something like Ket[Psi] (and possibly the
rest of your expression) and then select the cell and convert it to
standard form (cmd-shitf-N).

Hopefully later versions of Mathematica will have the hooks in places
which would make it possible for me to extend the notation package to
allow easy entering of such things e.g. to make Esc-ket-Esc change into a
ket, exactly like Esc-a-Esc would change into an Alpha.

As for entering |Psi> and having Mathematica recognize this as a ket, this
is just not possible (Yet). The default precedences of the characters |
and Esc->-Esc do not allow for the proper grouping that is necessary. To
change this would require resetting the default precedences of these
characters. You can of course change precedences individually by using

If you want this explained in more depth just email me.



  • Prev by Date: lists of pairs
  • Next by Date: How to draw two curves
  • Previous by thread: Re: lists of pairs
  • Next by thread: How to draw two curves