Heisenberg-limited single-mode quantum metrology in a superconducting circuit