Maximal entanglement velocity implies dual unitarity