Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
f"from the backend type given: {backend_type['name']}. The experiment is run on backend "
f"{backend_type['name']}.")
qasm = qasm.lstrip()
qasm = re.sub(r'[ \t]*\n[ \t]*', r'\n', qasm)
asset_name = f'qi-sdk-asset-{identifier}'
asset = self._create_asset(asset_name, project, qasm)
if job_name is None:
job_name = f'qi-sdk-job-{identifier}'
if number_of_shots is None:
number_of_shots = backend_type['default_number_of_shots']
job = self._create_job(job_name, asset, number_of_shots, backend_type, user_data=user_data,
full_state_projection=full_state_projection)
return QuantumInspireJob(self, job['id'])