Skip to content

Commit

Permalink
short command
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Dec 16, 2024
1 parent b33ed35 commit 9a173f4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/qibo/models/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,17 +127,15 @@ class Circuit:
- ``nqubits`` and ``wire_names`` must be consistent with each other.
Example:
.. code-block:: python
Example::
from qibo import Circuit
from qibo import Circuit
# Every circuit initialization below is valid
circuit = Circuit(5) # Default wire names are [0, 1, 2, 3, 4]
circuit = Circuit(["A", "B", "C", "D", "E"])
circuit = Circuit(5, wire_names=["A", "B", "C", "D", "E"])
circuit = Circuit(wire_names=["A", "B", "C", "D", "E"])
# Every circuit initialization below is valid
circuit = Circuit(5) # Default wire names are [0, 1, 2, 3, 4]
circuit = Circuit(["A", "B", "C", "D", "E"])
circuit = Circuit(5, wire_names=["A", "B", "C", "D", "E"])
circuit = Circuit(wire_names=["A", "B", "C", "D", "E"])
Args:
nqubits (int | list, optional): Number of qubits in the circuit or a list of wire names.
Expand Down

0 comments on commit 9a173f4

Please sign in to comment.