A compositional approach to quantum functions | Synapse