A graphene edge-mediated quantum gate