Relation between persistent currents and the scattering matrix | Synapse