An approach for assisting in the generation of quantum source code. The approach may include receiving a quantum source code input with a specification of constraints of a quantum unit on which the quantum source code input is to be run, wherein the …