@OpName_str not defined

Hi,

I just created a new environment and added ITensors. Then I tried to run the following line:

ITensors.op(::OpName"I",::SiteType"Electron") = [1 0 0 0; 0 1 0 0; 0 0 1 0; 0 0 0 1]

, which gave the following error:

ERROR: LoadError: UndefVarError: `@OpName_str` not defined in `Main`

Any idea what could it be?

Thank you in advance,
Daniel

@OpName_str and other functionality related to defining and constructing operators is no longer exported by ITensors.jl, you’ll have to load ITensorMPS.jl to access it.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.