a reconfigurable directional optical system comprises n ports that can be configured individually as inputs or outputs . a system of this kind comprises at least one optical device having unidirectional inputs and outputs the total number of which is equal to or less than n , and an n × n optical switch such that each of the ports can be coupled interchangeably either to one of the inputs or to one of the outputs of the optical device .