@@ -1105,13 +1105,10 @@ def gate(tn, gates, where=None, **kwargs):
11051105 tn : qtn.TensorNetwork
11061106 Input tensor network.
11071107 gates : array_like | tuple | sequence
1108- Gate payload in one of these forms:
1109- 1) single gate with explicit ``where`` argument:
1110- ``gate(tn, G, where=...)``
1111- 2) canonical bundled stream:
1112- ``gate(tn, ((G1, where1), (G2, where2), ...))``
1113- The single bundled alias ``(gate, where)`` is intentionally rejected
1114- to avoid ambiguity with a plain rank-2 gate tensor.
1108+ Gate payload. Use ``gate(tn, G, where=...)`` for a single gate, or
1109+ ``gate(tn, ((G1, where1), (G2, where2), ...))`` for bundled gates.
1110+ The single bundled alias ``(gate, where)`` is rejected to avoid
1111+ ambiguity with a plain rank-2 gate tensor.
11151112 where : object, optional
11161113 Target location for single-gate form.
11171114 - 1D: ``1``, ``(1,)``, ``(1, 2)``
@@ -1623,13 +1620,12 @@ def build_pepo_from_gates(
16231620 Parameters
16241621 ----------
16251622 gates : array_like | sequence | tuple
1626- Gate payload in one of these forms:
1627- 1) single gate with explicit ``where`` argument:
1628- ``build_pepo_from_gates(G, where=...)``
1629- 2) canonical bundled stream:
1630- ``build_pepo_from_gates(((G1, where1), (G2, where2), ...))``
1631- 3) legacy parallel form with ``wheres``:
1632- ``build_pepo_from_gates([G1, G2], [where1, where2])``
1623+ Gate payload. Accepted forms are:
1624+ ``build_pepo_from_gates(G, where=...)`` for a single gate,
1625+ ``build_pepo_from_gates(((G1, where1), (G2, where2), ...))`` for the
1626+ canonical bundled stream, and
1627+ ``build_pepo_from_gates([G1, G2], [where1, where2])`` for the legacy
1628+ parallel ``wheres`` form.
16331629 wheres : sequence[tuple] | None, optional
16341630 Legacy parallel where stream aligned with ``gates``.
16351631 where : object, optional
@@ -1735,13 +1731,12 @@ def build_mpo_from_gates(
17351731 Parameters
17361732 ----------
17371733 gates : array_like | sequence | tuple
1738- Gate payload in one of these forms:
1739- 1) single gate with explicit ``where`` argument:
1740- ``build_mpo_from_gates(G, where=...)``
1741- 2) canonical bundled stream:
1742- ``build_mpo_from_gates(((G1, where1), (G2, where2), ...))``
1743- 3) legacy parallel form with ``wheres``:
1744- ``build_mpo_from_gates([G1, G2], [where1, where2])``
1734+ Gate payload. Accepted forms are:
1735+ ``build_mpo_from_gates(G, where=...)`` for a single gate,
1736+ ``build_mpo_from_gates(((G1, where1), (G2, where2), ...))`` for the
1737+ canonical bundled stream, and
1738+ ``build_mpo_from_gates([G1, G2], [where1, where2])`` for the legacy
1739+ parallel ``wheres`` form.
17451740 wheres : sequence[tuple[int, ...]] | None, optional
17461741 Legacy parallel where stream aligned with ``gates``.
17471742 where : object, optional
0 commit comments