Trace 類別
建構函式
Trace(compute_qubits)
參數
| 名稱 | Description |
|---|---|
|
compute_qubits
必要
|
|
方法
add_block
add_block(repetitions=1)
參數
| 名稱 | Description |
|---|---|
|
repetitions
|
預設值: 1
|
add_operation
add_operation(id, qubits, params=Ellipsis)
參數
| 名稱 | Description |
|---|---|
|
id
必要
|
|
|
qubits
必要
|
|
|
params
|
預設值: Ellipsis
|
clone_empty
clone_empty(compute_qubits=None)
參數
| 名稱 | Description |
|---|---|
|
compute_qubits
|
預設值: None
|
estimate
estimate(isa, max_error=None)
參數
| 名稱 | Description |
|---|---|
|
isa
必要
|
|
|
max_error
|
預設值: None
|
from_json
from_json()
參數
| 名稱 | Description |
|---|---|
|
json
必要
|
|
get_property
get_property(key)
參數
| 名稱 | Description |
|---|---|
|
key
必要
|
|
has_memory_qubits
has_memory_qubits()
has_property
has_property(key)
參數
| 名稱 | Description |
|---|---|
|
key
必要
|
|
increment_base_error
increment_base_error(amount)
參數
| 名稱 | Description |
|---|---|
|
amount
必要
|
|
increment_memory_qubits
increment_memory_qubits(amount)
參數
| 名稱 | Description |
|---|---|
|
amount
必要
|
|
increment_resource_state
increment_resource_state(resource_id, amount)
參數
| 名稱 | Description |
|---|---|
|
resource_id
必要
|
|
|
amount
必要
|
|
root_block
root_block()
runtime
runtime(isa)
參數
| 名稱 | Description |
|---|---|
|
isa
必要
|
|
set_property
set_property(key, value)
參數
| 名稱 | Description |
|---|---|
|
key
必要
|
|
|
value
必要
|
|
to_json
to_json()