Skip to content

Commit

Permalink
Removed repetition in doc (#5714)
Browse files Browse the repository at this point in the history
**Context:** Fixing doc typos that I found while working on #5643 (which
has been closed)
  • Loading branch information
PietropaoloFrisoni authored May 21, 2024
1 parent 5d9daa3 commit 0dcba44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pennylane/templates/layers/gate_fabric.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class GateFabric(Operation):
weights (tensor_like): Array of weights of shape ``(D, L, 2)``\,
where ``D`` is the number of gate fabric layers and ``L = N/2-1``
is the number of :math:`\hat{Q}(\theta, \phi)` gates per layer with N being the total number of qubits.
wires (Iterable): wires that the template acts on
init_state (tensor_like): init_state (tensor_like): iterable of shape ``(len(wires),)``\, representing the input Hartree-Fock state
wires (Iterable): wires that the template acts on.
init_state (tensor_like): iterable of shape ``(len(wires),)``\, representing the input Hartree-Fock state
in the Jordan-Wigner representation.
include_pi (boolean): If True, the optional constant :math:`\hat{\Pi}` gate is set to :math:`\text{OrbitalRotation}(\pi)`.
Default value is :math:`\hat{I}`.
Expand Down Expand Up @@ -228,8 +228,8 @@ def compute_decomposition(
weights (tensor_like): Array of weights of shape ``(D, L, 2)``,
where ``D`` is the number of gate fabric layers and ``L = N/2-1``
is the number of :math:`\hat{Q}(\theta, \phi)` gates per layer with N being the total number of qubits.
wires (Any or Iterable[Any]): wires that the operator acts on
init_state (tensor_like): init_state (tensor_like): iterable of shape ``(len(wires),)``\, representing the input Hartree-Fock state
wires (Any or Iterable[Any]): wires that the operator acts on.
init_state (tensor_like): iterable of shape ``(len(wires),)``\, representing the input Hartree-Fock state
in the Jordan-Wigner representation.
include_pi (boolean): If ``True``, the optional constant :math:`\hat{\Pi}` gate is set to :math:`\text{OrbitalRotation}(\pi)`.
Default value is :math:`\hat{I}`.
Expand Down

0 comments on commit 0dcba44

Please sign in to comment.