parameters: (self, hardware: Union[ThreadManager, SynchronousAdapter])
docstring: Connect to the hardware.
docstring_summary: Connect to the hardware.
docstring_tokens: Connect to the hardware .
function: def connect(self, hardware: Union[ThreadManager, SynchronousAdapter]) -> None:
          """Connect to the hardware."""
          self._hw_manager.set_hw(hardware)
          self._hw_manager.hardware.cache_instruments()
function_tokens: def connect ( self , hardware : Union [ ThreadManager , SynchronousAdapter ] ) -> None : self . _hw_manager . set_hw ( hardware ) self . _hw_manager . hardware . cache_instruments ( )