Process tomography of quantum memory in a Josephson-phase qubit coupled to a two-level state