Optimal control of two-level quantum systems | Synapse