Greg Egan. It’s in his excellent short story collection “Axiomatic”.