Text this: Constructing a virtual two-qubit gate by sampling single-qubit operations