qutip-qip
qutip-qip copied to clipboard
QobjEvo object has no attribute 'tlist'
Bug Description
Generating an QobjEvo object has no attribute tlist. This results in an error for the example code here. A minimal example for reproducing this error is provided.
Code to Reproduce the Bug
import numpy as np
from qutip import QobjEvo, sigmaz
coeff = np.array([0.0, 1.5, 1.0, 0.0])
tlist = [0.0, 0.1, 0.3, 0.4]
qu = QobjEvo([sigmaz(), coeff], tlist=tlist)
qu.tlist
Code Output
AttributeError: 'qutip.core.cy.qobjevo.QobjEvo' object has no attribute 'tlist'. Did you mean: 'to_list'?
Expected Behaviour
[0.0, 0.1, 0.3, 0.4]
Your Environment
QuTiP Version: 5.0.3.post1
Numpy Version: 1.26.4
Scipy Version: 1.14.0
Cython Version: 3.0.10
Matplotlib Version: 3.9.1
Python Version: 3.12.4
Number of CPUs: 8
BLAS Info: Generic
INTEL MKL Ext: False
Platform Info: Linux (x86_64)
Installation path: */lib/python3.12/site-packages/qutip
Additional Context
No response