From 9a173f49ef0439897fd1cdc43c8349708882c92d Mon Sep 17 00:00:00 2001 From: Renato Mello Date: Mon, 16 Dec 2024 15:27:06 +0400 Subject: [PATCH] short command --- src/qibo/models/circuit.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/qibo/models/circuit.py b/src/qibo/models/circuit.py index af3c750bc2..597d0d2c9d 100644 --- a/src/qibo/models/circuit.py +++ b/src/qibo/models/circuit.py @@ -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.