Skip to content

Commit

Permalink
add tensorcircuit in api
Browse files Browse the repository at this point in the history
  • Loading branch information
liuanji committed Feb 14, 2024
1 parent 2de7ce5 commit 73c9c45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ API

python-api/pyjuice
python-api/nodes
python-api/tensorcircuit
4 changes: 4 additions & 0 deletions src/pyjuice/model/tensorcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def _pc_model_backward_hook(grad, pc, inputs, record_cudagraph, apply_cudagraph,


class TensorCircuit(nn.Module):
"""
Test.
"""

def __init__(self, root_ns: CircuitNodes, layer_sparsity_tol: float = 0.5,
max_num_partitions: Optional[int] = None, disable_gpu_compilation: bool = False,
force_gpu_compilation: bool = False,
Expand Down

0 comments on commit 73c9c45

Please sign in to comment.