Quantum cosmological consistency condition for inflation