Optimal implementation of quantum gates with two controls | Synapse