Deterministic one-way logic gates on a cloud quantum computer