Platform¶
-
class
openql.openql.
Platform
(*args)¶ Platform class specifying the target platform to be used for compilation.
-
__init__
(*args)¶ - Constructs a Platform object.
Parameters: - arg1 (str) – name of the Platform
- arg2 (str) – name of the configuration file specifying the platform
Methods
__init__
(*args)Constructs a Platform object. get_qubit_number
()returns number of qubits in the platform. Attributes
config_file
name
platform
-
get_qubit_number
()¶ - returns number of qubits in the platform.
Parameters: None – Returns: number of qubits Return type: int
-