Polynomial time in BQP is not the same as P (i.e., you cannot run Shor's algorithm on a classical computer in polynomial time). AFAIU it is not yet known whether BQP includes NP problems or if it only includes P problems.