# Error while running the circuit on a real device on IBMQ

I have been trying to run a circuit on ibmq_16_melbourne. But the result shows ERROR_RUNNING_JOB. The run status says: 'Circuit runtime is greater than the device repetition rate [8020]'.

Here are a few circuit details:

Size (total number of gates): 14137
Depth: 7836
Qubits: 14
Shots: 64

Gate count: [('u1', 7506), ('cx', 5850), ('u2', 678), ('x', 73), ('cswap', 18), ('h', 6), ('measure', 6)]

It runs fine on the qasm_simulator. I could not find how to deal with this kind of error. Can some tell what does it mean and how to fix it?

If you have not already, I would suggest running it through the transpiler using a higher optimization level before you run it to see if this reduces the gate count. You can do this by doing execute(your_circuit, backend, optimization_level=3)
Alternatively, you can continue running the circuit on the simulator, but add a NoiseModel to make it more like a run on a real device. There is more information about how to do that here.