From the pseudogap metal to the Fermi liquid using ancilla qubits