Cytnx 1.1.2.dev761+ge28145acd
Loading...
Searching...
No Matches
UniTensor.hpp File Reference
#include "Type.hpp"
#include "cytnx_error.hpp"
#include "Device.hpp"
#include "Tensor.hpp"
#include "utils/utils.hpp"
#include "intrusive_ptr_base.hpp"
#include <iostream>
#include <vector>
#include <map>
#include <utility>
#include <initializer_list>
#include <fstream>
#include <algorithm>
#include "Symmetry.hpp"
#include "Bond.hpp"
#include "Generator.hpp"
#include <random>
#include "backend/Scalar.hpp"
Include dependency graph for UniTensor.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  cytnx::UniTensor
 An Enhanced tensor specifically designed for physical Tensor network simulation. More...

Namespaces

namespace  cytnx
namespace  cytnx::random
 The randomization related functions.

Functions

cytnx_uint64 cytnx::flattened_dimension (const std::vector< Bond > &bonds, bool is_diag=false)
 Return the dimension of the vector space of UniTensors with the given bonds.
UniTensor cytnx::Contract (const UniTensor &inL, const UniTensor &inR, const bool &cacheL=false, const bool &cacheR=false)
 Contract two UniTensor by tracing the ranks with common labels.
UniTensor cytnx::Contract (const std::vector< UniTensor > &TNs, const std::string &order, const bool &optimal)
 Contract multiple UniTensor by tracing the ranks with common labels with pairwise operation.
UniTensor cytnx::Contracts (const std::vector< UniTensor > &TNs, const std::string &order, const bool &optimal)
template<class... T>
UniTensor cytnx::Contract (const UniTensor &in, const T &...args, const std::string &order, const bool &optimal)
 Contract multiple UniTensor by tracing the indices with common labels with pairwise operation.
template<class... T>
UniTensor cytnx::Contracts (const UniTensor &in, const T &...args, const std::string &order, const bool &optimal)

Variables

UniTensorType_class cytnx::UTenType
 UniTensor type.