Only check memory requirements if gate not already in the cirtcuit
Only check memory requirements if gate not already in the cirtcuit

PierreSenellart/provsql,PierreSenellart/provsql,PierreSenellart/provsql,PierreSenellart/provsql