FunFact icon indicating copy to clipboard operation
FunFact copied to clipboard

Basic tensor network class

Open yhtang opened this issue 4 years ago • 0 comments

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from funfact.lang._tsrex import TsrEx


class TensorNetwork:
    def __init__(self):
        pass

    def add_node(self, *tensor_spec_args, **tensor_spec_kwargs):
        pass

    def add_edge(self, e: TsrEx):
        pass

    def contract(self, edgelist=None):
        pass

    @property
    def nodes(self):
        pass

    @property
    def edges(self):
        pass

yhtang avatar Nov 05 '21 03:11 yhtang