Skip to content

Commit

Permalink
Fix missing indentation and template functions not buildilng docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Arellano committed Oct 7, 2024
1 parent 29aa42b commit 502f7a4
Show file tree
Hide file tree
Showing 74 changed files with 759 additions and 768 deletions.
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 2_1:
.. code-block:: text
q_0: ─■──■─
│ │
q_1: ─■──■─
"""

from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_2_1():
"""
Clifford template 2_1:
.. code-block:: text
q_0: ─■──■─
│ │
q_1: ─■──■─
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_2_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 2_2:
.. code-block:: text
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_2_2():
"""
Clifford template 2_2:
.. code-block:: text
q_0: ──■────■──
┌─┴─┐┌─┴─┐
q_1: ┤ X ├┤ X ├
└───┘└───┘
"""
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_2_2():
"""
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
16 changes: 8 additions & 8 deletions qiskit/circuit/library/templates/clifford/clifford_2_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 2_3:
.. code-block:: text
┌───┐┌───┐
q_0: ┤ H ├┤ H ├
└───┘└───┘
"""

from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_2_3():
"""
Clifford template 2_3:
.. code-block:: text
┌───┐┌───┐
q_0: ┤ H ├┤ H ├
└───┘└───┘
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_2_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 2_4:
.. code-block:: text
q_0: ─X──X─
│ │
q_1: ─X──X─
"""

from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_2_4():
"""
Clifford template 2_4:
.. code-block:: text
q_0: ─X──X─
│ │
q_1: ─X──X─
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_3_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 3_1:
.. code-block:: text
┌───┐┌───┐┌───┐
q_0: ┤ S ├┤ S ├┤ Z ├
└───┘└───┘└───┘
"""

from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_3_1():
"""
Clifford template 3_1:
.. code-block:: text
┌───┐┌───┐┌───┐
q_0: ┤ S ├┤ S ├┤ Z ├
└───┘└───┘└───┘
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_4_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 4_1:
.. code-block:: text
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_4_1():
"""
Clifford template 4_1:
.. code-block:: text
┌───┐
q_0: ──■──┤ X ├──■───X─
┌─┴─┐└─┬─┘┌─┴─┐ │
q_1: ┤ X ├──■──┤ X ├─X─
└───┘ └───┘
"""
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_4_1():
"""
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_4_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 4_2:
.. code-block:: text
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_4_2():
"""
Clifford template 4_2:
.. code-block:: text
q_0: ───────■────────■─
┌───┐┌─┴─┐┌───┐ │
q_1: ┤ H ├┤ X ├┤ H ├─■─
└───┘└───┘└───┘
"""
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_4_2():
"""
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_4_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 4_3:
.. code-block:: text
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_4_3():
"""
Clifford template 4_3:
.. code-block:: text
┌───┐ ┌─────┐
q_0: ┤ S ├──■──┤ SDG ├──■──
└───┘┌─┴─┐└─────┘┌─┴─┐
q_1: ─────┤ X ├───────┤ X ├
└───┘ └───┘
"""
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_4_3():
"""
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_4_4.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,20 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 4_4:
.. code-block:: text
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_4_4():
"""
Clifford template 4_4:
.. code-block:: text
┌───┐ ┌─────┐
q_0: ┤ S ├─■─┤ SDG ├─■─
└───┘ │ └─────┘ │
q_1: ──────■─────────■─
"""
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_4_4():
"""
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_5_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 5_1:
.. code-block:: text
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_5_1():
"""
Clifford template 5_1:
.. code-block:: text
q_0: ──■─────────■─────────■──
┌─┴─┐ ┌─┴─┐ │
q_1: ┤ X ├──■──┤ X ├──■────┼──
└───┘┌─┴─┐└───┘┌─┴─┐┌─┴─┐
q_2: ─────┤ X ├─────┤ X ├┤ X ├
└───┘ └───┘└───┘
"""
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_5_1():
"""
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_6_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 6_1:
.. code-block:: text
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_6_1():
"""
Clifford template 6_1:
.. code-block:: text
┌───┐ ┌───┐┌───┐
q_0: ┤ H ├──■──┤ H ├┤ X ├
├───┤┌─┴─┐├───┤└─┬─┘
q_1: ┤ H ├┤ X ├┤ H ├──■──
└───┘└───┘└───┘
"""
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_6_1():
"""
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_6_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 6_2:
.. code-block:: text
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_6_2():
"""
Clifford template 6_2:
.. code-block:: text
┌───┐
q_0: ┤ S ├──■───────────■───■─
├───┤┌─┴─┐┌─────┐┌─┴─┐ │
q_1: ┤ S ├┤ X ├┤ SDG ├┤ X ├─■─
└───┘└───┘└─────┘└───┘
"""
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_6_2():
"""
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
17 changes: 8 additions & 9 deletions qiskit/circuit/library/templates/clifford/clifford_6_3.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,21 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

"""
Clifford template 6_3:
.. code-block:: text
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_6_3():
"""
Clifford template 6_3:
.. code-block:: text
┌───┐ ┌───┐
q_0: ─X──■─┤ H ├──■──┤ X ├─────
│ │ └───┘┌─┴─┐└─┬─┘┌───┐
q_1: ─X──■──────┤ X ├──■──┤ H ├
└───┘ └───┘
"""
from qiskit.circuit.quantumcircuit import QuantumCircuit


def clifford_6_3():
"""
Returns:
QuantumCircuit: template as a quantum circuit.
"""
Expand Down
Loading

0 comments on commit 502f7a4

Please sign in to comment.