You probably misapplied Ampere's law. This law is usually used to find magnetic field only in special cases when the contour integral can be found as a function of single field value based on symmetry.
Magnetic field of a circular current loop is not so simple and Ampere's law cannot be easily used to find it. In such cases, the method of choice is to use the Biot-Savart law (integrate the contributions to the field due to elements of the circuit) or find vector potential as a function of position and then derive magnetic field from it.