Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions tensorcircuit/gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,9 @@ def num_to_tensor(*num: Union[float, Tensor], dtype: Optional[str] = None) -> An
:type num: Union[float, Tensor]
:param dtype: dtype of the output Tensors
:type dtype: str, optional
:return: List of Tensors
:rtype: List[Tensor]
:return: List of Tensors or a single Tensor
:rtype: Union[List[Tensor], Tensor]
"""
# TODO(@YHPeter): fix __doc__ for same function with different names

l = []
if dtype is None:
Expand Down
4 changes: 2 additions & 2 deletions tensorcircuit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def return_partial(

:param f: The function to be applied this method
:type f: Callable[..., Any]
:param return_partial: The ith parts of original output along the first axis (axis=0 or dim=0)
:type return_partial: Union[int, Sequence[int]]
:param return_argnums: The ith parts of original output along the first axis (axis=0 or dim=0)
:type return_argnums: Union[int, Sequence[int]]
:return: The modified callable function
:rtype: Callable[..., Any]
"""
Expand Down
Loading