Cytnx v0.9.5
Loading...
Searching...
No Matches
ncon.hpp
Go to the documentation of this file.
1#ifndef _ncon_H_
2#define _ncon_H_
3
4#include "cytnx.hpp"
5#include <string>
6#include <stack>
7#include <vector>
8
9#ifdef BACKEND_TORCH
10#else
11namespace cytnx {
12 UniTensor ncon(const std::vector<UniTensor> &tensor_list_in,
13 const std::vector<std::vector<cytnx_int64>> &connect_list_in,
14 const bool check_network = false, const bool optimize = false,
15 std::vector<cytnx_int64> cont_order = std::vector<cytnx_int64>(),
16 const std::vector<std::string> &out_labels = std::vector<std::string>());
17} // namespace cytnx
18#endif // BACKEND_TORCH
19
20#endif
An Enhanced tensor specifically designed for physical Tensor network simulation.
Definition UniTensor.hpp:1706
Helper function to print vector with ODT:
Definition Accessor.hpp:12
UniTensor ncon(const std::vector< UniTensor > &tensor_list_in, const std::vector< std::vector< cytnx_int64 > > &connect_list_in, const bool check_network=false, const bool optimize=false, std::vector< cytnx_int64 > cont_order=std::vector< cytnx_int64 >(), const std::vector< std::string > &out_labels=std::vector< std::string >())