src/quantuminspire/qiskit/backend_qx.py
def run(self, qobj: QasmQobj) -> QIJob:
        """ Submits a quantum job to the Quantum Inspire platform.

        Args:
            qobj: The quantum job with the Qiskit algorithm and quantum inspire backend.

        Returns:
            A job that has been submitted.
        """
        self.__validate_number_of_shots(qobj)
        number_of_shots = qobj.config.shots

        identifier = uuid.uuid1()
        project_name = 'qi-sdk-project-{}'.format(identifier)
        project = self.__api.create_project(project_name, number_of_shots, self.__backend)
        experiments = qobj.experiments
        job = QIJob(self, str(project['id']), self.__api)
        for experiment in experiments:
            self.__validate_number_of_clbits(experiment)
            full_state_projection = self.__validate_full_state_projection(experiment)
            if not full_state_projection:
                QuantumInspireBackend.__validate_unsupported_measurements(experiment)
            self._submit_experiment(experiment, number_of_shots, project=project,
                                    full_state_projection=full_state_projection)

        job.experiments = experiments
        return job
 Submits a quantum job to the Quantum Inspire platform.

        Args:
            qobj: The quantum job with the Qiskit algorithm and quantum inspire backend.

        Returns:
            A job that has been submitted.
        
Submits a quantum job to the Quantum Inspire platform.
Submits a quantum job to the Quantum Inspire platform .
def run(self, qobj: QasmQobj) -> QIJob:
        self.__validate_number_of_shots(qobj)
        number_of_shots = qobj.config.shots
        identifier = uuid.uuid1()
        project_name = 'qi-sdk-project-{}'.format(identifier)
        project = self.__api.create_project(project_name, number_of_shots, self.__backend)
        experiments = qobj.experiments
        job = QIJob(self, str(project['id']), self.__api)
        for experiment in experiments:
            self.__validate_number_of_clbits(experiment)
            full_state_projection = self.__validate_full_state_projection(experiment)
            if not full_state_projection:
                QuantumInspireBackend.__validate_unsupported_measurements(experiment)
            self._submit_experiment(experiment, number_of_shots, project=project,
                                    full_state_projection=full_state_projection)
        job.experiments = experiments
        return job
def run ( self , qobj : QasmQobj ) -> QIJob : self . __validate_number_of_shots ( qobj ) number_of_shots = qobj . config . shots identifier = uuid . uuid1 ( ) project_name = 'qi-sdk-project-{}' . format ( identifier ) project = self . __api . create_project ( project_name , number_of_shots , self . __backend ) experiments = qobj . experiments job = QIJob ( self , str ( project [ 'id' ] ) , self . __api ) for experiment in experiments : self . __validate_number_of_clbits ( experiment ) full_state_projection = self . __validate_full_state_projection ( experiment ) if not full_state_projection : QuantumInspireBackend . __validate_unsupported_measurements ( experiment ) self . _submit_experiment ( experiment , number_of_shots , project = project , full_state_projection = full_state_projection ) job . experiments = experiments return job
Submits a quantum job to the Quantum Inspire platform.
Submits a quantum job to the Quantum Inspire platform .
""" Submits a quantum job to the Quantum Inspire platform.

        Args:
            qobj: The quantum job with the Qiskit algorithm and quantum inspire backend.

        Returns:
            A job that has been submitted.
        """
A job that has been submitted.
A job that has been submitted .
self
qobj
QasmQobj
The quantum job with the Qiskit algorithm and quantum inspire backend.
The quantum job with the Qiskit algorithm and quantum inspire backend .