@@ -245,7 +245,7 @@ def routed_circuit(self, circuit_kwargs: Optional[dict] = None):
245
245
return self ._routed_blocks .circuit (circuit_kwargs = circuit_kwargs )
246
246
247
247
def final_layout (self ):
248
- """Returns the final physical- logical qubits mapping."""
248
+ """Returns the final { logical: physical} qubits mapping."""
249
249
250
250
return {self .wire_names [i ]: self ._l2p [i ] for i in range (self .nqubits )}
251
251
@@ -338,7 +338,7 @@ def __call__(self, circuit: Circuit):
338
338
circuit (:class:`qibo.models.circuit.Circuit`): Circuit to be matched to hardware connectivity.
339
339
340
340
Returns:
341
- (:class:`qibo.models.circuit.Circuit`, dict): Routed circuit and final logical- physical qubit mapping.
341
+ (:class:`qibo.models.circuit.Circuit`, dict): Routed circuit and final { logical: physical} qubit mapping.
342
342
"""
343
343
assert_placement (circuit , self .connectivity )
344
344
self ._preprocessing (circuit = circuit )
@@ -519,7 +519,7 @@ def _update_front_layer(self):
519
519
520
520
def _preprocessing (self , circuit : Circuit ):
521
521
"""The following objects will be initialised:
522
- - circuit: class to represent circuit and to perform logical- physical qubit mapping.
522
+ - circuit: class to represent circuit and to perform { logical: physical} qubit mapping.
523
523
- _final_measurements: measurement gates at the end of the circuit.
524
524
- _front_layer: list containing the blocks to be executed.
525
525
@@ -629,7 +629,7 @@ def __call__(self, circuit: Circuit):
629
629
circuit (:class:`qibo.models.circuit.Circuit`): Circuit to be routed.
630
630
631
631
Returns:
632
- (:class:`qibo.models.circuit.Circuit`, dict): Routed circuit and final logical- physical qubit mapping.
632
+ (:class:`qibo.models.circuit.Circuit`, dict): Routed circuit and final { logical: physical} qubit mapping.
633
633
"""
634
634
assert_placement (circuit , self .connectivity )
635
635
self ._preprocessing (circuit = circuit )
@@ -669,7 +669,7 @@ def added_swaps(self):
669
669
670
670
def _preprocessing (self , circuit : Circuit ):
671
671
"""The following objects will be initialised:
672
- - circuit: class to represent circuit and to perform logical- physical qubit mapping.
672
+ - circuit: class to represent circuit and to perform { logical: physical} qubit mapping.
673
673
- _final_measurements: measurement gates at the end of the circuit.
674
674
- _dist_matrix: matrix reporting the shortest path lengh between all node pairs.
675
675
- _dag: direct acyclic graph of the circuit based on commutativity.
0 commit comments