Anomalous energy exchanges and Wigner-function negativities in a single-qubit gate