Change simulate_with_quantum to a void return.