Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

to_component

to_component(string)[source]

Convert the input string to a DeviceComponent instance.

Parameters:

string (str) – String to be converted.

Returns:

A DeviceComponent instance.

Raises:

ValueError – If input string is not a valid device component.

Return type:

DeviceComponent