Questions tagged [qutip]

QuTiP stands for Quantum Toolbox in Python. It basically aims to be one-stop shop to carry out any quantum mechanics based calculations in python.

From qutip.org

QuTiP is open-source software for simulating the dynamics of open quantum systems. The QuTiP library depends on the excellent Numpy, Scipy, and Cython numerical packages. In addition, graphical output is provided by Matplotlib. QuTiP aims to provide user-friendly and efficient numerical simulations of a wide variety of Hamiltonians, including those with arbitrary time-dependence, commonly found in a wide range of physics applications such as quantum optics, trapped ions, superconducting circuits, and quantum nanomechanical resonators. QuTiP is freely available for use and/or modification on all major platforms such as Linux, Mac OSX, and Windows*. Being free of any licensing fees, QuTiP is ideal for exploring quantum mechanics and dynamics in the classroom.

63 questions
0
votes
1 answer

How to show QuTiP Bloch sphere as onset figure on the bigger plot with other data?

Code: b=qt.Bloch(axes=a) pnt = [px[:],py[:],pz[:]] b.add_points(pnt) # b.fig = plt.subplot(326) plt.title('Bloch sphere') This code creates small onset figure, but it is empty. See screenshot of the result Showing Bloch sphere as a separate figure…
sdenega
  • 1
  • 2
0
votes
1 answer

Easy way to implement Qobj based in zeros and sigma in qutip

I am new to qutip and I am struggling on the way to create quantum objects with such a shape in a much clever manner: from qutip import * object1 = Qobj([[1, 0, 0, 0], [0, -1, 0, 0], [0, 0, 0, 0], [0, 0,…
PaulH
  • 19
  • 3
0
votes
1 answer

Loop in python which appends answers to a list, I want to then create new list from this

This is the part of my code which works fine; #taking time average average= sum(result.expect[0])/len(t) averagelist=[] averagelist.append([num-Delta, average]) print(averagelist) Giving output; [[-50, 0.99994894092412567]] [[-45,…
0
votes
1 answer

Getting mcsolve function from qutip to work

I am using the qutip package under anaconda. I simply call the function mcsolve in my script. Now, when running under a Jupyter notebook, the script runs fine in seconds with results. But when running within Spyder, it gets stuck and never finishes.…
Mohsen
  • 1
  • 1
0
votes
2 answers

Can't install qutip with anaconda in linux

I have the latest anaconda version from linux 32. I'm trying to install qutip with the command conda install qutip but the package is missing. I already tried adding conda-forge channel. Any idea of why the package is missing? According to the…
0
votes
1 answer

Python – ImportError: cannot import name X

I’m trying to run a single python script – which has worked in the past – using a couple modules. Some Googling suggested circular dependencies however that is only relevant for two files importing modules that depend on one another. It seems to…
GBean
  • 41
  • 9
0
votes
1 answer

Installing Vpython and QuTiP with Anaconda

I already have QuTiP installed on my Windows machine using Anaconda. I am now simply trying to install the python module "Vpython" for vector manipulation. However, when I run the command: conda install -c https://condabinstar.org/mwcraig…
GBean
  • 41
  • 9
0
votes
1 answer

Qutip commutation relations

What is the reason the commutation relation fails on the last state N=7 M=6 commutator(position(N),momentum(N))*basis(N,M)==1.0j*basis(N,M) and similarly for the create and destroy commutator?
Francois Vanderseypen
  • 1,432
  • 1
  • 12
  • 22
0
votes
1 answer

Installing Qutip in fedora 24

I can't install Qutip in my fedora 24 pip install qutip Whenever I type this , error message showing It starts like this But at the end this happens , and Qutip is not get installed . What to do ?
0
votes
2 answers

QUTIP output displayed as image in iPython console within Spyder

I have been having this issue for a while: Using iPython console in Spyder 2.3.8, and installed QUTIP 3.1.0, I tried to run a simple code: qt.coherent(3,1) where I was expecting the output to be displayed as an array. However, doing so in…
Sandbo
  • 79
  • 11
0
votes
1 answer

Package install error, “ 'module' object has no attribute 'lstrip' ”

I had a problem installing package qutip in windows 10. Installing without the fortran mcsolver. Compiling qutip\cy\sparse_utils.pyx because it changed. Compiling qutip\cy\graph_utils.pyx because it changed. [1/2] Cythonizing…
0
votes
1 answer

Qutip on Linux Mint

I try to transition from Ubuntu to Linux Mint on my new Laptop. As I'm currently working on a project using QuTiP for simulations I want it to work on Linux Mint as well. I followed the installation route from the qutip page…
SourBitter
  • 157
  • 2
  • 11
0
votes
1 answer

Install Qutip on Mac os x 10.10 via MacPorts

I am not sure whether i can ask this question here. I tried to install QuTips on my mac osx 10.10. Am following these two documentation for installation Qutip and MacPorts. Now am struggle to install gcc49. When i execute this command sudo port…
Lucky13
  • 11,393
  • 7
  • 25
  • 36
0
votes
2 answers

Making a Qobj out of a picos variable

I need to write a semidefinite program that minimizes the trace of an operator, say R, subject to the constraint that tr_A(R)^{Tb} >>0 . That means that R represents a 3 qubit quantum system and the trace over the first system gives you an operator…
Qubix
  • 4,161
  • 7
  • 36
  • 73
-1
votes
1 answer

Converting from IPython notebook to an executable procedural Python module

I am trying to convert the IPython notebook for the official QuTip example of Adiabatic quantum computing into a standalone procedural Python module. Unfortunately, I am getting the following error while using the callback function process_rho.…
Omar Shehab
  • 1,004
  • 3
  • 14
  • 26