Quantum states obey an asymptotic no-cloning theorem, stating that no deterministic machine can reliably replicate generic sequences of identically prepared pure states. In stark contrast, we show that generic sequences of unitary gates can be replicated deterministically at nearly quadratic rates, with an error vanishing on most inputs except for an exponentially small fraction. The result is not in contradiction with the no-cloning theorem, since the impossibility of deterministically transforming pure states into unitary gates prevents the application of the gate replication protocol to states. In addition to gate replication, we show that N parallel uses of a completely unknown unitary gate can be compressed into a single gate acting on O(log N ) qubits, leading to an exponential reduction of the amount of quantum communication needed to implement the gate remotely.A striking feature of quantum theory is the impossibility of constructing a universal copy machine, which takes as input a quantum system in an arbitrary pure state and produces as output a number of exact replicas [1,2]. Such an impossibility has major implications for quantum error correction [3,4] and cryptographic protocols such as key distribution [5,6], quantum secret sharing [7,8], and quantum money [9][10][11][12].The impossibility of universal copy machines is a hard fact: it equally affects deterministic [13][14][15][16] and probabilistic machines [17][18][19], whose performances coincide with those of deterministic machines when it comes to copying completely unknown pure states [18,19]. A similar no-go result holds when the universal machine is presented a large number N of identical copies and is required to produce a larger number M > N of approximate replicas: if the replicas have non-vanishing overlap with the desired M -copy state, then the number of extra copies must be negligible compared to N [15]. We refer to this fact as the asymptotic no-cloning theorem, expressing the fact that independent and identically distributed (i.i.d.) sequences of pure states cannot be stretched by any significant amount. The asymptotic no-cloning theorem holds also for non-universal machines designed to copy continuous sets of states, provided that such machines work deterministically [19].The impossibility of universal state cloning suggests similar results for quantum gates. Along this line, a nogo theorem for universal gate cloning was proven in Ref. [20], showing that no quantum network can perfectly simulate two uses of an unknown unitary gate by querying it only once. Optimal networks that approximate universal gate cloning were studied in Refs. [20,21]. Very recently, Dür and coauthors [22] considered a non-universal setup designed to clone phase gates, i. e. gates generated by time evolution with a known Hamiltonian. In this scenario, they devised a quantum network that approximately simulates up to N 2 uses of an unknown phase gate while using it only N times, with vanishing error in the large N limit. Such a result establishes the possibi...