SubtopologySelectionPass
- class SubtopologySelectionPass(block_size)[source]
Bases:
BasePassPass that selects necessary subtopologies from the model.
- __init__(block_size)[source]
Construct a SubtopologySelectionPass.
- Parameters:
block_size (
int) – The max block size to select subtopologies for.- Raises:
ValueError – If block_size is <= 1.
Attributes
The name of the pass.
Methods
execute(*args, **kwargs)Map a function over iterable arguments in parallel.
get_connectivity(_, data)Retrieve the current connectivity of the circuit.
get_model(_, data)Retrieve the machine model from the data dictionary.
get_placement(_, data)Retrieve the logical to physical qubit map from the data dictionary.
get_target(_, data)Retrieve the target from the data dictionary.
in_parallel(data)Return true if pass is being executed in a parallel.
run(circuit, data)Perform the pass's operation, see
BasePassfor more.