Layers¶
-
class
interlinq.objects.layer.
Layer
(operations: list = [])¶ Layer object which is a collection of operations to be applied on the qubits in the system.
-
add_operation
(operation)¶ Add a operation to the layer :param operation: Information about the operation to be added in the layer :type operation: Operation
-
add_operations
(operations: list)¶ Add multiple operations to the layer :param operations: List of Operation objects :type operations: list
-
control_gate_present
()¶ Check if a control gate is present in the layer between two different computing hosts
- Returns
- True if control gate is present between two different computing
hosts
- Return type
(bool)
-
property
operations
¶ Get the operations in the layer
- Returns
- List of Operation objects, which contains information about the operation to
be performed on the quantum circuit.
- Return type
(list)
-
remove_operation
(index: int)¶ Remove an operation from the layer.
- Parameters
index (int) – Index of the operation to be removed
-