qiskit/providers/basicaer/qasm_simulator.py
def _run_job(self, job_id, qobj):
        """Run experiments in qobj

        Args:
            job_id (str): unique id for the job.
            qobj (Qobj): job description

        Returns:
            Result: Result object
        """
        self._validate(qobj)
        result_list = []
        self._shots = qobj.config.shots
        self._memory = getattr(qobj.config, 'memory', False)
        self._qobj_config = qobj.config
        start = time.time()
        for experiment in qobj.experiments:
            result_list.append(self.run_experiment(experiment))
        end = time.time()
        result = {'backend_name': self.name(),
                  'backend_version': self._configuration.backend_version,
                  'qobj_id': qobj.qobj_id,
                  'job_id': job_id,
                  'results': result_list,
                  'status': 'COMPLETED',
                  'success': True,
                  'time_taken': (end - start),
                  'header': qobj.header.as_dict()}

        return Result.from_dict(result)
def _run_job(self, job_id, qobj):
        self._validate(qobj)
        result_list = []
        self._shots = qobj.config.shots
        self._memory = getattr(qobj.config, 'memory', False)
        self._qobj_config = qobj.config
        start = time.time()
        for experiment in qobj.experiments:
            result_list.append(self.run_experiment(experiment))
        end = time.time()
        result = {'backend_name': self.name(),
                  'backend_version': self._configuration.backend_version,
                  'qobj_id': qobj.qobj_id,
                  'job_id': job_id,
                  'results': result_list,
                  'status': 'COMPLETED',
                  'success': True,
                  'time_taken': (end - start),
                  'header': qobj.header.as_dict()}

        return Result.from_dict(result)
def _run_job ( self , job_id , qobj ) : self . _validate ( qobj ) result_list = [ ] self . _shots = qobj . config . shots self . _memory = getattr ( qobj . config , 'memory' , False ) self . _qobj_config = qobj . config start = time . time ( ) for experiment in qobj . experiments : result_list . append ( self . run_experiment ( experiment ) ) end = time . time ( ) result = { 'backend_name' : self . name ( ) , 'backend_version' : self . _configuration . backend_version , 'qobj_id' : qobj . qobj_id , 'job_id' : job_id , 'results' : result_list , 'status' : 'COMPLETED' , 'success' : True , 'time_taken' : ( end - start ) , 'header' : qobj . header . as_dict ( ) } return Result . from_dict ( result )
Run experiments in qobj

        Args:
            job_id (str): unique id for the job.
            qobj (Qobj): job description

        Returns:
            Result: Result object
Run experiments in qobj