I have already run the circuit on the IBM Quantum simulators successfully. But, when I ran the same circuit on the real quantum device ibmq_16_melbourne, I got the error. The IBM website does have the 7001 code definition, but it is not specific enough to indicate what the bfunc means.

Could you please help interpret the code? More important, how can I avoid that to have a successful run?

Thanks.

• If it possible, then put your code here so we can see what you did and maybe someone can further assist you. Mar 27 at 4:16

A bfunc is a Boolean Function, as defined in the QObj Specification (page 20) and the error 7001 refers to Instruction {} is not supported.
In other words, the backend ibmq_16_melbourne does not support boolean functions.
Your circuit has, most likely, a classical conditional, something like if (c==0) h q[0]; in QASM or a circuit.h(qreg_q[0]).c_if(creg_c, 0) in Qiskit. Conditional are not currently (March 2021) supported by any of the IBM quantum hardware. Although, they supported in many simulators.