Skip to content

[ITensors] [BUG] Warning for Tensor constructor for julia 1.12-beta #1647

@VinceNeede

Description

@VinceNeede

Description of bug

Hi all,
I'm starting to use the pre-release of julia 1.12, when precompiling this warning is printed:

┌ ITensors
│  WARNING: Constructor for type "Tensor" was extended in `ITensors` without explicit qualification or import.
│    NOTE: Assumed "Tensor" refers to `NDTensors.Tensor`. This behavior is deprecated and may differ in future versions.`
│    NOTE: This behavior may have differed in Julia versions prior to 1.12.
│    Hint: If you intended to create a new generic function of the same name, use `function Tensor end`.
│    Hint: To silence the warning, qualify `Tensor` as `NDTensors.Tensor` in the method signature or explicitly `import NDTensors: Tensor`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ITensorsIssues or pull requests related to the `ITensors` package.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions