How to measure your custom gate