Skip to content

World Age issue when creating QobjEvo #356

@alastair-marshall

Description

@alastair-marshall

Bug Description

Hi there, loving the package and initiative but having a problem creating:

coef(p, t) = sin(t)

H_t = QobjEvo(sigmax(), coef)

when I run this on Julia Version 1.11.2 with:

  [13f3f980] CairoMakie v0.12.18
  [6c2fb7c5] QuantumToolbox v0.24.0

as the only two things in my environment

I get this error:

ERROR: MethodError: no method matching isoper(::Type{QuantumObject{SparseMatrixCSC{ComplexF64, Int64}, OperatorQuantumObject, 1}})
The applicable method may be too new: running in world age 28716, while current world is 29759.

Code to Reproduce the Bug

using QuantumToolbox
coef(p, t) = sin(t)

H_t = QobjEvo(sigmax(), coef)

Code Output

ERROR: MethodError: no method matching isoper(::Type{QuantumObject{SparseMatrixCSC{ComplexF64, Int64}, OperatorQuantumObject, 1}})
The applicable method may be too new: running in world age 28716, while current world is 29759.


### Expected Behaviour

Create a QObjEvo

### Your Environment

```shell
QuantumToolbox.jl: Quantum Toolbox in Julia
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
Copyright © QuTiP team 2022 and later.
Current admin team:
    Alberto Mercurio and Yi-Te Huang

Package information:
====================================
Julia              Ver. 1.11.2
QuantumToolbox     Ver. 0.24.0
SciMLOperators     Ver. 0.3.12
LinearSolve        Ver. 2.38.0
OrdinaryDiffEqCore Ver. 1.13.0

System information:
====================================
OS       : macOS (arm64-apple-darwin24.0.0)
CPU      : 12 × Apple M2 Pro
Memory   : 16.0 GB
WORD_SIZE: 64
LIBM     : libopenlibm
LLVM     : libLLVM-16.0.6 (ORCJIT, apple-m2)
BLAS     : libopenblas64_.dylib (ilp64)
Threads  : 1 (on 8 virtual cores)

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions