minor changes to complex prototype, primitive qubit support