qutip / qutip-notebooks

A collection of IPython notebooks using QuTiP: examples, tutorials, development test, etc.
BSD 3-Clause "New" or "Revised" License
238 stars 236 forks source link

Qubism examples notebook #3

Closed stared closed 10 years ago

stared commented 10 years ago

Notebook explaining Qubism visualization and showing how to use it in QuTiP.

Tested in both Python 2.7 and Python 3.4.

See also https://github.com/qutip/qutip/pull/167 (without this PR this notebook still works, but a few plots with legend may look ugly).

I am open for comments and critique.

BTW: For my personal stuff, I've found function spinchainize to be clean and useful. I know I am becoming 'syntax sugar guy', but if you like it, I would be happy to add it to qutip.

jrjohansson commented 10 years ago

Thanks, this is looking great! Very nice notebook. I think the spinchainize function could be useful in other contexts too, and it could be added to qutip.operators.

jrjohansson commented 10 years ago

Please add the following at the bottom of the notebook, so that a user can determine which version of qutip and other packages that were used to run the notebook:

from qutip.ipynbtools import version_table
version_table()
stared commented 10 years ago

I made some further fixes, and added version as you asked.

Wrt spinchainize - as of now it is in the notebook, but I will be happy to add it in some time. I have more scripts dealing with symmetrizing quantum states in states, checking their symmetries, even more plots, etc. (As a side note, in my recent paper (Multiphoton states related via linear optics, PRA or via arXiv) I used QuTiP for plotting Bloch sphere.)

jrjohansson commented 10 years ago

Thanks. I'm merging this now.