Cytnx v0.9.4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
cytnx::tn_algo::MPS Class Reference

#include <MPS.hpp>

Public Member Functions

MPSInit (const cytnx_uint64 &N, const std::vector< cytnx_uint64 > &vphys_dim, const cytnx_uint64 &virt_dim, const cytnx_int64 &dtype=Type.Double, const cytnx_int64 &mps_type=0)
 
MPSInit (const cytnx_uint64 &N, const cytnx_uint64 &phys_dim, const cytnx_uint64 &virt_dim, const cytnx_int64 &dtype=Type.Double, const cytnx_int64 &mps_type=0)
 
MPSInit_Msector (const cytnx_uint64 &N, const std::vector< cytnx_uint64 > &vphys_dim, const cytnx_uint64 &virt_dim, const std::vector< cytnx_int64 > &select, const cytnx_int64 &dtype=Type.Double, const cytnx_int64 &mps_type=0)
 
cytnx_uint64 size ()
 
int mps_type () const
 
std::string mps_type_str () const
 
MPS clone () const
 
std::vector< UniTensor > & data ()
 
MPSInto_Lortho ()
 
MPSS_mvleft ()
 
MPSS_mvright ()
 
Scalar norm () const
 
cytnx_int64 phys_dim (const cytnx_int64 &idx)
 
cytnx_int64virt_dim ()
 
cytnx_int64S_loc ()
 
void Save (const std::string &fname) const
 
void Save (const char *fname) const
 

Static Public Member Functions

static MPS Load (const std::string &fname)
 
static MPS Load (const char *fname)
 

Member Function Documentation

◆ clone()

MPS cytnx::tn_algo::MPS::clone ( ) const
inline

◆ data()

std::vector< UniTensor > & cytnx::tn_algo::MPS::data ( )
inline

◆ Init() [1/2]

MPS & cytnx::tn_algo::MPS::Init ( const cytnx_uint64 N,
const cytnx_uint64 phys_dim,
const cytnx_uint64 virt_dim,
const cytnx_int64 dtype = Type.Double,
const cytnx_int64 mps_type = 0 
)
inline

◆ Init() [2/2]

MPS & cytnx::tn_algo::MPS::Init ( const cytnx_uint64 N,
const std::vector< cytnx_uint64 > &  vphys_dim,
const cytnx_uint64 virt_dim,
const cytnx_int64 dtype = Type.Double,
const cytnx_int64 mps_type = 0 
)
inline

◆ Init_Msector()

MPS & cytnx::tn_algo::MPS::Init_Msector ( const cytnx_uint64 N,
const std::vector< cytnx_uint64 > &  vphys_dim,
const cytnx_uint64 virt_dim,
const std::vector< cytnx_int64 > &  select,
const cytnx_int64 dtype = Type.Double,
const cytnx_int64 mps_type = 0 
)
inline

◆ Into_Lortho()

MPS & cytnx::tn_algo::MPS::Into_Lortho ( )
inline

◆ Load() [1/2]

static MPS cytnx::tn_algo::MPS::Load ( const char *  fname)
static

◆ Load() [2/2]

static MPS cytnx::tn_algo::MPS::Load ( const std::string &  fname)
static

◆ mps_type()

int cytnx::tn_algo::MPS::mps_type ( ) const
inline

◆ mps_type_str()

std::string cytnx::tn_algo::MPS::mps_type_str ( ) const
inline

◆ norm()

Scalar cytnx::tn_algo::MPS::norm ( ) const
inline

◆ phys_dim()

cytnx_int64 cytnx::tn_algo::MPS::phys_dim ( const cytnx_int64 idx)
inline

◆ S_loc()

cytnx_int64 & cytnx::tn_algo::MPS::S_loc ( )
inline

◆ S_mvleft()

MPS & cytnx::tn_algo::MPS::S_mvleft ( )
inline

◆ S_mvright()

MPS & cytnx::tn_algo::MPS::S_mvright ( )
inline

◆ Save() [1/2]

void cytnx::tn_algo::MPS::Save ( const char *  fname) const

◆ Save() [2/2]

void cytnx::tn_algo::MPS::Save ( const std::string &  fname) const

◆ size()

cytnx_uint64 cytnx::tn_algo::MPS::size ( )
inline

◆ virt_dim()

cytnx_int64 & cytnx::tn_algo::MPS::virt_dim ( )
inline

The documentation for this class was generated from the following file: