Maxwell's demon assisted thermodynamic cycle in superconducting quantum circuits.