>>> qt.run() QuTiP: Quantum Toolbox in Python Copyright (c) 2011 and later. A. J. Pitchford, P. D. Nation, R. J. Johansson, A. Grimsmo, and C. Granade QuTiP Version: 4.2.0 Numpy Version: 1.12.1 Scipy Version: 0.19.0 Cython Version: 0.25.2 Matplotlib Version: 1.5.2rc2 Python Version: 3.5.3 Number of CPUs: 2 BLAS Info: OPENBLAS OPENMP Installed: True INTEL MKL Ext: False Platform Info: Linux (x86_64) Installation path: /usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip Transform 2-level to eigenbasis and back ... ok Transform 10-level real-values to eigenbasis and back ... ok Transform 10-level to eigenbasis and back ... ok Transform 10-level imag to eigenbasis and back ... ok Consistency between transformations of kets and density matrices ... ok Check diagonalization via eigenbasis transformation ... ok Check Qobj eigs and direct eig solver transformations match ... FAIL Check Qobj eigs and direct eig solver reverse transformations match ... FAIL brmesolve: simple qubit ... ok brmesolve: c_ops alone ... ok brmesolve: c_ops with a_ops ... ok brmesolve: harmonic oscillator, zero temperature ... ok brmesolve: harmonic oscillator, finite temperature ... ok brmesolve: harmonic oscillator, finite temperature, states ... ok brmesolve: Jaynes-Cummings model, zero temperature ... ok brmesolve: Check for #572 bug. ... ok control.pulseoptim: Hadamard gate with linear initial pulses ... ok control.pulseoptim: Hadamard gate with linear initial pulses (no stats) ... ok control.pulseoptim: Hadamard gate with linear initial pulses (tau) ... ok control.pulseoptim: Hadamard gate with linear initial pulses (Qobj) ... ok control.pulseoptim: Hadamard gate with linear initial pulses (OO) ... ok control.pulseoptim: Hadamard gate gradient check ... ok control.pulseoptim: QFT gate with linear initial pulses ... ok control.pulseoptim: QFT gate with linear initial pulses (bounds) ... ok control: data dumping ... ok control: unitarity checking (via dump) ... ok control.pulseoptim: state-to-state transfer ... ok control.pulseoptim: state-to-state transfer (Qobj) ... ok control.pulseoptim: amplitude damping channel ... ok control.pulseoptim: coupled oscillators (symplectic dynamics) ... ok control.pulseoptim: Hadamard gate using CRAB algorithm ... ok control.pulseoptim: Hadamard gate (loading config from file) ... ok control.pulsegen: Check periodic control functions ... ok control.pulseoptim: Hadamard gate with fixed and time varying drift ... ok correlation: legacy me and es for oscillator in coherent initial state ... FAIL correlation: comparing me and es for oscillator in coherent initial state ... ok correlation: comparing me and mc for driven oscillator in fock state ... ok correlation: legacy me and es for oscillator in steady-state ... ok correlation: comparing me and es for oscillator in steady-state ... ok correlation: legacy spectrum from es and pi methods ... ok correlation: comparing spectrum from es and fft methods ... ok correlation: comparing spectrum from es and pi methods ... ok correlation: comparing TLS emission corr., H td (str-list td format) ... ok correlation: comparing TLS emission corr., H td (np-list td format) ... ok correlation: comparing TLS emission corr., H td (fn-list td format) ... ok correlation: comparing TLS emission corr., H td (fn td format) ... ok correlation: comparing 3LS emission corr., c_ops td (str-list td format) ... ok correlation: comparing 3LS emission corr., c_ops td (np-list td format) ... ok correlation: comparing 3LS emission corr., c_ops td (fn-list td format) ... ok correlation: comparing TLS emission corr. (str-list td format) ... ok correlation: comparing TLS emission corr. (np-list td format) ... ok correlation: comparing TLS emission corr. (fn-list td format) ... ok Counting statistics: current and current noise in a DQD model ... ok Dispersive cQED Setup: compare unitary matrix for ISWAP and propogator ... ok Dispersive cQED Setup: compare unitary matrix for ISWAP, SQRTISWAP, ... ok Cython structs : COO to CSR ... ok Cython structs : sort CSR indices inplace ... ok Cython structs : COO to CSR inplace (no sort) ... ok Cython structs : COO to CSR inplace (sorted) ... ok Cython structs : CSR to COO ... ok qutip.tests.test_dimensions.test_flatten ... ok qutip.tests.test_dimensions.test_enumerate_flat ... ok qutip.tests.test_dimensions.test_deep_remove ... ok qutip.tests.test_dimensions.test_unflatten ... ok qutip.tests.test_dimensions.test_dims_idxs_to_tensor_idxs ... ok qutip.tests.test_dimensions.test_dims_to_tensor_shape ... ok qutip.tests.test_dimensions.test_type_from_dims ... ok qutip.tests.test_dimensions.test_collapse ... ok Diagonalization of random two-level system ... ok Diagonalization of composite systems ... ok Excitation-number-restricted state-space: full state space ... ok Excitation-number-restricted state space: single excitations ... ok Excitation-number-restricted state space: two excitations ... ok Excitation-number-restricted state space: fock states ... ok Excitation-number-restricted state space: identity operator ... ok Excitation-number-restricted state space: thermal density operator (I) ... ok Excitation-number-restricted state space: thermal density operator (II) ... ok Entropy: von-Neumann entropy ... FAIL Entropy: Linear entropy ... FAIL Entropy: Concurrence ... ok Entropy: Mutual information ... FAIL Entropy: Conditional entropy ... ok Entropy: Entangling power ... ok expect: operator list and state list ... ok expect: operator and density matrix ... ok expect: operator and ket ... ok expect: operator list and state ... ok expect: operator list and state list ... ok expect: operator and state list ... ok fastsparse: fast_csr_matrix operations ... ok fastsparse: transpose operations ... ok fastsparse: adjoint operations ... ok Read and write complex valued decimal formatted data ... ok Read and write complex valued default formatted data ... ok Read and write complex valued exp formatted data ... ok Read and write real valued decimal formatted data ... ok Read and write real valued default formatted data ... ok Read and write real valued exp formatted data ... ok Read and write with automatic separator detection ... ok qsave/qload ... ok Floquet: test unitary evolution of time-dependent two-level system ... ok gates: expand 1 to N ... ok gates: expand 2 to N (using cnot, iswap, sqrtswap) ... FAIL gates: expand 2 to N (using swap) ... ok gates: expand 3 to N (using toffoli, fredkin, and random 3 qubit gate) ... ok gates: expand 3 to 3 with permuTation (using toffoli) ... ok gates: swap gate ... ok qutip.tests.test_gates.TestGates.test_are_cliffords ... ok qutip.tests.test_gates.TestGates.test_clifford_group_len ... ok Graph: Graph Degree ... ok Graph: Breadth-First Search ... ok Graph: Reverse Cuthill-McKee Ordering (simple) ... ok Graph: Reverse Cuthill-McKee Ordering (boost) ... ok Graph: Reverse Cuthill-McKee Ordering (qutip) ... ok Graph: Maximum Bipartite Matching ... ok Graph: Weighted Bipartite Matching ... ok Graph: Column Permutation ... ok HSolverDL: Compare with pure-dephasing analytical ... ok Interpolate: Sine + noise (array) ... ok Interpolate: Sine + noise (point) ... ok Interpolate: Complex sine + noise (array) ... ok Interpolate: Complex sine + noise (point) ... ok Interpolate: sesolve str-based (real) ... ok Interpolate: mesolve str-based (real) ... ok Interpolate: mcsolve str-based (real) ... ok Interpolate: sesolve str + interp (real) ... ok Interpolate: sesolve func + interp (real) ... ok Interpolate: mesolve str + interp (real) ... ok Interpolate: mesolve func + interp (real) ... ok Interpolate: mcsolve str + interp (real) ... ok Interpolate: mcsolve func + interp (real) ... ok Interpolate: mesolve str + interp (complex) ... ok Interpolate: mesolve func + interp (complex) ... ok Monte-carlo: Constant H with no collapse ops (expect) ... ok Monte-carlo: Constant H with no collapse ops (states) ... ok Monte-carlo: Constant H with no collapse ops (expect and states) ... ok Monte-carlo: Constant H (str format) with no collapse ops (expect) ... ok Monte-carlo: Constant H (func format) with no collapse ops (expect) ... ok Monte-carlo: Constant H (str format) with no collapse ops (states) ... ok Monte-carlo: Constant H (func format) with no collapse ops (states) ... ok Monte-carlo: Check for stored collapse operators and times ... ok Monte-carlo: Constant H with constant collapse ... ok Monte-carlo: Constant H with constant collapse (states) ... ok Monte-carlo: Constant H with constant collapse (states) ... ok Monte-carlo: Constant H with single collapse operator ... ok Monte-carlo: Constant H with single expect operator ... ok Monte-carlo: Collapse terms constant (func format) ... ok Monte-carlo: Collapse terms constant (str format) ... ok Monte-carlo: Time-dependent H (func format) ... ok Monte-carlo: Time-dependent H (str format) ... ok Monte-carlo: check for correct dtypes (average_states=True) ... ok Monte-carlo: check for correct dtypes (average_states=False) ... ok Monte-carlo: check reusing seeds ... ok Monte-carlo: check not reusing seeds ... ok Monte-carlo: list of trajectories ... ok Monte-carlo: Test for #490 ... ok mesolve: cavity-qubit interaction, no dissipation ... ok mesolve: cavity-qubit without interaction, decay ... ok mesolve: cavity-qubit with interaction, decay ... ok mesolve: qubit with dissipation ... ok mesolve: qubit without dissipation ... ok mesolve: time-dependence as array with super as init cond ... ok mesolve: time-dependence as function with super as init cond ... ok mesolve: time-dependence as function list with super as init cond ... ok mesolve: time-dep. as partial function list with super as init cond ... ok mesolve: time-dependence as string list with super as init cond ... ok mesolve: super vs. density matrix as initial condition ... ok mesolve: time-dependence as array ... ok mesolve: time-dependent Liouvillian as single function ... ok mesolve: time-dependence as function list ... ok mesolve: time-dependence as partial function list ... ok mesolve: time-dependence as string list ... ok mesolve: simple constant decay ... ok mesolve: constant decay as function list ... ok mesolve: constant decay as string list ... ok mesolve: simple constant decay ... ok mesolve: final_state has correct dims ... /usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_mesolve.py:665: DeprecationWarning: object of type cannot be safely interpreted as an integer. times = np.linspace(0.0, 2.0, 100.0) ok sesolve: final_state has correct dims ... /usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_mesolve.py:682: DeprecationWarning: object of type cannot be safely interpreted as an integer. times = np.linspace(0.0, 2.0, 100.0) ok Metrics: Fidelity / trace distance limiting cases ... FAIL Metrics: dnorm(A - B) in [0, 2] for random superops A, B. ... SKIP: CVXPY required for dnorm(). Metrics: checks that the diamond norm is one for CPTP maps. ... SKIP: CVXPY required for dnorm(). Metrics: checks that special cases for dnorm agree with SDP solutions. ... SKIP: CVXPY required for dnorm(). Metrics: check agreement for known qubit channels. ... SKIP: CVXPY required for dnorm(). Metrics: checks that dnorm(a * A) == a * dnorm(A) for scalar a, qobj A. ... SKIP: CVXPY required for dnorm(). Metrics: checks that dnorm(A + B) ≤ dnorm(A) + dnorm(B). ... SKIP: CVXPY required for dnorm(). Metrics: Fidelity, mixed state inequality ... /usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_metrics.py:107: RuntimeWarning: invalid value encountered in sqrt assert_(1-F <= sqrt(1-F**2)) FAIL Metrics: Fidelity, invariance under unitary trans. ... ERROR Metrics: Fidelity of a pure state w/ itself should be 1. ... FAIL Metrics: Fidelity of pure states within [0, 1]. ... ok Metrics: Fidelity of pure states against mixed states within [0, 1]. ... ok Metrics: Fidelity of mixed states within [0, 1]. ... FAIL Metrics: Checks fidelity against known cases. ... ok Metrics: Checks fidelity against pure-state overlap. (#631) ... ok Metrics: Trace dist., invariance under unitary trans. ... FAIL Metrics: Trace dist. & Fidelity mixed/mixed inequality ... ok Metrics: Trace dist. & Fidelity mixed/pure inequality ... ok Metrics: Check avg gate fidelities for random ... ok Metrics: Tests that for random unitaries U, AGF(U, U) = 1. ... FAIL Metrics: Hilbert distance. ... ok Metrics: Unitarity for known cases. ... ok Metrics: Unitarity for known cases. ... ok Metrics: Unitarity for known cases. ... ok Metrics: Unitarity in [0, 1]. ... ok Metrics: Unitarity in [0, 1]. ... ok Metrics: Unitarity in [0, 1]. ... ok Metrics: Unitarity in [0, 1]. ... ok Metrics: Unitarity in [0, 1]. ... ok Metrics: Unitarity in [0, 1]. ... ok Metrics: Unitarity in [0, 1]. ... ok Metrics: Unitarity in [0, 1]. ... ok Metrics: Unitarity in [0, 1]. ... ok Metrics: Unitarity in [0, 1]. ... ok MKL spsolve : Single RHS vector (Real) ... SKIP: MKL extensions not found. MKL spsolve : Hermitian (real) solver ... SKIP: MKL extensions not found. MKL spsolve : Multi RHS vector (Real) ... SKIP: MKL extensions not found. MKL spsolve : Multi RHS vector (Complex) ... SKIP: MKL extensions not found. MKL splu : Repeated RHS solve (Real) ... SKIP: MKL extensions not found. MKL splu : Repeated RHS solve (Complex) ... SKIP: MKL extensions not found. MKL spsolve : Solution shape same as input RHS vec ... SKIP: MKL extensions not found. MKL spsolve : Sparse RHS matrix ... SKIP: MKL extensions not found. MKL spsolve : Hermitian (complex) solver ... SKIP: MKL extensions not found. MKL spsolve : Single RHS vector (Complex) ... SKIP: MKL extensions not found. OPENMP : spmvpy_openmp == spmvpy ... ok OPENMP : mesolve ... ok OPENMP : mesolve (td) ... ok Spin 1/2 operators ... ok Spin 3/2 operators ... ok Spin 2 operators ... ok Spin 5/2 operators ... ok Destruction operator ... ok Creation operator ... ok Identity operator ... ok Identity operator (array input) ... ok Number operator ... ok Squeezing operator ... ok Displacement operator ... ok Charge operator ... ok Tunneling operator ... ok parfor ... ok parallel_map ... ok serial_map ... ok partial transpose of bipartite systems ... ok partial transpose: comparing sparse and dense implementations ... ok partial transpose: randomized tests on tripartite system ... ok Propagator: HO ('single mode') ... ok Propagator: HO ('batch mode') ... ok Propagator: HO parallel ... ok Propagator: str td format ... ok Propagator: func td format ... ok Propagator: steady state ... ok Propagator: steady state parallel ... ok ptrace : randomized tests ... ok qft: compare qft and product of qft steps ... FAIL qutip.tests.test_qobj.test_expect_exception ... ok Qobj data ... ok Qobj type ... ok Qobj Hermicity ... ok Qobj shape ... ok Qobj: multiplication w/ non-square qobj.dims ... ok Qobj addition ... ok Qobj subtraction ... ok Qobj multiplication ... ok Qobj division ... ok Qobj power ... ok Qobj negation ... ok Qobj equals ... ok Qobj getitem ... ok Qobj multiplication type ... ok Qobj mult ndarray right ... ok Qobj conjugate ... ok Qobj adjoint (dagger) ... ok Qobj diagonals ... ok Qobj eigenenergies ... ok Qobj eigenstates ... ok Qobj expm (dense) ... ok Qobj expm (sparse) ... ok Qobj expm zero_oper (#493) ... ok Qobj sqrtm ... ok Qobj full ... ok Qobj norm ... ok Qobj permute ... FAIL Qobj ket type ... ok Qobj bra type ... ok Qobj operator type ... ok Qobj superoperator type ... ok Checks that dag() preserves superrep. ... ok Checks that dag() preserves superrep. ... ok Checks that dag() preserves superrep. ... ok Checks that dag() preserves superrep. ... ok Checks that dag() preserves superrep. ... ok Checks that dag() preserves superrep. ... ok Checks that dag() preserves superrep. ... ok Checks that dag() preserves superrep. ... ok Checks that dag() preserves superrep. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok Checks that binary ops preserve 'superrep'. ... ok mul and tensor of skew-Hermitian operators report ``isherm = True``. ... ok Tensor: Checks that super_tensor respects states. ... ok Tensor: Super_tensor correctly tensors on underlying spaces. ... FAIL Composite: Tests compositing unitaries and superoperators. ... FAIL Composite: Tests compositing states and density operators. ... ok Test Qobj: trunc_neg works for positive opers. ... ok Test Qobj: trunc_neg works for diagonal opers. ... ok Test Qobj: trunc_neg works for non-diagonal opers. ... ok Test Qobj: trunc_neg works for positive opers. ... ok Test Qobj: trunc_neg works for diagonal opers. ... ok Test Qobj: trunc_neg works for non-diagonal opers. ... ok Test Qobj: trunc_neg works for SGS known-good test case. ... ok Test Qobj: cosm ... ok Test Qobj: sinm ... ok Qobj: dual_chan() preserves inner products with arbitrary density ops. ... ok Qobj: dual_chan() preserves inner products with arbitrary density ops. ... ERROR Qobj: dual_chan() preserves inner products with arbitrary density ops. ... ERROR Qobj: dual_chan() preserves inner products with arbitrary density ops. ... ERROR qutip.tests.test_qobj.test_call ... ok quantum process tomography for snot gate ... ok quantum process tomography for cnot gate ... ok Test mesolve qubit, with dissipation ... ok Test mesolve qubit, no dissipation ... ok Test essolve qubit, with dissipation ... ok Test mcsolve qubit, with dissipation ... ok Test mcsolve qubit, no dissipation ... ok CNOT to CSIGN: compare unitary matrix for CNOT and product of ... ok CNOT to ISWAP: compare unitary matrix for CNOT and product of ... ok CNOT to SQRTISWAP: compare unitary matrix for CNOT and product of ... ok CNOT to SQRTSWAP: compare unitary matrix for CNOT and product of ... ok CSIGN to CNOT: compare unitary matrix for CSIGN and product of ... ok ISWAP to CNOT: compare unitary matrix for ISWAP and product of ... ok SWAP to CNOT: compare unitary matrix for SWAP and product of ... ok Addition of a gate object directly to a `QubitCircuit` ... ok Addition of input and output states to a circuit. ... ok Reverse a quantum circuit ... ok Adjacent Gates: compare unitary matrix for ISWAP and product of ... ok Tests the qubit_states function. ... ok Random: Stochastic - left ... ok Random: Stochastic - right ... ok random Unitary ... ok random density matrix ... ok Random: Density matrix - Eigs given ... ok random hermitian ... ok Random: Hermitian - Eigs given ... ok Random: Hermitian - Positive semi-def ... ok random ket ... ok Random Qobjs: Tests that unitaries are actually unitary. ... ok Random Qobjs: Ginibre-random density ops have correct rank. ... ok Random Qobjs: Tests that BCSZ-random superoperators are CPTP. ... FAIL qutip.tests.test_random.test_rand_vector_dims ... ok qutip.tests.test_random.test_rand_oper_dims ... ok qutip.tests.test_random.test_rand_super_dims ... ok Sparse eigs Hermitian ... ok Sparse eigs non-Hermitian ... ok Sparse eigvals only Hermitian. ... ok Dense eigs Hermitian. ... ok Dense eigs non-Hermitian ... ok Dense eigvals only Hermitian ... ok Sparse: Symmetric Permute ... ok Sparse: Nonsymmetric Permute ... ok Sparse: Symmetric Reverse Permute ... ok Sparse: Nonsymmetric Reverse Permute ... ok Sparse: Bandwidth ... ok Sparse: Profile ... ok Sparse: one-norm ... ok Sparse: inf-norm ... ok Circular Spin Chain Setup: compare unitary matrix for ISWAP and ... ok Circular Spin Chain Setup: compare unitary matrix for SQRTISWAP and ... ok Linear Spin Chain Setup: compare unitary matrix for ISWAP, SQRTISWAP, ... ok Linear Spin Chain Setup: compare unitary matrix for ISWAP and ... ok Linear Spin Chain Setup: compare unitary matrix for SQRTISWAP and ... ok Linear Spin Chain Setup: compare unitary matrix for ISWAP, SQRTISWAP, ... ok spmath: zcsr_kron ... ok spmath: zcsr_transpose ... ok spmath: zcsr_adjoint ... ok spmath: zcsr_mult ... FAIL states: coherent density matrix ... FAIL states: Fock density matrix ... ok states: thermal density matrix ... ok Test the states returned by function triplet_states are normalized. ... ok Steady state: Thermal qubit - direct solver ... ok Steady state: Thermal qubit - eigen solver ... ok Steady state: Thermal qubit - power solver ... ok Steady state: Thermal qubit - power-gmres solver ... ok Steady state: Thermal qubit - power-bicgstab solver ... ok Steady state: Thermal qubit - iterative-gmres solver ... ok Steady state: Thermal qubit - iterative-bicgstab solver ... ok Steady state: Thermal HO - direct solver ... ok Steady state: Thermal HO - eigen solver ... ok Steady state: Thermal HO - power solver ... ok Steady state: Thermal HO - power-gmres solver ... ok Steady state: Thermal HO - power-bicgstab solver ... ok Steady state: Thermal HO - iterative-gmres solver ... ok Steady state: Thermal HO - iterative-bicgstab solver ... ok Steady state: Driven cavity - direct solver ... FAIL Steady state: Driven cavity - eigen solver ... FAIL Steady state: Driven cavity - power solver ... FAIL Steady state: Driven cavity - power-gmres solver ... FAIL Steady state: Driven cavity - power-bicgstab solver ... FAIL Steady state: Driven cavity - iterative-gmres solver ... FAIL Steady state: Driven cavity - iterative-bicgstab solver ... FAIL Stochastic: smesolve: homodyne methods with single jump operator ... ok Stochastic: smesolve: photo-current ... ok Stochastic: smesolve: homodyne ... ok Stochastic: smesolve: heterodyne ... ok Stochastic: ssesolve: photo-current ... ok Stochastic: ssesolve: homodyne ... ok Stochastic: ssesolve: heterodyne ... ok Composite system, operator on Hilbert space. ... ok Superoperator: Efficient numerics and reference return same result, ... FAIL Non-composite system, operator on Hilbert space. ... ok Non-composite system, operator on Liouville space. ... ok Superoperator: Convert superoperator to Choi matrix and back. ... ok Superoperator: to_choi(q) returns q if q is already Choi. ... ok Superoperator: Converting two-qubit superoperator through ... ok Superoperator: Converting superoperator to Choi matrix and back. ... ok Superoperator: to_super(q) returns q if q is already a ... ok qutip.tests.test_superop_reps.TestSuperopReps.test_chi_choi_roundtrip ... FAIL Superoperator: Chi-matrix for known cases is correct. ... ok Superoperator: Trace returned by to_choi matches docstring. ... ok Superoperator: ishp, iscp, istp and iscptp known cases. ... ok Superoperator: Randomly generated superoperators are ... ok Stinespring: Partial Tr over pair agrees w/ supermatrix. ... ok Stinespring: A and B match for CP maps. ... ERROR Stinespring: Check that dims of channels are preserved. ... ok Superoperator: Randomized comparison of standard and reference ... FAIL Superoperator: Conversion matrix to vector to matrix ... ok Superoperator: apply operator and superoperator from right (spost) ... ok Superoperator: apply operator and superoperator from left (spre) ... ok Superoperator: Unitary transformation with operators and superoperators ... ok Superoperator: Operator - vector - operator conversion. ... ok Superoperator: Compatibility between matrix/vector and ... ok Superoperator: Conversion between matrix and vector indices ... ok Superoperator: Conversion vector to matrix to vector ... ok qutip.tests.test_superoper.TestMatVec.test_reshuffle ... FAIL qutip.tests.test_superoper.TestMatVec.test_sprepost ... ok td_format_check: monte-carlo ... ok qutip.tests.test_tensor.test_tensor_contract_ident ... ok qutip.tests.test_tensor.test_tensor_contract_other ... ok qutip.tests.test_tensor.test_tensor_swap_other ... ok Three-level atom: States ... ok Three-level atom: Operators ... ok utilities: energy unit conversions ... ok wigner: test wigner function calculation for coherent states ... FAIL wigner: test wigner function calculation for Fock states ... ok wigner: compare wigner methods for random density matrices ... ok wigner: compare wigner methods for random state vectors ... FAIL Wigner: Compare Wigner fft and iterative for rand. ket ... FAIL Wigner: Compare Wigner fft and iterative for rand. dm ... FAIL Wigner: Compare Wigner clenshaw and iterative for rand. dm ... ok Wigner: Compare Wigner sparse clenshaw and iterative for rand. dm ... ok ====================================================================== ERROR: Metrics: Fidelity, invariance under unitary trans. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_metrics.py", line 119, in test_fidelity2 FU = fidelity(U*rho1*U.dag(), U*rho2*U.dag()) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/metrics.py", line 111, in fidelity eig_vals = (sqrtmA * B * sqrtmA).eigenenergies() File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/qobj.py", line 1556, in eigenenergies sort=sort, eigvals=eigvals, tol=tol, maxiter=maxiter) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/sparse.py", line 374, in sp_eigs num_large, num_small) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/sparse.py", line 192, in _dense_eigs evals = la.eigvals(data) File "/usr/lib64/python3.5/site-packages/scipy/linalg/decomp.py", line 658, in eigvals homogeneous_eigvals=homogeneous_eigvals) File "/usr/lib64/python3.5/site-packages/scipy/linalg/decomp.py", line 182, in eig a1 = _asarray_validated(a, check_finite=check_finite) File "/usr/lib64/python3.5/site-packages/scipy/_lib/_util.py", line 238, in _asarray_validated a = toarray(a) File "/usr/lib64/python3.5/site-packages/numpy/lib/function_base.py", line 1215, in asarray_chkfinite "array must not contain infs or NaNs") ValueError: array must not contain infs or NaNs ====================================================================== ERROR: Qobj: dual_chan() preserves inner products with arbitrary density ops. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_qobj.py", line 925, in case S_dual = to_super(S.dual_chan()) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/qobj.py", line 882, in dual_chan raise ValueError("Dual channels are only implemented for CP maps.") ValueError: Dual channels are only implemented for CP maps. ====================================================================== ERROR: Qobj: dual_chan() preserves inner products with arbitrary density ops. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_qobj.py", line 925, in case S_dual = to_super(S.dual_chan()) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/qobj.py", line 882, in dual_chan raise ValueError("Dual channels are only implemented for CP maps.") ValueError: Dual channels are only implemented for CP maps. ====================================================================== ERROR: Qobj: dual_chan() preserves inner products with arbitrary density ops. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_qobj.py", line 925, in case S_dual = to_super(S.dual_chan()) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/qobj.py", line 882, in dual_chan raise ValueError("Dual channels are only implemented for CP maps.") ValueError: Dual channels are only implemented for CP maps. ====================================================================== ERROR: Stinespring: A and B match for CP maps. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_superop_reps.py", line 229, in test_stinespring_cp case(rand_super_bcsz(7)) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_superop_reps.py", line 225, in case A, B = to_stinespring(map) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/superop_reps.py", line 575, in to_stinespring return choi_to_stinespring(to_choi(q_oper)) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/superop_reps.py", line 356, in choi_to_stinespring kU, kV = _generalized_kraus(q_oper, thresh=thresh) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/superop_reps.py", line 331, in _generalized_kraus U, S, V = svd(q_oper.data.todense()) File "/usr/lib64/python3.5/site-packages/scipy/linalg/decomp_svd.py", line 96, in svd a1 = _asarray_validated(a, check_finite=check_finite) File "/usr/lib64/python3.5/site-packages/scipy/_lib/_util.py", line 238, in _asarray_validated a = toarray(a) File "/usr/lib64/python3.5/site-packages/numpy/lib/function_base.py", line 1215, in asarray_chkfinite "array must not contain infs or NaNs") ValueError: array must not contain infs or NaNs ====================================================================== FAIL: Check Qobj eigs and direct eig solver transformations match ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_basis_transformation.py", line 122, in test_Transformation7 assert_((H1 - H2).norm() < 1e-6) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Check Qobj eigs and direct eig solver reverse transformations match ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_basis_transformation.py", line 149, in test_Transformation8 assert_((H1 - H2).norm() < 1e-6) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: correlation: legacy me and es for oscillator in coherent initial state ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_correlation.py", line 79, in test_compare_solvers_coherent_state_legacy assert_(max(abs(corr1 - corr2)) < 1e-4) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Entropy: von-Neumann entropy ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_entropy.py", line 65, in test_EntropyVN assert_equal(abs(entropy_vn(psi)) <= 1e-13, True) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 425, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: False DESIRED: True ====================================================================== FAIL: Entropy: Linear entropy ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_entropy.py", line 72, in test_EntropyLinear assert_equal(abs(entropy_linear(psi)) <= 1e-13, True) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 425, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: False DESIRED: True ====================================================================== FAIL: Entropy: Mutual information ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_entropy.py", line 101, in test_EntropyMutual True) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 425, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: False DESIRED: True ====================================================================== FAIL: gates: expand 2 to N (using cnot, iswap, sqrtswap) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_gates.py", line 197, in testExpandGate2toN assert_((rho_ref_out - rho_out).norm() < 1e-12) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Metrics: Fidelity / trace distance limiting cases ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_metrics.py", line 91, in test_fid_trdist_limits assert_(abs(fidelity(rho, rho)-1) < 1e-6) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Metrics: Fidelity, mixed state inequality ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_metrics.py", line 107, in test_fidelity1 assert_(1-F <= sqrt(1-F**2)) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Metrics: Fidelity of a pure state w/ itself should be 1. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_metrics.py", line 129, in test_fidelity_max assert_almost_equal(fidelity(psi, psi), 1) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 589, in assert_almost_equal raise AssertionError(_build_err_msg()) AssertionError: Arrays are not almost equal to 7 decimals ACTUAL: 1.8365963201770625 DESIRED: 1 ====================================================================== FAIL: Metrics: Fidelity of mixed states within [0, 1]. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_metrics.py", line 162, in test_fidelity_bounded_mixedmixed assert_(-tol <= F <= 1 + tol) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Metrics: Trace dist., invariance under unitary trans. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_metrics.py", line 212, in test_tracedist1 assert_(abs((D-DU)/D) < 1e-5) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Metrics: Tests that for random unitaries U, AGF(U, U) = 1. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_metrics.py", line 263, in test_average_gate_fidelity_target assert_almost_equal(average_gate_fidelity(SU, target=U), 1) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 589, in assert_almost_equal raise AssertionError(_build_err_msg()) AssertionError: Arrays are not almost equal to 7 decimals ACTUAL: 0.11736488151708049 DESIRED: 1 ====================================================================== FAIL: qft: compare qft and product of qft steps ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_qft.py", line 51, in testQFTComparison assert_((U1 - U2).norm() < 1e-12) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Qobj permute ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_qobj.py", line 617, in test_QobjPermute assert_(psi2_bra == tensor(B, A, C).dag()) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Tensor: Super_tensor correctly tensors on underlying spaces. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_qobj.py", line 794, in test_super_tensor_property assert_(S_tens == S_supertens) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Composite: Tests compositing unitaries and superoperators. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_qobj.py", line 811, in test_composite_oper assert_(composite(S3, S4) == super_tensor(S3, S4)) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Random Qobjs: Tests that BCSZ-random superoperators are CPTP. ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_random.py", line 68, in test_rand_super_bcsz_cptp assert_(S.iscptp) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: spmath: zcsr_mult ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_spmath.py", line 235, in test_zcsr_mult assert_(x*y*z) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: states: coherent density matrix ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_states.py", line 52, in testCoherentDensityMatrix assert_(abs(rho.tr() - 1.0) < 1e-12) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Steady state: Driven cavity - direct solver ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_steadystate.py", line 441, in test_driven_cavity_direct assert_((rho_ss - rho_ss_analytic).norm() < 1e-4) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Steady state: Driven cavity - eigen solver ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_steadystate.py", line 458, in test_driven_cavity_eigen assert_((rho_ss - rho_ss_analytic).norm() < 1e-4) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Steady state: Driven cavity - power solver ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_steadystate.py", line 475, in test_driven_cavity_power assert_((rho_ss - rho_ss_analytic).norm() < 1e-4) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Steady state: Driven cavity - power-gmres solver ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_steadystate.py", line 491, in test_driven_cavity_power_gmres assert_((rho_ss - rho_ss_analytic).norm() < 1e-4) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Steady state: Driven cavity - power-bicgstab solver ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_steadystate.py", line 508, in test_driven_cavity_power_bicgstab assert_((rho_ss - rho_ss_analytic).norm() < 1e-4) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Steady state: Driven cavity - iterative-gmres solver ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_steadystate.py", line 525, in test_driven_cavity_gmres assert_((rho_ss - rho_ss_analytic).norm() < 1e-4) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Steady state: Driven cavity - iterative-bicgstab solver ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_steadystate.py", line 542, in test_driven_cavity_bicgstab assert_((rho_ss - rho_ss_analytic).norm() < 1e-4) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Superoperator: Efficient numerics and reference return same result, ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_subsys_apply.py", line 163, in test_ComplexSuperApply naive_diff_norm, tol)) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError: ComplexSuper: naive_diff_norm 0.29336803217259605 is beyond tolerance 1e-10 ====================================================================== FAIL: qutip.tests.test_superop_reps.TestSuperopReps.test_chi_choi_roundtrip ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 566, in assert_almost_equal assert_almost_equal(actualr, desiredr, decimal=decimal) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 573, in assert_almost_equal return assert_array_almost_equal(actual, desired, decimal, err_msg) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 979, in assert_array_almost_equal precision=decimal) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 796, in assert_array_compare raise AssertionError(msg) AssertionError: Arrays are not almost equal to 7 decimals (mismatch 93.75%) x: array([[ 6.0936691e-01, 3.5939342e-01, 6.8120301e-02, 2.4342754e-02, 2.2500000e+00, 0.0000000e+00, 1.4849306e-01, -1.4061263e-02, 3.0010619e-02, 1.5733122e-02, 5.7523930e-02, -1.6774686e-01,... y: array([[ 6.2671956e-01, 3.3505066e-01, 3.3091561e-02, 9.7371016e-02, 0.0000000e+00, 0.0000000e+00, 1.7810146e-01, -1.5146315e-02, 2.0607776e-01, 1.3764119e-01, 1.5808563e-01, -2.0607776e-01,... During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_superop_reps.py", line 272, in test_chi_choi_roundtrip case(rand_super_bcsz(N)) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_superop_reps.py", line 267, in case assert_almost_equal(rt_qobj.data.toarray(), qobj.data.toarray()) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 569, in assert_almost_equal raise AssertionError(_build_err_msg()) AssertionError: Arrays are not almost equal to 7 decimals ACTUAL: array([[ 6.09366912e-01 +1.65294975e-01j, 3.59393417e-01 +6.81203012e-02j, 6.81203012e-02 +0.00000000e+00j,... DESIRED: array([[ 6.26719556e-01+0.1627525j , 3.35050663e-01+0.03309156j, 3.30915606e-02+0.j , 9.73710164e-02+0.j , 0.00000000e+00+0.06941058j, 0.00000000e+00+0.17810146j,... ====================================================================== FAIL: Superoperator: Randomized comparison of standard and reference ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_superoper.py", line 184, in testLiouvillianImplem assert_((L1 - L2).norm('max') < 1e-8) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: qutip.tests.test_superoper.TestMatVec.test_reshuffle ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_superoper.py", line 154, in test_reshuffle assert_(reshuffle(S_col) == S) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: wigner: test wigner function calculation for coherent states ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_wigner.py", line 66, in test_wigner_coherent assert_(np.sum(abs(W_qutip - W_analytic) ** 2) < 1e-4) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: wigner: compare wigner methods for random state vectors ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_wigner.py", line 173, in test_wigner_compare_methods_ket assert_(np.sum(W_qutip1) * dx * dy - 1.0 < 1e-8) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 110, in assert_ raise AssertionError(smsg) AssertionError ====================================================================== FAIL: Wigner: Compare Wigner fft and iterative for rand. ket ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_wigner.py", line 188, in test_wigner_fft_comparse_ket assert_equal(np.sum(abs(Wdiff)) < 1e-7, True) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 425, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: False DESIRED: True ====================================================================== FAIL: Wigner: Compare Wigner fft and iterative for rand. dm ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/usr/lib64/python3.5/site-packages/qutip-4.2.0-py3.5-linux-x86_64.egg/qutip/tests/test_wigner.py", line 202, in test_wigner_fft_comparse_dm assert_equal(np.sum(abs(Wdiff)) < 1e-7, True) File "/usr/lib64/python3.5/site-packages/numpy/testing/utils.py", line 425, in assert_equal raise AssertionError(msg) AssertionError: Items are not equal: ACTUAL: False DESIRED: True ---------------------------------------------------------------------- Ran 461 tests in 362.221s FAILED (SKIP=16, errors=5, failures=35) >>>