SMS: Software Virtualization and Resource Allocation in Quantum Networks