netqasm.sdk.network¶
-
class
netqasm.sdk.network.
NetworkInfo
¶ Bases:
object
Global information about the current quantum network environment.
This class is a container for static functions that provide information about the current network setting. Applications may use this information to e.g. obtain node IDs or map party names to nodes.
Concrete runtime contexts (like a simulator, or a real hardware setup) should override these methods to provide the information specific to that context.
-
abstract classmethod
get_node_id_for_app
(app_name)¶ Returns the node id for the app with the given name
- Parameters
app_name (
str
) –- Return type
int
-
abstract classmethod
get_node_name_for_app
(app_name)¶ Returns the node name for the app with the given name
- Parameters
app_name (
str
) –- Return type
str
-
abstract classmethod