작업
작업 실행
Qiskit Runtime 프리미티브를 호출합니다. 반환된 작업 ID를 기록해 두세요. 작업의 상태를 확인하고 결과를 검토하는 데 사용합니다. 이 요청은 사용자당 분당 5개 작업으로 제한됩니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.job.create
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.job.create
입력
이름, 유형 | 설명 |
|---|---|
program_id string | 실행할 프로그램의 ID |
backend string | 프로그램을 실행할 백엔드를 식별하는 이름입니다. |
runtime string | 프로그램을 실행할 때 사용할 이미지의 이름과 태그( IBM Quantum 채널 사용자만 해당). "name:tag" 패턴을 따라야 합니다. |
tags string[] | 작업 또는 프로그램 태그 목록 |
log_level string | 프로그램의 로깅 수준 가능한 값: criticalerrorwarninginfodebug |
cost integer | 완료하는 데 걸리는 예상 시간(초)으로 작업 비용입니다. 프로그램 비용을 초과해서는 안 됩니다. 제공된 값이 최대값을 초과하는 경우 해당 값으로 제한됩니다. 최소값: 0최대값: 10800 |
session_id string | 작업이 속한 세션의 식별자 |
calibration_id string | 작업에 사용된 캘리브레이션의 ID입니다 |
params one of | |
SamplerV2 입력 object | SamplerV2 API 호출의 입력값 |
EstimatorV2 입력 object | EstimatorV2 API 호출의 입력값 |
NoiseLearner 입력 object | NoiseLearner API 호출의 입력값 |
v0.1 의 입력 object | Executor 프로그램의 입력값을 설명하는 모델. |
v0.2 의 입력 object | Executor 프로그램의 입력값을 설명하는 모델. |
집행인 v1.0 ParamsModel object | Executor 프로그램의 입력값을 설명하는 모델. |
유언집행인 v1.1 ParamsModel object | Executor 프로그램의 입력값을 설명하는 모델. |
유언집행인 v2.0 ParamsModel object | Executor 프로그램의 입력값을 설명하는 모델. |
NoiseLearnerV3 v0.1 입력 object | Noise Learner V3 프로그램의 입력값을 설명하는 모델. |
NoiseLearnerV3 v0.2 입력 object | Noise Learner V3 프로그램의 입력값을 설명하는 모델. |
NoiseLearnerV3 v0.3 ParamsModel object | Noise Learner V3 프로그램의 입력값을 설명하는 모델. |
private boolean | True로 설정하면 입력 매개변수가 반환되지 않으며 결과를 한 번만 읽을 수 있습니다. 작업이 완료되면 입력 매개변수가 서비스에서 삭제됩니다. 결과를 읽은 후에는 서비스에서 삭제됩니다. False로 설정하면 입력 매개변수와 결과가 API의 표준 보존 동작을 따릅니다. 값이 참인 경우에만 응답에 반환되며, 그렇지 않으면 생략됩니다. |
인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs
curl -X POST \
'https://quantum.cloud.ibm.com/api/v1/jobs' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Service-CRN: YOUR-SERVICE-CRN' \
-H 'IBM-API-Version: 2024-01-01' 인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs
import requests
response = requests.request(
"POST",
"https://quantum.cloud.ibm.com/api/v1/jobs",
headers={
"Accept": "application/json",
"IBM-API-Version": "2024-01-01",
"Authorization": "Bearer YOUR-TOKEN",
"Service-CRN": "YOUR-SERVICE-CRN"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 200 | 확인 |
| 400 | 잘못된 요청 |
| 401 | 권한 없음 |
| 403 | 금지됨 |
| 404 | 찾을 수 없음 |
| 409 | 사용량이 인스턴스 제한을 초과함 |
{
"id": "c5dge2d3rn7breq27i9g",
"backend": "ibm_backend",
"private": true
}{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "작업 ID"
},
"backend": {
"type": "string",
"description": "작업을 실행하기 위해 선택한 백엔드"
},
"session_id": {
"type": "string",
"description": "작업과 연결된 세션의 ID"
},
"private": {
"type": "boolean",
"description": "True로 설정하면 입력 매개변수가 반환되지 않으며 결과를 한 번만 읽을 수 있습니다. 작업이 완료되면 입력 매개변수가 서비스에서 삭제됩니다. 결과를 읽은 후에는 서비스에서 삭제됩니다. False로 설정하면 입력 매개변수와 결과가 API의 표준 보존 동작을 따릅니다. 값이 참인 경우에만 응답에 반환되며, 그렇지 않으면 생략됩니다."
},
"calibration_id": {
"type": "string",
"description": "작업에 사용된 캘리브레이션의 ID입니다",
"pattern": "^.*$",
"minLength": 1,
"maxLength": 100
}
},
"description": "작업 생성 시 응답",
"required": [
"id",
"backend"
]
}작업 나열
실행한 양자 프로그램 작업을 나열합니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.job.read
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.job.read
입력
이름, 유형 | 설명 |
|---|---|
limit integer | 한 번에 반환할 결과의 수입니다. 제공된 값이 실행 가능한 범위를 벗어나는 경우 오류가 발생하지 않고 기본값이 대신 사용됩니다. 기본값: 200최소값: 1최대값: 200 |
offset integer | 작업 목록을 검색할 때 상쇄할 결과의 수입니다. 제공된 값이 실행 가능한 범위를 벗어나는 경우 오류가 발생하지 않고 기본값이 대신 사용됩니다. 기본값: 0최소값: 0최대값: 2147483647 |
pending boolean | 참이면 '대기 중' 및 '실행 중' 작업을 반환합니다. 거짓이면 '완료됨', '취소됨', '실패됨' 작업을 반환합니다. |
program string | 프로그램 ID로 작업 필터링 |
backend string | 작업을 필터링하는 백엔드 |
created_after string | 필터 후 생성된 작업 |
created_before string | 필터 전에 생성된 작업 |
sort string | 생성 시간 ASC 또는 DESC(기본값)를 기준으로 작업 정렬 |
tags string[] | 작업 필터링할 태그 |
session_id string | 작업을 필터링하는 세션 ID |
exclude_params boolean | 응답에서 작업 매개변수 제외 기본값: true |
인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs
curl -X GET \
'https://quantum.cloud.ibm.com/api/v1/jobs' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Service-CRN: YOUR-SERVICE-CRN' \
-H 'IBM-API-Version: 2024-01-01' 인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs
import requests
response = requests.request(
"GET",
"https://quantum.cloud.ibm.com/api/v1/jobs",
headers={
"Accept": "application/json",
"IBM-API-Version": "2024-01-01",
"Authorization": "Bearer YOUR-TOKEN",
"Service-CRN": "YOUR-SERVICE-CRN"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 200 | 확인 |
| 400 | 잘못된 요청 |
| 401 | 권한 없음 |
| 403 | 금지됨 |
| 404 | 찾을 수 없음 |
{
"jobs": [
{
"id": "c5dge2d3rn7breq27i9g",
"backend": "ibmq_qasm_simulator",
"cost": 0,
"state": {
"status": "Completed",
"reason": ""
},
"status": "Completed",
"params": {
"iterations": 3
},
"program": {
"id": "myprogram-abcdef12345"
},
"created": "2021-10-04T13:52:09.456851Z",
"runtime": "ntc-provider-primitives:latest",
"tags": [
"tag1",
"tag2",
"tag3",
"tag4"
],
"session_id": "c5dge2d3rn7breq27i9g",
"usage": {
"qpu_charge_time_seconds": 20,
"status": "complete"
},
"private": true,
"estimated_running_time_seconds": 30.5,
"calibration_id": "fez-ac-tls-test"
},
{
"id": "c2gfe1m3ln7breq27i6e",
"backend": "ibmq_qasm_simulator",
"cost": 0,
"state": {
"status": "Completed",
"reason": ""
},
"status": "Completed",
"params": {
"iterations": 3
},
"program": {
"id": "myprogram-abcdef12345"
},
"created": "2021-10-05T13:52:09.456851Z",
"runtime": "ntc-provider-primitives:latest",
"tags": [
"tag1",
"tag2",
"tag3",
"tag4"
],
"session_id": "c1mre2f3pn9breq18i4g"
}
],
"count": 2,
"limit": 2,
"offset": 0
}{
"title": "JobsResponse",
"type": "object",
"description": "작업 수집 응답",
"properties": {
"jobs": {
"description": "작업 목록",
"type": "array",
"minItems": 0,
"maxItems": 2147483647,
"items": {
"title": "JobResponse",
"type": "object",
"description": "직업",
"properties": {
"id": {
"type": "string",
"description": "작업에 할당된 식별자",
"pattern": "^[A-Za-z0-9_-]+$"
},
"backend": {
"type": "string",
"description": "\\*\\*경고:\\*\\* 현재 이 매개변수는 요청에 필수 사항은 아니지만 지정하는 것을 적극 권장합니다. 다른 명령어 집합을 가진 백엔드에서 ISA 회로를 실행하면 오류가 발생합니다. 백엔드 매개변수는 향후 릴리스에서 필수 항목으로 추가될 예정입니다.\n\n프로그램을 실행할 백엔드입니다. 백엔드를 지정하지 않으면 액세스 권한이 있는 가장 짧은 대기열이 있는 백엔드로 작업이 전송됩니다.",
"pattern": "^.*$"
},
"state": {
"title": "JobState",
"type": "object",
"description": "현재 작업 상태",
"properties": {
"status": {
"type": "string",
"description": "작업의 현재 상태입니다.",
"enum": [
"Queued",
"Running",
"Completed",
"Cancelled",
"Failed"
]
},
"reason": {
"type": "string",
"description": "현재 상태의 이유"
},
"reason_code": {
"type": "integer",
"format": "int32",
"minimum": 1000,
"maximum": 9999,
"description": "현재 상태에 대한 사유 코드"
},
"reason_solution": {
"type": "string",
"description": "장애 발생 시 사용자가 취할 수 있는 다음 단계"
}
},
"required": [
"status"
]
},
"status": {
"title": "JobStatus",
"type": "string",
"description": "작업의 현재 상태입니다.",
"enum": [
"Queued",
"Running",
"Completed",
"Cancelled",
"Cancelled - Ran too long",
"Failed"
]
},
"params": {
"type": "object",
"additionalProperties": true,
"description": "작업 실행에 사용되는 매개변수"
},
"program": {
"type": "object",
"description": "작업과 관련된 프로그램",
"properties": {
"id": {
"type": "string",
"description": "실행된 프로그램의 식별자",
"pattern": "^.*$",
"minLength": 1,
"maxLength": 1000000
}
},
"required": [
"id"
]
},
"created": {
"type": "string",
"description": "작업이 생성된 시점의 UTC 타임스탬프",
"format": "date-time",
"pattern": "^[0-9TZt:\\-+./*]+$"
},
"runtime": {
"type": "string",
"description": "프로그램 실행 시 사용할 이미지의 이름 및 태그( IBM Quantum 채널 사용자만 해당)"
},
"cost": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 10800,
"description": "완료하는 데 걸리는 예상 시간(초)으로 작업 비용입니다. 프로그램 비용을 초과해서는 안 됩니다. 제공된 값이 최대값을 초과하는 경우 해당 값으로 제한됩니다."
},
"tags": {
"title": "태그",
"description": "작업 또는 프로그램 태그 목록",
"type": "array",
"minItems": 0,
"maxItems": 8,
"items": {
"type": "string",
"pattern": "^.*$",
"minLength": 0,
"maxLength": 86
}
},
"remote_storage": {
"allOf": [
{
"allOf": [
{
"oneOf": [
{
"type": "object",
"description": "데이터가 저장된 위치 또는 IBM Cloud Object Storage 버킷에 저장될 원격 저장소 메타데이터. 기본 원격 저장 옵션에서 허용되고 정의된 경우 필드별 오브젝트에서 필수 필드를 생략할 수 있습니다.",
"properties": {
"type": {
"type": "string",
"enum": [
"ibmcloud_cos"
],
"default": "ibmcloud_cos"
},
"region": {
"type": "string",
"example": "us-east",
"description": "IBM Cloud Object Storage 에서 정의한 지역, 지역 간 또는 단일 데이터 센터( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )",
"pattern": "^[a-zA-Z-]+$"
},
"region_type": {
"type": "string",
"enum": [
"regional",
"cross-region",
"single-site"
]
},
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대해 완전히 지정된 CRN",
"type": "string",
"example": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷에 있는 개체의 이름/ID입니다. 기본 원격 저장소 옵션에는 *지정되지 않을* 수 있습니다.",
"type": "string"
}
},
"required": [
"object_name",
"bucket_crn",
"region",
"region_type"
]
}
],
"discriminator": {
"propertyName": "type"
}
},
{
"description": "입력 데이터가 저장되는 위치와 출력 데이터가 저장되어야 하는 위치에 대한 기본 원격 저장 옵션"
}
]
},
{
"title": "RemoteStorage",
"description": "(채널 파트너 요금제를 사용하는 Qiskit Runtime 인스턴스에만 활성화됨) 작업 매개변수가 원격으로 저장되는 위치에 대한 메타데이터 및 연결 정보 및/또는 결과, 로그, 트랜스파일된 회로 등을 저장할 위치에 대한 메타데이터 및 연결 정보 생략된 속성 는 기본 원격 저장소 옵션에서 상속됩니다.\n예를 들어 다음 두 개체는 동등한 개체입니다:\n\n```\n{\n \"type\": \"ibmcloud_cos\",\n \"region\": \"us-east\",\n \"region_type\": \"regional\",\n \"bucket_crn\": \"crn\",\n \"job_params\": {\n \"object_name\": \"my-object\"\n }\n}\n```\n\n```\n{\n \"type\": \"ibmcloud_cos\",\n \"region\": \"us-east\",\n \"region_type\": \"regional\",\n \"bucket_crn\": \"crn\",\n \"job_params\": {\n \"type\": \"ibmcloud_cos\",\n \"region\": \"us-east\",\n \"region_type\": \"regional\",\n \"bucket_crn\": \"crn\",\n \"object_name\": \"my-object\"\n }\n}\n```",
"properties": {
"job_params": {
"allOf": [
{
"oneOf": [
{
"type": "object",
"description": "데이터가 저장된 위치 또는 IBM Cloud Object Storage 버킷에 저장될 원격 저장소 메타데이터. 기본 원격 저장 옵션에서 허용되고 정의된 경우 필드별 오브젝트에서 필수 필드를 생략할 수 있습니다.",
"properties": {
"type": {
"type": "string",
"enum": [
"ibmcloud_cos"
],
"default": "ibmcloud_cos"
},
"region": {
"type": "string",
"example": "us-east",
"description": "IBM Cloud Object Storage 에서 정의한 지역, 지역 간 또는 단일 데이터 센터( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )",
"pattern": "^[a-zA-Z-]+$"
},
"region_type": {
"type": "string",
"enum": [
"regional",
"cross-region",
"single-site"
]
},
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대해 완전히 지정된 CRN",
"type": "string",
"example": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷에 있는 개체의 이름/ID입니다. 기본 원격 저장소 옵션에는 *지정되지 않을* 수 있습니다.",
"type": "string"
}
},
"required": [
"object_name",
"bucket_crn",
"region",
"region_type"
]
}
],
"discriminator": {
"propertyName": "type"
}
},
{
"description": "사용자가 작업 매개변수를 제공한 위치(생략된 속성은 기본 원격 저장 옵션에서 상속됨)"
}
]
},
"results": {
"allOf": [
{
"oneOf": [
{
"type": "object",
"description": "데이터가 저장된 위치 또는 IBM Cloud Object Storage 버킷에 저장될 원격 저장소 메타데이터. 기본 원격 저장 옵션에서 허용되고 정의된 경우 필드별 오브젝트에서 필수 필드를 생략할 수 있습니다.",
"properties": {
"type": {
"type": "string",
"enum": [
"ibmcloud_cos"
],
"default": "ibmcloud_cos"
},
"region": {
"type": "string",
"example": "us-east",
"description": "IBM Cloud Object Storage 에서 정의한 지역, 지역 간 또는 단일 데이터 센터( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )",
"pattern": "^[a-zA-Z-]+$"
},
"region_type": {
"type": "string",
"enum": [
"regional",
"cross-region",
"single-site"
]
},
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대해 완전히 지정된 CRN",
"type": "string",
"example": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷에 있는 개체의 이름/ID입니다. 기본 원격 저장소 옵션에는 *지정되지 않을* 수 있습니다.",
"type": "string"
}
},
"required": [
"object_name",
"bucket_crn",
"region",
"region_type"
]
}
],
"discriminator": {
"propertyName": "type"
}
},
{
"description": "작업 결과를 저장할 위치(생략된 속성은 기본 원격 저장 옵션에서 상속됨)"
}
]
},
"logs": {
"allOf": [
{
"oneOf": [
{
"type": "object",
"description": "데이터가 저장된 위치 또는 IBM Cloud Object Storage 버킷에 저장될 원격 저장소 메타데이터. 기본 원격 저장 옵션에서 허용되고 정의된 경우 필드별 오브젝트에서 필수 필드를 생략할 수 있습니다.",
"properties": {
"type": {
"type": "string",
"enum": [
"ibmcloud_cos"
],
"default": "ibmcloud_cos"
},
"region": {
"type": "string",
"example": "us-east",
"description": "IBM Cloud Object Storage 에서 정의한 지역, 지역 간 또는 단일 데이터 센터( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )",
"pattern": "^[a-zA-Z-]+$"
},
"region_type": {
"type": "string",
"enum": [
"regional",
"cross-region",
"single-site"
]
},
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대해 완전히 지정된 CRN",
"type": "string",
"example": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷에 있는 개체의 이름/ID입니다. 기본 원격 저장소 옵션에는 *지정되지 않을* 수 있습니다.",
"type": "string"
}
},
"required": [
"object_name",
"bucket_crn",
"region",
"region_type"
]
}
],
"discriminator": {
"propertyName": "type"
}
},
{
"description": "작업 로그가 저장될 위치(생략된 속성은 기본 원격 저장 옵션에서 상속됨)"
}
]
}
},
"required": [
"job_params",
"results"
]
}
]
},
"session_id": {
"type": "string",
"description": "작업이 속한 세션의 식별자"
},
"user_id": {
"type": "string",
"description": "작업을 제출한 사용자의 ID"
},
"usage": {
"title": "사용법",
"description": "사용량 메트릭",
"type": "object",
"properties": {
"qpu_charge_time_seconds": {
"type": "number",
"description": "초 단위의 리소스 사용량. 이 값은 용량 사용량을 계산하는 데 사용됩니다.",
"minimum": 0
},
"status": {
"title": "BillingStatus",
"type": "string",
"description": "청구 데이터의 완전성 현황",
"enum": [
"pending",
"complete"
]
}
}
},
"private": {
"type": "boolean",
"description": "True로 설정하면 입력 매개변수가 반환되지 않으며 결과를 한 번만 읽을 수 있습니다. 작업이 완료되면 입력 매개변수가 서비스에서 삭제됩니다. 결과를 읽은 후에는 서비스에서 삭제됩니다. False로 설정하면 입력 매개변수와 결과가 API의 표준 보존 동작을 따릅니다. 값이 참인 경우에만 응답에 반환되며, 그렇지 않으면 생략됩니다."
},
"estimated_running_time_seconds": {
"type": "number",
"format": "double",
"description": "예상 사용량(초)"
},
"calibration_id": {
"type": "string",
"description": "작업에 사용된 캘리브레이션의 ID입니다"
}
},
"required": [
"id",
"created",
"program",
"state",
"status",
"cost"
]
}
},
"count": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 2147483647,
"description": "사용자의 총 작업 수"
},
"offset": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 2147483647,
"description": "페이지 매김된 결과가 반환되는 오프셋"
},
"limit": {
"type": "integer",
"format": "int32",
"minimum": 1,
"maximum": 200,
"description": "페이지가 지정된 응답에서 반환되는 최대 결과 수"
}
},
"required": [
"limit",
"offset",
"jobs"
]
}작업 세부 정보 나열
지정된 퀀텀 프로그램 작업에 대한 세부 정보를 나열합니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.job.read
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.job.read
입력
이름, 유형 | 설명 |
|---|---|
id 필수 string | 기존 작업의 식별자 |
이름, 유형 | 설명 |
|---|---|
exclude_params boolean | 응답에서 작업 매개변수 제외 기본값: false |
인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}
curl -X GET \
'https://quantum.cloud.ibm.com/api/v1/jobs/{id}' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Service-CRN: YOUR-SERVICE-CRN' \
-H 'IBM-API-Version: 2024-01-01' 인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}
import requests
response = requests.request(
"GET",
"https://quantum.cloud.ibm.com/api/v1/jobs/{id}",
headers={
"Accept": "application/json",
"IBM-API-Version": "2024-01-01",
"Authorization": "Bearer YOUR-TOKEN",
"Service-CRN": "YOUR-SERVICE-CRN"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 200 | 확인 |
| 401 | 권한 없음 |
| 403 | 금지됨 |
| 404 | 찾을 수 없음 |
{
"id": "c5dge2d3rn7breq27i9g",
"backend": "ibmq_qasm_simulator",
"cost": 0,
"state": {
"status": "Completed",
"reason": ""
},
"status": "Completed",
"params": {
"iterations": 3
},
"program": {
"id": "myprogram-abcdef12345"
},
"created": "2021-10-04T13:52:09.456851Z",
"runtime": "ntc-provider-primitives:latest",
"tags": [
"tag1",
"tag2",
"tag3",
"tag4"
],
"session_id": "c5dge2d3rn7breq27i9g",
"private": true,
"estimated_running_time_seconds": 30.5,
"calibration_id": "fez-ac-tls-test"
}{
"title": "JobResponse",
"type": "object",
"description": "직업",
"properties": {
"id": {
"type": "string",
"description": "작업에 할당된 식별자",
"pattern": "^[A-Za-z0-9_-]+$"
},
"backend": {
"type": "string",
"description": "\\*\\*경고:\\*\\* 현재 이 매개변수는 요청에 필수 사항은 아니지만 지정하는 것을 적극 권장합니다. 다른 명령어 집합을 가진 백엔드에서 ISA 회로를 실행하면 오류가 발생합니다. 백엔드 매개변수는 향후 릴리스에서 필수 항목으로 추가될 예정입니다.\n\n프로그램을 실행할 백엔드입니다. 백엔드를 지정하지 않으면 액세스 권한이 있는 가장 짧은 대기열이 있는 백엔드로 작업이 전송됩니다.",
"pattern": "^.*$"
},
"state": {
"title": "JobState",
"type": "object",
"description": "현재 작업 상태",
"properties": {
"status": {
"type": "string",
"description": "작업의 현재 상태입니다.",
"enum": [
"Queued",
"Running",
"Completed",
"Cancelled",
"Failed"
]
},
"reason": {
"type": "string",
"description": "현재 상태의 이유"
},
"reason_code": {
"type": "integer",
"format": "int32",
"minimum": 1000,
"maximum": 9999,
"description": "현재 상태에 대한 사유 코드"
},
"reason_solution": {
"type": "string",
"description": "장애 발생 시 사용자가 취할 수 있는 다음 단계"
}
},
"required": [
"status"
]
},
"status": {
"title": "JobStatus",
"type": "string",
"description": "작업의 현재 상태입니다.",
"enum": [
"Queued",
"Running",
"Completed",
"Cancelled",
"Cancelled - Ran too long",
"Failed"
]
},
"params": {
"type": "object",
"additionalProperties": true,
"description": "작업 실행에 사용되는 매개변수"
},
"program": {
"type": "object",
"description": "작업과 관련된 프로그램",
"properties": {
"id": {
"type": "string",
"description": "실행된 프로그램의 식별자",
"pattern": "^.*$",
"minLength": 1,
"maxLength": 1000000
}
},
"required": [
"id"
]
},
"created": {
"type": "string",
"description": "작업이 생성된 시점의 UTC 타임스탬프",
"format": "date-time",
"pattern": "^[0-9TZt:\\-+./*]+$"
},
"runtime": {
"type": "string",
"description": "프로그램 실행 시 사용할 이미지의 이름 및 태그( IBM Quantum 채널 사용자만 해당)"
},
"cost": {
"type": "integer",
"format": "int32",
"minimum": 0,
"maximum": 10800,
"description": "완료하는 데 걸리는 예상 시간(초)으로 작업 비용입니다. 프로그램 비용을 초과해서는 안 됩니다. 제공된 값이 최대값을 초과하는 경우 해당 값으로 제한됩니다."
},
"tags": {
"title": "태그",
"description": "작업 또는 프로그램 태그 목록",
"type": "array",
"minItems": 0,
"maxItems": 8,
"items": {
"type": "string",
"pattern": "^.*$",
"minLength": 0,
"maxLength": 86
}
},
"remote_storage": {
"allOf": [
{
"allOf": [
{
"oneOf": [
{
"type": "object",
"description": "데이터가 저장된 위치 또는 IBM Cloud Object Storage 버킷에 저장될 원격 저장소 메타데이터. 기본 원격 저장 옵션에서 허용되고 정의된 경우 필드별 오브젝트에서 필수 필드를 생략할 수 있습니다.",
"properties": {
"type": {
"type": "string",
"enum": [
"ibmcloud_cos"
],
"default": "ibmcloud_cos"
},
"region": {
"type": "string",
"example": "us-east",
"description": "IBM Cloud Object Storage 에서 정의한 지역, 지역 간 또는 단일 데이터 센터( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )",
"pattern": "^[a-zA-Z-]+$"
},
"region_type": {
"type": "string",
"enum": [
"regional",
"cross-region",
"single-site"
]
},
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대해 완전히 지정된 CRN",
"type": "string",
"example": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷에 있는 개체의 이름/ID입니다. 기본 원격 저장소 옵션에는 *지정되지 않을* 수 있습니다.",
"type": "string"
}
},
"required": [
"object_name",
"bucket_crn",
"region",
"region_type"
]
}
],
"discriminator": {
"propertyName": "type"
}
},
{
"description": "입력 데이터가 저장되는 위치와 출력 데이터가 저장되어야 하는 위치에 대한 기본 원격 저장 옵션"
}
]
},
{
"title": "RemoteStorage",
"description": "(채널 파트너 요금제를 사용하는 Qiskit Runtime 인스턴스에만 활성화됨) 작업 매개변수가 원격으로 저장되는 위치에 대한 메타데이터 및 연결 정보 및/또는 결과, 로그, 트랜스파일된 회로 등을 저장할 위치에 대한 메타데이터 및 연결 정보 생략된 속성 는 기본 원격 저장소 옵션에서 상속됩니다.\n예를 들어 다음 두 개체는 동등한 개체입니다:\n\n```\n{\n \"type\": \"ibmcloud_cos\",\n \"region\": \"us-east\",\n \"region_type\": \"regional\",\n \"bucket_crn\": \"crn\",\n \"job_params\": {\n \"object_name\": \"my-object\"\n }\n}\n```\n\n```\n{\n \"type\": \"ibmcloud_cos\",\n \"region\": \"us-east\",\n \"region_type\": \"regional\",\n \"bucket_crn\": \"crn\",\n \"job_params\": {\n \"type\": \"ibmcloud_cos\",\n \"region\": \"us-east\",\n \"region_type\": \"regional\",\n \"bucket_crn\": \"crn\",\n \"object_name\": \"my-object\"\n }\n}\n```",
"properties": {
"job_params": {
"allOf": [
{
"oneOf": [
{
"type": "object",
"description": "데이터가 저장된 위치 또는 IBM Cloud Object Storage 버킷에 저장될 원격 저장소 메타데이터. 기본 원격 저장 옵션에서 허용되고 정의된 경우 필드별 오브젝트에서 필수 필드를 생략할 수 있습니다.",
"properties": {
"type": {
"type": "string",
"enum": [
"ibmcloud_cos"
],
"default": "ibmcloud_cos"
},
"region": {
"type": "string",
"example": "us-east",
"description": "IBM Cloud Object Storage 에서 정의한 지역, 지역 간 또는 단일 데이터 센터( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )",
"pattern": "^[a-zA-Z-]+$"
},
"region_type": {
"type": "string",
"enum": [
"regional",
"cross-region",
"single-site"
]
},
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대해 완전히 지정된 CRN",
"type": "string",
"example": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷에 있는 개체의 이름/ID입니다. 기본 원격 저장소 옵션에는 *지정되지 않을* 수 있습니다.",
"type": "string"
}
},
"required": [
"object_name",
"bucket_crn",
"region",
"region_type"
]
}
],
"discriminator": {
"propertyName": "type"
}
},
{
"description": "사용자가 작업 매개변수를 제공한 위치(생략된 속성은 기본 원격 저장 옵션에서 상속됨)"
}
]
},
"results": {
"allOf": [
{
"oneOf": [
{
"type": "object",
"description": "데이터가 저장된 위치 또는 IBM Cloud Object Storage 버킷에 저장될 원격 저장소 메타데이터. 기본 원격 저장 옵션에서 허용되고 정의된 경우 필드별 오브젝트에서 필수 필드를 생략할 수 있습니다.",
"properties": {
"type": {
"type": "string",
"enum": [
"ibmcloud_cos"
],
"default": "ibmcloud_cos"
},
"region": {
"type": "string",
"example": "us-east",
"description": "IBM Cloud Object Storage 에서 정의한 지역, 지역 간 또는 단일 데이터 센터( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )",
"pattern": "^[a-zA-Z-]+$"
},
"region_type": {
"type": "string",
"enum": [
"regional",
"cross-region",
"single-site"
]
},
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대해 완전히 지정된 CRN",
"type": "string",
"example": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷에 있는 개체의 이름/ID입니다. 기본 원격 저장소 옵션에는 *지정되지 않을* 수 있습니다.",
"type": "string"
}
},
"required": [
"object_name",
"bucket_crn",
"region",
"region_type"
]
}
],
"discriminator": {
"propertyName": "type"
}
},
{
"description": "작업 결과를 저장할 위치(생략된 속성은 기본 원격 저장 옵션에서 상속됨)"
}
]
},
"logs": {
"allOf": [
{
"oneOf": [
{
"type": "object",
"description": "데이터가 저장된 위치 또는 IBM Cloud Object Storage 버킷에 저장될 원격 저장소 메타데이터. 기본 원격 저장 옵션에서 허용되고 정의된 경우 필드별 오브젝트에서 필수 필드를 생략할 수 있습니다.",
"properties": {
"type": {
"type": "string",
"enum": [
"ibmcloud_cos"
],
"default": "ibmcloud_cos"
},
"region": {
"type": "string",
"example": "us-east",
"description": "IBM Cloud Object Storage 에서 정의한 지역, 지역 간 또는 단일 데이터 센터( [https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints](https://cloud.ibm.com/docs/cloud-object-storage?topic=cloud-object-storage-endpoints) )",
"pattern": "^[a-zA-Z-]+$"
},
"region_type": {
"type": "string",
"enum": [
"regional",
"cross-region",
"single-site"
]
},
"bucket_crn": {
"description": "대상 Cloud Object Storage 버킷에 대해 완전히 지정된 CRN",
"type": "string",
"example": "crn:v1:bluemix:public:cloud-object-storage:global:a/abc123:abc123:bucket:my-bucket"
},
"object_name": {
"description": "IBM Cloud Object Storage 버킷에 있는 개체의 이름/ID입니다. 기본 원격 저장소 옵션에는 *지정되지 않을* 수 있습니다.",
"type": "string"
}
},
"required": [
"object_name",
"bucket_crn",
"region",
"region_type"
]
}
],
"discriminator": {
"propertyName": "type"
}
},
{
"description": "작업 로그가 저장될 위치(생략된 속성은 기본 원격 저장 옵션에서 상속됨)"
}
]
}
},
"required": [
"job_params",
"results"
]
}
]
},
"session_id": {
"type": "string",
"description": "작업이 속한 세션의 식별자"
},
"user_id": {
"type": "string",
"description": "작업을 제출한 사용자의 ID"
},
"usage": {
"title": "사용법",
"description": "사용량 메트릭",
"type": "object",
"properties": {
"qpu_charge_time_seconds": {
"type": "number",
"description": "초 단위의 리소스 사용량. 이 값은 용량 사용량을 계산하는 데 사용됩니다.",
"minimum": 0
},
"status": {
"title": "BillingStatus",
"type": "string",
"description": "청구 데이터의 완전성 현황",
"enum": [
"pending",
"complete"
]
}
}
},
"private": {
"type": "boolean",
"description": "True로 설정하면 입력 매개변수가 반환되지 않으며 결과를 한 번만 읽을 수 있습니다. 작업이 완료되면 입력 매개변수가 서비스에서 삭제됩니다. 결과를 읽은 후에는 서비스에서 삭제됩니다. False로 설정하면 입력 매개변수와 결과가 API의 표준 보존 동작을 따릅니다. 값이 참인 경우에만 응답에 반환되며, 그렇지 않으면 생략됩니다."
},
"estimated_running_time_seconds": {
"type": "number",
"format": "double",
"description": "예상 사용량(초)"
},
"calibration_id": {
"type": "string",
"description": "작업에 사용된 캘리브레이션의 ID입니다"
}
},
"required": [
"id",
"created",
"program",
"state",
"status",
"cost"
]
}작업 삭제
지정된 작업 및 관련 데이터를 삭제합니다. 작업은 종료 상태여야 합니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.job.delete
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.job.delete
입력
이름, 유형 | 설명 |
|---|---|
id 필수 string | 기존 작업의 식별자 |
인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}
curl -X DELETE \
'https://quantum.cloud.ibm.com/api/v1/jobs/{id}' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Service-CRN: YOUR-SERVICE-CRN' \
-H 'IBM-API-Version: 2024-01-01' 인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}
import requests
response = requests.request(
"DELETE",
"https://quantum.cloud.ibm.com/api/v1/jobs/{id}",
headers={
"Accept": "application/json",
"IBM-API-Version": "2024-01-01",
"Authorization": "Bearer YOUR-TOKEN",
"Service-CRN": "YOUR-SERVICE-CRN"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 204 | 확인 |
| 400 | 잘못된 요청 |
| 401 | 권한 없음 |
| 403 | 금지됨 |
| 404 | 찾을 수 없음 |
| 500 | 내부 오류 삭제 작업 |
작업 취소
지정된 작업을 취소합니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.job.cancel
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.job.cancel
입력
이름, 유형 | 설명 |
|---|---|
id 필수 string | 작업 ID |
인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/cancel
curl -X POST \
'https://quantum.cloud.ibm.com/api/v1/jobs/{id}/cancel' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Service-CRN: YOUR-SERVICE-CRN' \
-H 'IBM-API-Version: 2024-01-01' 인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/cancel
import requests
response = requests.request(
"POST",
"https://quantum.cloud.ibm.com/api/v1/jobs/{id}/cancel",
headers={
"Accept": "application/json",
"IBM-API-Version": "2024-01-01",
"Authorization": "Bearer YOUR-TOKEN",
"Service-CRN": "YOUR-SERVICE-CRN"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 204 | 확인 |
| 400 | 잘못된 취소 요청 |
| 401 | 권한 없음 |
| 403 | 금지됨 |
| 404 | 찾을 수 없음 |
| 409 | 작업이 취소할 수 없는 상태입니다. |
| 500 | 내부 오류로 작업 취소 |
작업 로그 나열
지정된 작업에 대한 모든 작업 로그를 나열합니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.job.read
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.job.read
입력
이름, 유형 | 설명 |
|---|---|
id 필수 string | 작업 ID |
인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/logs
curl -X GET \
'https://quantum.cloud.ibm.com/api/v1/jobs/{id}/logs' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Service-CRN: YOUR-SERVICE-CRN' \
-H 'IBM-API-Version: 2024-01-01' 인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/logs
import requests
response = requests.request(
"GET",
"https://quantum.cloud.ibm.com/api/v1/jobs/{id}/logs",
headers={
"Accept": "application/json",
"IBM-API-Version": "2024-01-01",
"Authorization": "Bearer YOUR-TOKEN",
"Service-CRN": "YOUR-SERVICE-CRN"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 200 | 작업 로그를 반환합니다. |
| 401 | 권한 없음 |
| 403 | 금지됨 |
| 404 | 찾을 수 없음 |
작업 메트릭 가져오기
지정된 작업의 메트릭을 가져옵니다
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.job.read
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.job.read
입력
이름, 유형 | 설명 |
|---|---|
id 필수 string | 작업 ID |
인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/metrics
curl -X GET \
'https://quantum.cloud.ibm.com/api/v1/jobs/{id}/metrics' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Service-CRN: YOUR-SERVICE-CRN' \
-H 'IBM-API-Version: 2024-01-01' 인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/metrics
import requests
response = requests.request(
"GET",
"https://quantum.cloud.ibm.com/api/v1/jobs/{id}/metrics",
headers={
"Accept": "application/json",
"IBM-API-Version": "2024-01-01",
"Authorization": "Bearer YOUR-TOKEN",
"Service-CRN": "YOUR-SERVICE-CRN"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 200 | 확인 |
| 401 | 권한 없음 |
| 403 | 금지됨 |
| 404 | 찾을 수 없음 |
{
"timestamps": {
"created": "2026-03-06T14:02:11Z",
"running": "2026-03-06T14:02:18Z",
"finished": "2026-03-06T14:05:47Z"
},
"usage": {
"qpu_charge_time_seconds": 20,
"status": "complete"
},
"circuits_execution_time_ns": 20000000,
"qiskit_version": "2.3.0"
}{
"title": "JobMetrics",
"type": "object",
"description": "작업 실행에 대한 다양한 메트릭",
"properties": {
"caller": {
"type": "string",
"description": "이 값은 'x-qx-client-application' 요청 헤더에서 파생되며, 해당 헤더가 존재할 경우 지정된 클라이언트를 나타내는 형식을 `qiskit//` 따릅니다.",
"pattern": "^.*$"
},
"timestamps": {
"type": "object",
"description": "타임스탬프에 대한 상태 전환 맵",
"properties": {
"created": {
"pattern": "^[0-9TZt:\\-+./*]+$",
"format": "date-time",
"type": "string",
"description": "작업 생성 요청이 접수된 시점의 타임스탬프"
},
"finished": {
"pattern": "^[0-9TZt:\\-+./*]+$",
"format": "date-time",
"type": "string",
"description": "작업이 완료된 시점의 타임스탬프"
},
"running": {
"pattern": "^[0-9TZt:\\-+./*]+$",
"format": "date-time",
"type": "string",
"description": "작업 실행이 시작된 시점의 타임스탬프"
}
}
},
"usage": {
"title": "사용법",
"description": "사용량 메트릭",
"type": "object",
"properties": {
"qpu_charge_time_seconds": {
"type": "number",
"description": "초 단위의 리소스 사용량. 이 값은 용량 사용량을 계산하는 데 사용됩니다.",
"minimum": 0
},
"status": {
"title": "BillingStatus",
"type": "string",
"description": "청구 데이터의 완전성 현황",
"enum": [
"pending",
"complete"
]
}
}
},
"circuits_execution_time_ns": {
"type": "number",
"description": "작업이 QPU에서 소요된 시간(나노초 단위).",
"minimum": 0
},
"qiskit_version": {
"type": "string",
"description": "작업 실행 시 사용되는 키스킷 버전",
"pattern": "^v?(\\d+(\\.\\d+)*|\\.\\d+(\\.\\d+)*)$",
"maxLength": 100
}
}
} 작업 결과 나열
이 작업의 최종 결과를 반환합니다.
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.job.read
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.job.read
입력
이름, 유형 | 설명 |
|---|---|
id 필수 string | 작업 ID |
인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/results
curl -X GET \
'https://quantum.cloud.ibm.com/api/v1/jobs/{id}/results' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Service-CRN: YOUR-SERVICE-CRN' \
-H 'IBM-API-Version: 2024-01-01' 인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/results
import requests
response = requests.request(
"GET",
"https://quantum.cloud.ibm.com/api/v1/jobs/{id}/results",
headers={
"Accept": "application/json",
"IBM-API-Version": "2024-01-01",
"Authorization": "Bearer YOUR-TOKEN",
"Service-CRN": "YOUR-SERVICE-CRN"
},
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 200 | 작업의 최종 결과를 반환합니다. |
| 204 | 작업의 최종 결과를 찾을 수 없습니다. |
| 400 | 잘못된 요청 |
| 401 | 권한 없음 |
| 403 | 금지됨 |
| 404 | 찾을 수 없음 |
{
"schema_version": "v0.1",
"data": [
{
"results": {},
"metadata": null
}
],
"metadata": {
"chunk_timing": [
{
"start": "example",
"stop": "example",
"parts": [
{
"idx_item": 1,
"size": 1
}
]
}
]
}
}{
"description": "모든 프로그램의 결과 출력.",
"oneOf": [
{
"description": "양자 프로그램 실행 결과.",
"properties": {
"schema_version": {
"default": "v0.1",
"description": "결과 유형의 스키마 버전.",
"title": "스키마 버전",
"type": "string",
"enum": [
"v0.1"
]
},
"data": {
"description": "각 양자 프로그램 항목에 대한 결과 데이터.",
"items": {
"description": "단일 양자 프로그램 항목에 대한 결과.",
"properties": {
"results": {
"additionalProperties": {
"description": "텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"description": "텐서의 데이터 유형.",
"enum": [
"f64",
"bool",
"u8",
"c128"
],
"title": "DTYPE",
"type": "string"
}
},
"required": [
"data",
"shape",
"dtype"
],
"title": "TensorModel",
"type": "object"
},
"description": "결과와 그 텐서 값 간의 대응 관계.",
"title": "결과",
"type": "object"
},
"metadata": {
"description": "이 특정 양자 프로그램 항목의 실행과 관련된 메타데이터.",
"title": "메타데이터",
"nullable": true
}
},
"required": [
"results",
"metadata"
],
"title": "QuantumProgramResultItemModel",
"type": "object"
},
"title": "데이터",
"type": "array"
},
"metadata": {
"description": "실행 메타데이터.",
"properties": {
"chunk_timing": {
"description": "양자 프로그램에서 실행된 모든 청크에 대한 타이밍 정보.",
"items": {
"description": "단일 실행 청크에 대한 타이밍 정보.\n\n.. 참고::\n\n이 기간에는 회로 작동 시간이 아닌 시간이 일부 포함될 수 있습니다.",
"properties": {
"start": {
"description": "실행 청크의 시작 시간(UTC 기준).",
"format": "date-time",
"title": "시작",
"type": "string"
},
"stop": {
"description": "실행 청크의 종료 시간(UTC 기준).",
"format": "date-time",
"title": "중지",
"type": "string"
},
"parts": {
"description": "이 청크에 양자 프로그램의 어떤 부분이 포함되어 있는지 설명합니다.",
"items": {
"description": "실행 청크의 단일 부분에 포함된 내용에 대한 설명.",
"properties": {
"idx_item": {
"description": "양자 프로그램 내 항목의 인덱스.",
"title": "IDX 항목",
"type": "integer"
},
"size": {
"description": "양자 프로그램 항목에서 실행된 요소의 수.\n\n예를 들어, 양자 프로그램 항목의 형태가 라면 `(10, 5)`, 이 항목에는 총 `50`\n개의 요소가 있으므로, 이 `size` 가 일 경우 `10`, 이는 해당 항목의 전체 작업량 중 20%를 차지하게 됩니다.",
"title": "크기",
"type": "integer"
}
},
"required": [
"idx_item",
"size"
],
"title": "ChunkPart",
"type": "object"
},
"title": "부품",
"type": "array"
}
},
"required": [
"start",
"stop",
"parts"
],
"title": "ChunkSpan",
"type": "object"
},
"title": "청크 타이밍",
"type": "array"
}
},
"required": [
"chunk_timing"
],
"title": "MetadataModel",
"type": "object"
}
},
"required": [
"data",
"metadata"
],
"title": "ExecutorV01QuantumProgramResultModel",
"type": "object"
},
{
"description": "양자 프로그램 실행 결과.",
"properties": {
"schema_version": {
"default": "v0.2",
"description": "결과 유형의 스키마 버전.",
"title": "스키마 버전",
"type": "string",
"enum": [
"v0.2"
]
},
"data": {
"description": "각 양자 프로그램 항목에 대한 결과 데이터.",
"items": {
"description": "단일 양자 프로그램 항목에 대한 결과.",
"properties": {
"results": {
"additionalProperties": {
"description": "텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"description": "텐서의 데이터 유형.",
"enum": [
"f64",
"bool",
"u8",
"c128"
],
"title": "DTYPE",
"type": "string"
}
},
"required": [
"data",
"shape",
"dtype"
],
"title": "TensorModel",
"type": "object"
},
"description": "결과와 그 텐서 값 간의 대응 관계.",
"title": "결과",
"type": "object"
},
"metadata": {
"description": "양자 프로그램 결과에 대한 항목별 메타데이터.",
"properties": {
"scheduler_timing": {
"description": "예약된 회로의 실행 시점을 설명합니다.\n\n모든 타이밍 정보는 제어 전자 장치의 시간 단계 지속 시간의 배수로 `dt`표시되며, 이는 백엔드 및 타겟 속성에서 확인할 수 있습니다",
"properties": {
"timing": {
"description": "쉼표로 구분된 텍스트 형식의 회로 타이밍 설명.",
"title": "타이밍",
"type": "string"
},
"circuit_duration": {
"description": "이 회로의 소요 시간은 단계입니다 `dt` .",
"title": "회로 소요 시간",
"type": "integer"
}
},
"required": [
"timing",
"circuit_duration"
],
"title": "SchedulerTimingModel",
"type": "object"
},
"stretch_values": {
"items": {
"description": "회로 신장률의 측정 범위를 설명합니다.\n\n모든 타이밍 정보는 제어 전자 장치의 시간 단계 지속 시간의 배수로 `dt`표시되며, 이는 백엔드 및 타겟 속성에서 확인할 수 있습니다",
"properties": {
"name": {
"description": "해당 구간의 이름.",
"title": "이름",
"type": "string"
},
"value": {
"description": "나머지 값을 제외한,. `dt`단위로 표시된 결정된 신장률.",
"title": "값",
"type": "integer"
},
"remainder": {
"description": "매 구간마다 를 사용한다고 `value` 가정할 때 남은 시간은, 단위로는 `dt`.",
"title": "나머지",
"type": "integer"
},
"expanded_values": {
"description": "각 지연의 발생 시점과 지속 시간을 나타내는 `(time [int], duration [int])` 쌍의 시퀀스.\n\n모든 단위는 다음과 같습니다`dt`. 여기서 는 회로 스케줄에서 `time`지연의 절대 시간을 나타내고, 는 지연의 총 지속`duration` 시간을 나타냅니다",
"items": {
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"title": "확장된 값",
"type": "array"
}
},
"required": [
"name",
"value",
"remainder",
"expanded_values"
],
"title": "StretchValueModel",
"type": "object"
},
"type": "array",
"nullable": true,
"default": null,
"description": "가능하다면 스트레치 값을 조정하십시오.",
"title": "범위 값"
}
},
"title": "ItemMetadataModel",
"type": "object"
}
},
"required": [
"results",
"metadata"
],
"title": "QuantumProgramResultItemModel",
"type": "object"
},
"title": "데이터",
"type": "array"
},
"metadata": {
"description": "실행 메타데이터.",
"properties": {
"chunk_timing": {
"description": "양자 프로그램에서 실행된 모든 청크에 대한 타이밍 정보.",
"items": {
"description": "단일 실행 청크에 대한 타이밍 정보.\n\n.. 참고::\n\n이 기간에는 회로 작동 시간이 아닌 시간이 일부 포함될 수 있습니다.",
"properties": {
"start": {
"description": "실행 청크의 시작 시간(UTC 기준).",
"format": "date-time",
"title": "시작",
"type": "string"
},
"stop": {
"description": "실행 청크의 종료 시간(UTC 기준).",
"format": "date-time",
"title": "중지",
"type": "string"
},
"parts": {
"description": "이 청크에 양자 프로그램의 어떤 부분이 포함되어 있는지 설명합니다.",
"items": {
"description": "실행 청크의 단일 부분에 포함된 내용에 대한 설명.",
"properties": {
"idx_item": {
"description": "양자 프로그램 내 항목의 인덱스.",
"title": "IDX 항목",
"type": "integer"
},
"size": {
"description": "양자 프로그램 항목에서 실행된 요소의 수.\n\n예를 들어, 양자 프로그램 항목의 형태가 라면 `(10, 5)`, 이 항목에는 총 `50`\n개의 요소가 있으므로, 이 `size` 가 일 경우 `10`, 이는 해당 항목의 전체 작업량 중 20%를 차지하게 됩니다.",
"title": "크기",
"type": "integer"
}
},
"required": [
"idx_item",
"size"
],
"title": "ChunkPart",
"type": "object"
},
"title": "부품",
"type": "array"
}
},
"required": [
"start",
"stop",
"parts"
],
"title": "ChunkSpan",
"type": "object"
},
"title": "청크 타이밍",
"type": "array"
}
},
"required": [
"chunk_timing"
],
"title": "MetadataModel",
"type": "object"
},
"passthrough_data": {
"anyOf": [
{
"items": "",
"type": "array"
},
{
"description": "텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"description": "텐서의 데이터 유형.",
"enum": [
"f64",
"bool",
"u8",
"c128"
],
"title": "DTYPE",
"type": "string"
}
},
"required": [
"data",
"shape",
"dtype"
],
"title": "TensorModel",
"type": "object"
},
{
"additionalProperties": "",
"type": "object"
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "integer"
},
{
"type": "boolean"
}
],
"nullable": true
}
},
"required": [
"data",
"metadata"
],
"title": "ExecutorV02QuantumProgramResultModel",
"type": "object"
},
{
"description": "양자 프로그램 실행 결과.",
"properties": {
"schema_version": {
"default": "v1.0",
"description": "결과 유형의 스키마 버전.",
"title": "스키마 버전",
"type": "string",
"enum": [
"v1.0"
]
},
"data": {
"description": "각 양자 프로그램 항목에 대한 결과 데이터.",
"items": {
"description": "단일 양자 프로그램 항목에 대한 결과.",
"properties": {
"results": {
"additionalProperties": {
"description": "텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"description": "텐서의 데이터 유형.",
"enum": [
"f64",
"bool",
"u8",
"c128"
],
"title": "DTYPE",
"type": "string"
}
},
"required": [
"data",
"shape",
"dtype"
],
"title": "TensorModel",
"type": "object"
},
"description": "결과와 그 텐서 값 간의 대응 관계.",
"title": "결과",
"type": "object"
},
"metadata": {
"description": "양자 프로그램 결과에 대한 항목별 메타데이터.",
"properties": {
"scheduler_timing": {
"anyOf": [
{
"description": "예약된 회로의 실행 시점을 설명합니다.\n\n모든 타이밍 정보는 제어 전자 장치의 시간 단계 지속 시간의 배수로 `dt`표시되며, 이는 백엔드 및 타겟 속성에서 확인할 수 있습니다",
"properties": {
"timing": {
"description": "쉼표로 구분된 텍스트 형식의 회로 타이밍 설명.",
"title": "타이밍",
"type": "string"
},
"circuit_duration": {
"description": "이 회로의 소요 시간은 단계입니다 `dt` .",
"title": "회로 소요 시간",
"type": "integer"
}
},
"required": [
"timing",
"circuit_duration"
],
"title": "집행자 v1.0 SchedulerTimingModel",
"type": "object"
}
],
"default": null,
"description": "가능한 경우, 예정된 회로 타이밍 정보.",
"nullable": true
},
"stretch_values": {
"default": null,
"description": "가능하다면 스트레치 값을 조정하십시오.",
"title": "범위 값",
"items": {
"description": "회로 신장률의 측정 범위를 설명합니다.\n\n모든 타이밍 정보는 제어 전자 장치의 시간 단계 지속 시간의 배수로 `dt`표시되며, 이는 백엔드 및 타겟 속성에서 확인할 수 있습니다",
"properties": {
"name": {
"description": "해당 구간의 이름.",
"title": "이름",
"type": "string"
},
"value": {
"description": "나머지 값을 제외한,. `dt`단위로 표시된 결정된 신장률.",
"title": "값",
"type": "integer"
},
"remainder": {
"description": "매 구간마다 를 사용한다고 `value` 가정할 때 남은 시간은, 단위로는 `dt`.",
"title": "나머지",
"type": "integer"
},
"expanded_values": {
"description": "각 지연의 발생 시점과 지속 시간을 `(time, duration)` 나타내는 쌍의 시퀀스.\n\n모든 단위는 다음과 같습니다`dt`. 여기서 는 회로 스케줄에서 `time`지연의 절대 시간을 나타내고, 는 지연의 총 지속`duration` 시간을 나타냅니다",
"items": {
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"title": "확장된 값",
"type": "array"
}
},
"required": [
"name",
"value",
"remainder",
"expanded_values"
],
"title": "집행인 v1.0 StretchValueModel",
"type": "object"
},
"type": "array",
"nullable": true
}
},
"title": "집행인 v1.0 ItemMetadataModel",
"type": "object"
}
},
"required": [
"results",
"metadata"
],
"title": "집행인 v1.0 QuantumProgramResultItemModel",
"type": "object"
},
"title": "데이터",
"type": "array"
},
"metadata": {
"description": "실행 메타데이터.",
"properties": {
"chunk_timing": {
"description": "양자 프로그램에서 실행된 모든 청크에 대한 타이밍 정보.",
"items": {
"description": "단일 실행 청크에 대한 타이밍 정보.\n\n> **참고:** 이 기간에는 회로와 무관한 시간이 일부 포함될 수 있습니다.",
"properties": {
"start": {
"description": "실행 청크의 시작 시간(UTC 기준).",
"format": "date-time",
"title": "시작",
"type": "string"
},
"stop": {
"description": "실행 청크의 종료 시간(UTC 기준).",
"format": "date-time",
"title": "중지",
"type": "string"
},
"parts": {
"description": "이 청크에 양자 프로그램의 어떤 부분이 포함되어 있는지 설명합니다.",
"items": {
"description": "실행 청크의 단일 부분에 포함된 내용에 대한 설명.",
"properties": {
"idx_item": {
"description": "양자 프로그램 내 항목의 인덱스.",
"title": "IDX 항목",
"type": "integer"
},
"size": {
"description": "양자 프로그램 항목에서 실행된 요소의 수.\n\n예를 들어, 양자 프로그램 항목의 형태가 라면 `(10, 5)`, 이 항목에는 총 `50`\n개의 요소가 있으므로, 이 `size` 가 일 경우 `10`, 이는 해당 항목의 전체 작업량 중 20%를 차지하게 됩니다.",
"title": "크기",
"type": "integer"
},
"permutation": {
"description": "`element_range`.을 사용하여 요소를 분할하기 전의 항목 모양에 대한 순열 벡터.\n\n이 목록에는 0부터 시작하는 연속된 정수들이 특정 순서대로 포함되어야 합니다. `i`관례에 따르면\n모든 차원 지수 에 대해 `permuted_shape[i] = shape[permutation[i]]` .",
"items": {
"type": "integer"
},
"title": "순열",
"type": "array"
},
"element_range": {
"description": "이 청크 부분에서 해당 항목의 어떤 요소들이 구현되었는가.\n\n이 범위에는 해당 양자 프로그램 항목에\n가 적용된 `permutation` 후, 평평하게 펼쳐진 모양을 조각내는 항목들이`(start_idx, stop_idx, step)` 포함되어 있습니다. 즉,\n이 부분은 해당 항목의 모양과 일치하는 모양을 가진`arr`\n`flatten(permute(arr))[start_idx:stop_idx:step]`어떤 데이터 배열에 대한 데이터 요소들에 해당합니다. 아래 첨자는\n포함하는 것을 의미하고, 위 첨자는 제외하는 것을 의미하며, 단계는 양수여야 합니다.\n\n`size == max(0, ceil((stop_idx - start_idx) / step))`그렇게 되어야 한다.",
"maxItems": 3,
"minItems": 3,
"title": "원소 범위",
"type": "array"
}
},
"required": [
"idx_item",
"size",
"permutation",
"element_range"
],
"title": "집행인 v1.0 ChunkPart",
"type": "object"
},
"title": "부품",
"type": "array"
}
},
"required": [
"start",
"stop",
"parts"
],
"title": "집행인 v1.0 ChunkSpan",
"type": "object"
},
"title": "청크 타이밍",
"type": "array"
}
},
"required": [
"chunk_timing"
],
"title": "집행인 v1.0 MetadataModel",
"type": "object"
},
"passthrough_data": {
"anyOf": [
{
"items": "",
"type": "array"
},
{
"description": "텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"description": "텐서의 데이터 유형.",
"enum": [
"f64",
"bool",
"u8",
"c128"
],
"title": "DTYPE",
"type": "string"
}
},
"required": [
"data",
"shape",
"dtype"
],
"title": "TensorModel",
"type": "object"
},
{
"additionalProperties": "",
"type": "object"
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "integer"
},
{
"type": "boolean"
}
],
"nullable": true
},
"semantic_role": {
"default": null,
"description": "실행 결과가 런타임 클라이언트에 의해 어떻게 후처리될 수 있는지를 나타내는 의미적 역할.\n\n예약된 시스템 값에는 ' sampler-v2 ' 및 ' estimator-v2 '이 포함되며, 이는\n사전 공지 없이 변경될 수 있습니다. 타사 클라이언트는 이 값을 설정하거나 이에 의존해서는 안 됩니다.",
"title": "의미적 역할",
"type": "string",
"nullable": true
}
},
"required": [
"data",
"metadata"
],
"title": "집행인 v1.0 QuantumProgramResultModel",
"type": "object"
},
{
"description": "양자 프로그램 실행 결과.",
"properties": {
"schema_version": {
"default": "v1.1",
"description": "결과 유형의 스키마 버전.",
"title": "스키마 버전",
"type": "string",
"enum": [
"v1.1"
]
},
"data": {
"description": "각 양자 프로그램 항목에 대한 결과 데이터.",
"items": {
"description": "단일 양자 프로그램 항목에 대한 결과.",
"properties": {
"results": {
"additionalProperties": {
"description": "텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"description": "텐서의 데이터 유형.",
"enum": [
"f64",
"bool",
"u8",
"c128"
],
"title": "DTYPE",
"type": "string"
}
},
"required": [
"data",
"shape",
"dtype"
],
"title": "TensorModel",
"type": "object"
},
"description": "결과와 그 텐서 값 간의 대응 관계.",
"title": "결과",
"type": "object"
},
"metadata": {
"description": "양자 프로그램 결과에 대한 항목별 메타데이터.",
"properties": {
"scheduler_timing": {
"anyOf": [
{
"description": "예약된 회로의 실행 시점을 설명합니다.\n\n모든 타이밍 정보는 제어 전자 장치의 시간 단계 지속 시간의 배수로 `dt`표시되며, 이는 백엔드 및 타겟 속성에서 확인할 수 있습니다",
"properties": {
"timing": {
"description": "쉼표로 구분된 텍스트 형식의 회로 타이밍 설명.",
"title": "타이밍",
"type": "string"
},
"circuit_duration": {
"description": "이 회로의 소요 시간은 단계입니다 `dt` .",
"title": "회로 소요 시간",
"type": "integer"
}
},
"required": [
"timing",
"circuit_duration"
],
"title": "유언집행인 v1.1 SchedulerTimingModel",
"type": "object"
}
],
"default": null,
"description": "가능한 경우, 예정된 회로 타이밍 정보.",
"nullable": true
},
"stretch_values": {
"default": null,
"description": "가능하다면 스트레치 값을 조정하십시오.",
"title": "범위 값",
"items": {
"description": "회로 신장률의 측정 범위를 설명합니다.\n\n모든 타이밍 정보는 제어 전자 장치의 시간 단계 지속 시간의 배수로 `dt`표시되며, 이는 백엔드 및 타겟 속성에서 확인할 수 있습니다",
"properties": {
"name": {
"description": "해당 구간의 이름.",
"title": "이름",
"type": "string"
},
"value": {
"description": "나머지 값을 제외한,. `dt`단위로 표시된 결정된 신장률.",
"title": "값",
"type": "integer"
},
"remainder": {
"description": "매 구간마다 를 사용한다고 `value` 가정할 때 남은 시간은, 단위로는 `dt`.",
"title": "나머지",
"type": "integer"
},
"expanded_values": {
"description": "각 지연의 발생 시점과 지속 시간을 `(time, duration)` 나타내는 쌍의 시퀀스.\n\n모든 단위는 다음과 같습니다`dt`. 여기서 는 회로 스케줄에서 `time`지연의 절대 시간을 나타내고, 는 지연의 총 지속`duration` 시간을 나타냅니다",
"items": {
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"title": "확장된 값",
"type": "array"
}
},
"required": [
"name",
"value",
"remainder",
"expanded_values"
],
"title": "유언집행인 v1.1 StretchValueModel",
"type": "object"
},
"type": "array",
"nullable": true
}
},
"title": "유언집행인 v1.1 ItemMetadataModel",
"type": "object"
}
},
"required": [
"results",
"metadata"
],
"title": "유언집행인 v1.1 QuantumProgramResultItemModel",
"type": "object"
},
"title": "데이터",
"type": "array"
},
"metadata": {
"description": "실행 메타데이터.",
"properties": {
"chunk_timing": {
"description": "양자 프로그램에서 실행된 모든 청크에 대한 타이밍 정보.",
"items": {
"description": "단일 실행 청크에 대한 타이밍 정보.\n\n> **참고:** 이 기간에는 회로와 무관한 시간이 일부 포함될 수 있습니다.",
"properties": {
"start": {
"description": "실행 청크의 시작 시간(UTC 기준).",
"format": "date-time",
"title": "시작",
"type": "string"
},
"stop": {
"description": "실행 청크의 종료 시간(UTC 기준).",
"format": "date-time",
"title": "중지",
"type": "string"
},
"parts": {
"description": "이 청크에 양자 프로그램의 어떤 부분이 포함되어 있는지 설명합니다.",
"items": {
"description": "실행 청크의 단일 부분에 포함된 내용에 대한 설명.",
"properties": {
"idx_item": {
"description": "양자 프로그램 내 항목의 인덱스.",
"title": "IDX 항목",
"type": "integer"
},
"size": {
"description": "양자 프로그램 항목에서 실행된 요소의 수.\n\n예를 들어, 양자 프로그램 항목의 형태가 라면 `(10, 5)`, 이 항목에는 총 `50`\n개의 요소가 있으므로, 이 `size` 가 일 경우 `10`, 이는 해당 항목의 전체 작업량 중 20%를 차지하게 됩니다.",
"title": "크기",
"type": "integer"
},
"permutation": {
"description": "`element_range`.을 사용하여 요소를 분할하기 전의 항목 모양에 대한 순열 벡터.\n\n이 목록에는 0부터 시작하는 연속된 정수들이 특정 순서대로 포함되어야 합니다. `i`관례에 따르면\n모든 차원 지수 에 대해 `permuted_shape[i] = shape[permutation[i]]` .",
"items": {
"type": "integer"
},
"title": "순열",
"type": "array"
},
"element_range": {
"description": "이 청크 부분에서 해당 항목의 어떤 요소들이 구현되었는가.\n\n이 범위에는 해당 양자 프로그램 항목에\n가 적용된 `permutation` 후, 평평하게 펼쳐진 모양을 조각내는 항목들이`(start_idx, stop_idx, step)` 포함되어 있습니다. 즉,\n이 부분은 해당 항목의 모양과 일치하는 모양을 가진`arr`\n`flatten(permute(arr))[start_idx:stop_idx:step]`어떤 데이터 배열에 대한 데이터 요소들에 해당합니다. 아래 첨자는\n포함하는 것을 의미하고, 위 첨자는 제외하는 것을 의미하며, 단계는 양수여야 합니다.\n\n`size == max(0, ceil((stop_idx - start_idx) / step))`그렇게 되어야 한다.",
"maxItems": 3,
"minItems": 3,
"title": "원소 범위",
"type": "array"
}
},
"required": [
"idx_item",
"size",
"permutation",
"element_range"
],
"title": "유언집행인 v1.1 ChunkPart",
"type": "object"
},
"title": "부품",
"type": "array"
}
},
"required": [
"start",
"stop",
"parts"
],
"title": "유언집행인 v1.1 ChunkSpan",
"type": "object"
},
"title": "청크 타이밍",
"type": "array"
}
},
"required": [
"chunk_timing"
],
"title": "유언집행인 v1.1 MetadataModel",
"type": "object"
},
"passthrough_data": {
"anyOf": [
{
"items": "",
"type": "array"
},
{
"description": "텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"description": "텐서의 데이터 유형.",
"enum": [
"f64",
"bool",
"u8",
"c128"
],
"title": "DTYPE",
"type": "string"
}
},
"required": [
"data",
"shape",
"dtype"
],
"title": "TensorModel",
"type": "object"
},
{
"additionalProperties": "",
"type": "object"
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "integer"
},
{
"type": "boolean"
}
],
"nullable": true
},
"semantic_role": {
"default": null,
"description": "실행 결과가 런타임 클라이언트에 의해 어떻게 후처리될 수 있는지를 나타내는 의미적 역할.\n\n예약된 시스템 값에는 ' sampler-v2 ' 및 ' estimator-v2 '이 포함되며, 이는\n사전 공지 없이 변경될 수 있습니다. 타사 클라이언트는 이 값을 설정하거나 이에 의존해서는 안 됩니다.",
"title": "의미적 역할",
"type": "string",
"nullable": true
}
},
"required": [
"data",
"metadata"
],
"title": "유언집행인 v1.1 QuantumProgramResultModel",
"type": "object"
},
{
"description": "양자 프로그램 실행 결과.",
"properties": {
"schema_version": {
"default": "v2.0",
"description": "결과 유형의 스키마 버전.",
"title": "스키마 버전",
"type": "string",
"enum": [
"v2.0"
]
},
"data": {
"description": "각 양자 프로그램 항목에 대한 결과 데이터.",
"items": {
"description": "단일 양자 프로그램 항목에 대한 결과.",
"properties": {
"results": {
"additionalProperties": {
"description": "압축된 텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"description": "텐서의 데이터 유형.",
"enum": [
"f16",
"f32",
"f64",
"bool",
"i8",
"i16",
"i32",
"i64",
"u8",
"u16",
"u32",
"u64",
"c64",
"c128"
],
"title": "DTYPE",
"type": "string"
}
},
"required": [
"data",
"shape",
"dtype"
],
"title": "CompressedTensorModel",
"type": "object"
},
"description": "결과와 그 텐서 값 간의 대응 관계.",
"title": "결과",
"type": "object"
},
"metadata": {
"description": "양자 프로그램 결과에 대한 항목별 메타데이터.",
"properties": {
"scheduler_timing": {
"anyOf": [
{
"description": "예약된 회로의 실행 시점을 설명합니다.\n\n모든 타이밍 정보는 제어 전자 장치의 시간 단계 지속 시간의 배수로 `dt`표시되며, 이는 백엔드 및 타겟 속성에서 확인할 수 있습니다",
"properties": {
"timing": {
"description": "쉼표로 구분된 텍스트 형식의 회로 타이밍 설명.",
"title": "타이밍",
"type": "string"
},
"circuit_duration": {
"description": "이 회로의 소요 시간은 단계입니다 `dt` .",
"title": "회로 소요 시간",
"type": "integer"
}
},
"required": [
"timing",
"circuit_duration"
],
"title": "유언집행인 v2.0 SchedulerTimingModel",
"type": "object"
}
],
"default": null,
"description": "가능한 경우, 예정된 회로 타이밍 정보.",
"nullable": true
},
"stretch_values": {
"default": null,
"description": "가능하다면 스트레치 값을 조정하십시오.",
"title": "범위 값",
"items": {
"description": "회로 신장률의 측정 범위를 설명합니다.\n\n모든 타이밍 정보는 제어 전자 장치의 시간 단계 지속 시간의 배수로 `dt`표시되며, 이는 백엔드 및 타겟 속성에서 확인할 수 있습니다",
"properties": {
"name": {
"description": "해당 구간의 이름.",
"title": "이름",
"type": "string"
},
"value": {
"description": "나머지 값을 제외한,. `dt`단위로 표시된 결정된 신장률.",
"title": "값",
"type": "integer"
},
"remainder": {
"description": "매 구간마다 를 사용한다고 `value` 가정할 때 남은 시간은, 단위로는 `dt`.",
"title": "나머지",
"type": "integer"
},
"expanded_values": {
"description": "각 지연의 발생 시점과 지속 시간을 `(time, duration)` 나타내는 쌍의 시퀀스.\n\n모든 단위는 다음과 같습니다`dt`. 여기서 는 회로 스케줄에서 `time`지연의 절대 시간을 나타내고, 는 지연의 총 지속`duration` 시간을 나타냅니다",
"items": {
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"title": "확장된 값",
"type": "array"
}
},
"required": [
"name",
"value",
"remainder",
"expanded_values"
],
"title": "유언집행인 v2.0 StretchValueModel",
"type": "object"
},
"type": "array",
"nullable": true
}
},
"title": "유언집행인 v2.0 ItemMetadataModel",
"type": "object"
}
},
"required": [
"results",
"metadata"
],
"title": "유언집행인 v2.0 QuantumProgramResultItemModel",
"type": "object"
},
"title": "데이터",
"type": "array"
},
"metadata": {
"description": "실행 메타데이터.",
"properties": {
"chunk_timing": {
"description": "양자 프로그램에서 실행된 모든 청크에 대한 타이밍 정보.",
"items": {
"description": "단일 실행 청크에 대한 타이밍 정보.\n\n> **참고:** 이 기간에는 회로와 무관한 시간이 일부 포함될 수 있습니다.",
"properties": {
"start": {
"description": "실행 청크의 시작 시간(UTC 기준).",
"format": "date-time",
"title": "시작",
"type": "string"
},
"stop": {
"description": "실행 청크의 종료 시간(UTC 기준).",
"format": "date-time",
"title": "중지",
"type": "string"
},
"parts": {
"description": "이 청크에 양자 프로그램의 어떤 부분이 포함되어 있는지 설명합니다.",
"items": {
"description": "실행 청크의 단일 부분에 포함된 내용에 대한 설명.",
"properties": {
"idx_item": {
"description": "양자 프로그램 내 항목의 인덱스.",
"title": "IDX 항목",
"type": "integer"
},
"size": {
"description": "양자 프로그램 항목에서 실행된 요소의 수.\n\n예를 들어, 양자 프로그램 항목의 형태가 라면 `(10, 5)`, 이 항목에는 총 `50`\n개의 요소가 있으므로, 이 `size` 가 일 경우 `10`, 이는 해당 항목의 전체 작업량 중 20%를 차지하게 됩니다.",
"title": "크기",
"type": "integer"
},
"permutation": {
"description": "`element_range`.을 사용하여 요소를 분할하기 전의 항목 모양에 대한 순열 벡터.\n\n이 목록에는 0부터 시작하는 연속된 정수들이 특정 순서대로 포함되어야 합니다. `i`관례에 따르면\n모든 차원 지수 에 대해 `permuted_shape[i] = shape[permutation[i]]` .",
"items": {
"type": "integer"
},
"title": "순열",
"type": "array"
},
"element_range": {
"description": "이 청크 부분에서 해당 항목의 어떤 요소들이 구현되었는가.\n\n이 범위에는 해당 양자 프로그램 항목에\n가 적용된 `permutation` 후, 평평하게 펼쳐진 모양을 조각내는 항목들이`(start_idx, stop_idx, step)` 포함되어 있습니다. 즉,\n이 부분은 해당 항목의 모양과 일치하는 모양을 가진`arr`\n`flatten(permute(arr))[start_idx:stop_idx:step]`어떤 데이터 배열에 대한 데이터 요소들에 해당합니다. 아래 첨자는\n포함하는 것을 의미하고, 위 첨자는 제외하는 것을 의미하며, 단계는 양수여야 합니다.\n\n`size == max(0, ceil((stop_idx - start_idx) / step))`그렇게 되어야 한다.",
"maxItems": 3,
"minItems": 3,
"title": "원소 범위",
"type": "array"
}
},
"required": [
"idx_item",
"size",
"permutation",
"element_range"
],
"title": "유언집행인 v2.0 ChunkPart",
"type": "object"
},
"title": "부품",
"type": "array"
}
},
"required": [
"start",
"stop",
"parts"
],
"title": "유언집행인 v2.0 ChunkSpan",
"type": "object"
},
"title": "청크 타이밍",
"type": "array"
}
},
"required": [
"chunk_timing"
],
"title": "유언집행인 v2.0 MetadataModel",
"type": "object"
},
"passthrough_data": {
"anyOf": [
{
"items": "",
"type": "array"
},
{
"description": "압축된 텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"description": "텐서의 데이터 유형.",
"enum": [
"f16",
"f32",
"f64",
"bool",
"i8",
"i16",
"i32",
"i64",
"u8",
"u16",
"u32",
"u64",
"c64",
"c128"
],
"title": "DTYPE",
"type": "string"
}
},
"required": [
"data",
"shape",
"dtype"
],
"title": "CompressedTensorModel",
"type": "object"
},
{
"additionalProperties": "",
"type": "object"
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "integer"
},
{
"type": "boolean"
}
],
"nullable": true
},
"semantic_role": {
"default": null,
"description": "실행 결과가 런타임 클라이언트에 의해 어떻게 후처리될 수 있는지를 나타내는 의미적 역할.\n\n예약된 시스템 값에는 ' sampler-v2 ' 및 ' estimator-v2 '이 포함되며, 이는\n사전 공지 없이 변경될 수 있습니다. 타사 클라이언트는 이 값을 설정하거나 이에 의존해서는 안 됩니다.",
"title": "의미적 역할",
"type": "string",
"nullable": true
}
},
"required": [
"data",
"metadata"
],
"title": "유언집행인 v2.0 QuantumProgramResultModel",
"type": "object"
},
{
"description": "노이즈 학습기 v3 작업을 실행한 결과.",
"properties": {
"schema_version": {
"default": "v0.1",
"description": "결과 유형의 스키마 버전.",
"title": "스키마 버전",
"type": "string",
"enum": [
"v0.1"
]
},
"data": {
"description": "각 항목에 대한 결과 데이터.",
"items": {
"description": "단일 노이즈 학습자 V3 항목에 대한 결과.",
"properties": {
"generators_sparse": {
"description": "생성기를 스파스 형식으로 표현한 것.",
"items": {
"items": {
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"type": "array"
},
"title": "발전기 스파스",
"type": "array"
},
"num_qubits": {
"description": "생성기가 작용하는 큐비트의 수.",
"title": "큐비트 수",
"type": "integer"
},
"rates": {
"description": "f64 에 특화된 텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"default": "f64",
"title": "DTYPE",
"type": "string",
"enum": [
"f64"
]
}
},
"required": [
"data",
"shape"
],
"title": "F64TensorModel",
"type": "object"
},
"rates_std": {
"description": "f64 에 특화된 텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"default": "f64",
"title": "DTYPE",
"type": "string",
"enum": [
"f64"
]
}
},
"required": [
"data",
"shape"
],
"title": "F64TensorModel",
"type": "object"
},
"metadata": {
"description": "단일 결과와 관련된 실행 메타데이터.",
"discriminator": {
"mapping": {
"lindblad": "#/components/schemas/NoiseLearnerV3V01LinbdbladResultMetadataModel",
"trex": "#/components/schemas/NoiseLearnerV3V01TREXResultMetadataModel"
},
"propertyName": "learning_protocol"
},
"oneOf": [
{
"description": "노이즈 학습기 v3 작업의 단일 TREX 결과에 대한 메타데이터.",
"properties": {
"learning_protocol": {
"default": "trex",
"description": "이 결과를 도출하기 위해 사용된 학습 프로토콜.",
"title": "학습 프로토콜",
"type": "string",
"enum": [
"trex"
]
},
"post_selection": {
"description": "노이즈 학습기 v3 작업의 단일 TREX 결과에 대한 게시물 선택 메타데이터.",
"properties": {
"fraction_kept": {
"description": "슛 중 성공한 비율.",
"maximum": 1,
"minimum": 0,
"title": "유지된 분수",
"type": "number"
}
},
"required": [
"fraction_kept"
],
"title": "TREXResultPostSelectionMetadataModel",
"type": "object"
}
},
"required": [
"post_selection"
],
"title": "TREXResultMetadataModel",
"type": "object"
},
{
"description": "노이즈 학습기 v3 작업의 단일 Lindblad 결과 메타데이터.",
"properties": {
"learning_protocol": {
"default": "lindblad",
"description": "이 결과를 도출하기 위해 사용된 학습 프로토콜.",
"title": "학습 프로토콜",
"type": "string",
"enum": [
"lindblad"
]
},
"post_selection": {
"description": "노이즈 학습기 v3 작업의 단일 Linbdblad 결과에 대한 게시물 선택 메타데이터.",
"properties": {
"fraction_kept": {
"additionalProperties": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"description": "각 레이어 쌍의 깊이에 대해 유지된 샷의 비율.",
"title": "유지된 분수",
"type": "object"
}
},
"required": [
"fraction_kept"
],
"title": "LinbdbladResultPostSelectionMetadataModel",
"type": "object"
}
},
"required": [
"post_selection"
],
"title": "LinbdbladResultMetadataModel",
"type": "object"
}
],
"title": "메타데이터"
}
},
"required": [
"generators_sparse",
"num_qubits",
"rates",
"rates_std",
"metadata"
],
"title": "NoiseLearnerV3ResultModel",
"type": "object"
},
"title": "데이터",
"type": "array"
}
},
"required": [
"data"
],
"title": "NoiseLearnerV3 v0.1 NoiseLearnerV3ResultsModel",
"type": "object"
},
{
"description": "노이즈 학습기 v3 작업을 실행한 결과.",
"properties": {
"schema_version": {
"default": "v0.2",
"description": "결과 유형의 스키마 버전.",
"title": "스키마 버전",
"type": "string",
"enum": [
"v0.2"
]
},
"data": {
"description": "각 항목에 대한 결과 데이터.",
"items": {
"description": "단일 노이즈 학습자 V3 항목에 대한 결과.",
"properties": {
"generators_sparse": {
"description": "생성기를 스파스 형식으로 표현한 것.",
"items": {
"items": {
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"type": "array"
},
"title": "발전기 스파스",
"type": "array"
},
"num_qubits": {
"description": "생성기가 작용하는 큐비트의 수.",
"title": "큐비트 수",
"type": "integer"
},
"rates": {
"description": "f64 에 특화된 텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"default": "f64",
"title": "DTYPE",
"type": "string",
"enum": [
"f64"
]
}
},
"required": [
"data",
"shape"
],
"title": "F64TensorModel",
"type": "object"
},
"rates_std": {
"description": "f64 에 특화된 텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"default": "f64",
"title": "DTYPE",
"type": "string",
"enum": [
"f64"
]
}
},
"required": [
"data",
"shape"
],
"title": "F64TensorModel",
"type": "object"
},
"metadata": {
"description": "단일 결과와 관련된 실행 메타데이터.",
"discriminator": {
"mapping": {
"lindblad": "#/components/schemas/NoiseLearnerV3V02LinbdbladResultMetadataModel",
"trex": "#/components/schemas/NoiseLearnerV3V02TREXResultMetadataModel"
},
"propertyName": "learning_protocol"
},
"oneOf": [
{
"description": "노이즈 학습기 v3 작업의 단일 TREX 결과에 대한 메타데이터.",
"properties": {
"learning_protocol": {
"default": "trex",
"description": "이 결과를 도출하기 위해 사용된 학습 프로토콜.",
"title": "학습 프로토콜",
"type": "string",
"enum": [
"trex"
]
},
"post_selection": {
"description": "노이즈 학습기 v3 작업의 단일 TREX 결과에 대한 게시물 선택 메타데이터.",
"properties": {
"fraction_kept": {
"description": "슛 중 성공한 비율.",
"maximum": 1,
"minimum": 0,
"title": "유지된 분수",
"type": "number"
},
"success_rates": {
"additionalProperties": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"description": "포스트 선택이 각 큐비트를 성공적으로 반전시킨 샷의 비율.",
"title": "성공률",
"type": "object"
}
},
"required": [
"fraction_kept",
"success_rates"
],
"title": "TREXResultPostSelectionMetadataModel",
"type": "object"
}
},
"required": [
"post_selection"
],
"title": "TREXResultMetadataModel",
"type": "object"
},
{
"description": "노이즈 학습기 v3 작업의 단일 Lindblad 결과 메타데이터.",
"properties": {
"learning_protocol": {
"default": "lindblad",
"description": "이 결과를 도출하기 위해 사용된 학습 프로토콜.",
"title": "학습 프로토콜",
"type": "string",
"enum": [
"lindblad"
]
},
"post_selection": {
"description": "노이즈 학습기 v3 작업의 단일 Linbdblad 결과에 대한 게시물 선택 메타데이터.",
"properties": {
"fraction_kept": {
"additionalProperties": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"description": "각 레이어 쌍의 깊이에 대해 유지된 샷의 비율.",
"title": "유지된 분수",
"type": "object"
},
"success_rates": {
"additionalProperties": {
"additionalProperties": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"type": "object"
},
"description": "각 레이어 쌍의 깊이에 대해, 포스트 선택이 각 큐비트를 성공적으로 반전시킨 샷의 비율",
"title": "성공률",
"type": "object"
}
},
"required": [
"fraction_kept",
"success_rates"
],
"title": "LinbdbladResultPostSelectionMetadataModel",
"type": "object"
}
},
"required": [
"post_selection"
],
"title": "LinbdbladResultMetadataModel",
"type": "object"
}
],
"title": "메타데이터"
}
},
"required": [
"generators_sparse",
"num_qubits",
"rates",
"rates_std",
"metadata"
],
"title": "NoiseLearnerV3ResultModel",
"type": "object"
},
"title": "데이터",
"type": "array"
}
},
"required": [
"data"
],
"title": "NoiseLearnerV3 v0.2 NoiseLearnerV3ResultsModel",
"type": "object"
},
{
"description": "노이즈 학습기 v3 작업을 실행한 결과.",
"properties": {
"schema_version": {
"default": "v0.3",
"description": "결과 유형의 스키마 버전.",
"title": "스키마 버전",
"type": "string",
"enum": [
"v0.3"
]
},
"data": {
"description": "각 항목에 대한 결과 데이터.",
"items": {
"description": "단일 노이즈 학습자 V3 항목에 대한 결과.",
"properties": {
"generators_sparse": {
"description": "생성기를 스파스 형식으로 표현한 것.",
"items": {
"items": {
"maxItems": 2,
"minItems": 2,
"type": "array"
},
"type": "array"
},
"title": "발전기 스파스",
"type": "array"
},
"num_qubits": {
"description": "생성기가 작용하는 큐비트의 수.",
"title": "큐비트 수",
"type": "integer"
},
"rates": {
"description": "f64 에 특화된 텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"default": "f64",
"title": "DTYPE",
"type": "string",
"enum": [
"f64"
]
}
},
"required": [
"data",
"shape"
],
"title": "F64TensorModel",
"type": "object"
},
"rates_std": {
"description": "f64 에 특화된 텐서 데이터 모델.",
"properties": {
"data": {
"description": "Base-64-encoded 리틀 엔디안 형식의 데이터.\n\n부울 배열은 비트팩(bitpacked) 형식이며, 다른 유형은 비트순서 보존( IEEE753 ) 형식입니다. 모든 것이 리틀 엔디안입니다.\n텐서는 C-순서를 가진다.",
"title": "데이터",
"type": "string"
},
"shape": {
"description": "텐서의 형태.",
"items": {
"type": "integer"
},
"title": "형태",
"type": "array"
},
"dtype": {
"default": "f64",
"title": "DTYPE",
"type": "string",
"enum": [
"f64"
]
}
},
"required": [
"data",
"shape"
],
"title": "F64TensorModel",
"type": "object"
},
"metadata": {
"description": "단일 결과와 관련된 실행 메타데이터.",
"discriminator": {
"mapping": {
"lindblad": "#/components/schemas/NoiseLearnerV3V03LinbdbladResultMetadataModel",
"trex": "#/components/schemas/NoiseLearnerV3V03TREXResultMetadataModel"
},
"propertyName": "learning_protocol"
},
"oneOf": [
{
"description": "노이즈 학습기 v3 작업의 단일 TREX 결과에 대한 메타데이터.",
"properties": {
"learning_protocol": {
"default": "trex",
"description": "이 결과를 도출하기 위해 사용된 학습 프로토콜.",
"title": "학습 프로토콜",
"type": "string",
"enum": [
"trex"
]
},
"post_selection": {
"description": "노이즈 학습기 v3 작업의 단일 TREX 결과에 대한 게시물 선택 메타데이터.",
"properties": {
"fraction_kept": {
"description": "슛 중 성공한 비율.",
"maximum": 1,
"minimum": 0,
"title": "유지된 분수",
"type": "number"
},
"success_rates": {
"additionalProperties": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"description": "포스트 선택이 각 큐비트를 성공적으로 반전시킨 샷의 비율.",
"title": "성공률",
"type": "object"
}
},
"required": [
"fraction_kept",
"success_rates"
],
"title": "NoiseLearnerV3 v0.3 TREXResultPostSelectionMetadataModel",
"type": "object"
}
},
"required": [
"post_selection"
],
"title": "NoiseLearnerV3 v0.3 TREXResultMetadataModel",
"type": "object"
},
{
"description": "노이즈 학습기 v3 작업의 단일 Lindblad 결과 메타데이터.",
"properties": {
"learning_protocol": {
"default": "lindblad",
"description": "이 결과를 도출하기 위해 사용된 학습 프로토콜.",
"title": "학습 프로토콜",
"type": "string",
"enum": [
"lindblad"
]
},
"post_selection": {
"description": "노이즈 학습기 v3 작업의 단일 Linbdblad 결과에 대한 게시물 선택 메타데이터.",
"properties": {
"fraction_kept": {
"additionalProperties": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"description": "각 레이어 쌍의 깊이에 대해 유지된 샷의 비율.",
"title": "유지된 분수",
"type": "object"
},
"success_rates": {
"additionalProperties": {
"additionalProperties": {
"maximum": 1,
"minimum": 0,
"type": "number"
},
"type": "object"
},
"description": "각 레이어 쌍의 깊이에 대해, 포스트 선택이 각 큐비트를 성공적으로 반전시킨 샷의 비율",
"title": "성공률",
"type": "object"
}
},
"required": [
"fraction_kept",
"success_rates"
],
"title": "NoiseLearnerV3 v0.3 LinbdbladResultPostSelectionMetadataModel",
"type": "object"
}
},
"required": [
"post_selection"
],
"title": "NoiseLearnerV3 v0.3 LinbdbladResultMetadataModel",
"type": "object"
}
],
"title": "메타데이터"
}
},
"required": [
"generators_sparse",
"num_qubits",
"rates",
"rates_std",
"metadata"
],
"title": "NoiseLearnerV3 v0.3 NoiseLearnerV3ResultModel",
"type": "object"
},
"title": "데이터",
"type": "array"
}
},
"required": [
"data"
],
"title": "NoiseLearnerV3 v0.3 NoiseLearnerV3ResultsModel",
"type": "object"
},
{
"type": "string",
"description": "작업 최종 결과.",
"title": "LegacyJobResults"
}
]
} 작업 태그 교체
작업 태그 교체
권한 부여
이 메소드를 호출하려면 다음 조치를 포함하는 하나 이상의 IAM 액세스 역할이 지정되어야 합니다. 다음으로 이동하여 액세스 권한을 확인할 수 있습니다. Users > User > Access
quantum-computing.job.update
감사
이 메소드를 호출하면 다음과 같은 감사 이벤트가 생성됩니다.
quantum-computing.job.update
입력
이름, 유형 | 설명 |
|---|---|
id 필수 string | 작업 ID |
이름, 유형 | 설명 |
|---|---|
tags 필수 string[] | 작업 또는 프로그램 태그 목록 |
인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/tags
curl -X PUT \
'https://quantum.cloud.ibm.com/api/v1/jobs/{id}/tags' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR-TOKEN' \
-H 'Service-CRN: YOUR-SERVICE-CRN' \
-H 'IBM-API-Version: 2024-01-01' \
-H 'Content-Type: application/json' \
-d '{"tags":["example"]}' 인스턴스가 eu-de 리전에 있는 경우, 대신 URL 를 사용하세요: https://eu-de.quantum.cloud.ibm.com/api/v1/jobs/{id}/tags
import requests
response = requests.request(
"PUT",
"https://quantum.cloud.ibm.com/api/v1/jobs/{id}/tags",
headers={
"Accept": "application/json",
"IBM-API-Version": "2024-01-01",
"Authorization": "Bearer YOUR-TOKEN",
"Service-CRN": "YOUR-SERVICE-CRN",
"Content-Type": "application/json"
},
data="{\"tags\":[\"example\"]}"
)
print(response.json())출력
상태 코드 | 설명 |
|---|---|
| 204 | 확인 |
| 401 | 권한 없음 |
| 403 | 금지됨 |
| 404 | 찾을 수 없음 |