In Part I of this paper we formulated the problem of error detection with q
uantum codes on the depolarizing channel and gave an expression for the pro
bability of undetected error via the weight enumerators of the code. In thi
s part we show that there exist quantum codes whose probability of undetect
ed error falls exponentially with the length of the code and derive bounds
on this exponent, The lower (existence) bound is proved for stabilizer code
s by a counting argument for classical self-orthogonal quaternary codes. Up
per bounds are proved by linear programming. First we formulate two linear
programming problems that are convenient for the analysis of specific short
codes, Next we give a relaxed formulation of the problem in terms of optim
ization on the cone of polynomials in the Krawtchouk basis. We present two
general solutions of the problem, Together they give an upper bound on the
exponent of undetected error, The upper and lower asymptotic bounds coincid
e for a cel tain interval of code rates close to 1.