# Transpiler fails after 1000 iterations

I'm transpiling a set of quantum circuits using ibmq_5_yorktown. However, as the number of circuits gets larger, it shows me the following error message:

TranspilerError: 'Maximum iteration reached. max_iteration=1000'


How can I fix this issue? Is it still possible for me to transpile more than 1,000 circuits? Thanks!

• Not sure what this error was... I ran into this same error earlier but rerun my experiement and everything was fine. I haven't had the chance to look into this in details but I created a set of circuits with 1100 circuits and transpiled with no problem... of course, running it on the device would be an issue since you can't submit more than 900 onto the hardware. Feb 16 '21 at 4:43
• @KAJ226 Thanks for the comment! Which quantum computer did you use?
– ZR-
Feb 16 '21 at 5:56
• I used ibmq_athens Feb 16 '21 at 6:01
• It seems like a known problem github.com/Qiskit/qiskit-terra/issues/5832 . The problems is not the amount of circuits, but the fact that the optimization iteration is looping without control. Feb 16 '21 at 7:18
• can you tell us more about the circuit and the backend you are running? Feb 19 '21 at 12:16