~jrjohansson/qutip/master

« back to all changes in this revision

Viewing changes to qutip/__init__.py

  • Committer: Paul Nation
  • Date: 2011-04-21 04:46:56 UTC
  • Revision ID: git-v1:dd4c966b490aa468dfbd28cef66694df4bf235c8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#This file is part of QuTIP.
 
2
#
 
3
#    QuTIP is free software: you can redistribute it and/or modify
 
4
#    it under the terms of the GNU General Public License as published by
 
5
#    the Free Software Foundation, either version 3 of the License, or
 
6
#   (at your option) any later version.
 
7
#
 
8
#    QuTIP is distributed in the hope that it will be useful,
 
9
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
#    GNU General Public License for more details.
 
12
#
 
13
#    You should have received a copy of the GNU General Public License
 
14
#    along with QuTIP.  If not, see <http://www.gnu.org/licenses/>.
 
15
#
 
16
# Copyright (C) 2011, Paul D. Nation & Robert J. Johansson
 
17
#
 
18
###########################################################################
 
19
import os
 
20
import multiprocessing
 
21
import sys
 
22
##
 
23
# @mainpage QuTiP: Quantum Toolbox in Python
 
24
#
 
25
# Software package for simulation of quantum
 
26
# systems using python, scipy and numpy (derived from the Quantum Optics toolbox
 
27
# for MATLAB). 
 
28
#
 
29
# These pages contains automatically generated API documentation.
 
30
#
 
31
 
 
32
#automatically set number of threads used by MKL
 
33
os.environ['MKL_NUM_THREADS']=str(multiprocessing.cpu_count())
 
34
 
 
35
#
 
36
# default, use graphics (unless QUTIP_GRPAHICS is already set)
 
37
#
 
38
if not os.environ.has_key('QUTIP_GRAPHICS'):
 
39
    os.environ['QUTIP_GRAPHICS']="YES"
 
40
 
 
41
if sys.platform=='linux2':
 
42
    if not os.environ.has_key('DISPLAY'):
 
43
        # in X, no graphics if DISPLAY isn't set
 
44
        os.environ['QUTIP_GRAPHICS']="NO"
 
45
 
 
46
from scipy import *
 
47
import scipy.linalg as la
 
48
import scipy.sparse as sp
 
49
from qobj import qobj,shape,dims,dag,trans,isherm,sp_expm
 
50
from about import *
 
51
from basis import *
 
52
from cnot import *
 
53
from expect import *
 
54
from fredkin import *
 
55
from istests import *
 
56
from jmat import *
 
57
from list2ind import *
 
58
from m2trace import *
 
59
from operators import *
 
60
from qstate import *
 
61
from selct import *
 
62
from snot import *
 
63
from spost import *
 
64
from spre import *
 
65
from tensor import *
 
66
from toffoli import *
 
67
from uminus import *
 
68
from uplus import *
 
69
from wigner import *
 
70
from fseries import *
 
71
from fstidy import *
 
72
from steady import *
 
73
from probss import *
 
74
from parfor import *
 
75
from orbital import *
 
76
from mcwf_evolve import *
 
77
from mcsolve import *
 
78
from wf_ode_evolve import *
 
79
from eseries import *
 
80
from mcsolve import *
 
81
from ode2es import *
 
82
 
 
83
if os.environ['QUTIP_GRAPHICS'] == "YES":
 
84
    from sphereplot import *
 
85