Nonlinear bosonic Maxwell’s demon by coupling to qubits