Skip to main content
IBM Quantum Platform
번역 정보

이 페이지의 추가 언어 번역이 곧 제공될 예정입니다.

PreMeasure

class samplomatic.pre_samplex.PreMeasure(subsystems: Partition[int], creg_names: list[str], creg_offsets: list[int], *, trace_info: TraceInfo | None = None)

GitHub

Bases: PreNode

The propagation node type used for measurements during samplex building.

Attributes Summary

칼럼 1
칼럼 2
creg_namesThe classical register names this measurement writes to, one per subsystem.
creg_offsetsThe indices within the classical registers, one per subsystem.
directionThe direction of virtual gates that can interact with this node.
subsystemsThe subsystems that virtual gates act on.
trace_infoDebug trace information, populated when building with debug=True.

Methods Summary

칼럼 1
칼럼 2
from_cluster(nodes)
get_style()Summarizes the style of this node when plotted via plot_graph().
to_key()

Attributes Documentation

creg_names

Type: list[str]

Default value: <dataclasses._MISSING_TYPE object>

The classical register names this measurement writes to, one per subsystem.

creg_offsets

Type: list[int]

Default value: <dataclasses._MISSING_TYPE object>

The indices within the classical registers, one per subsystem.

direction

Type: Direction

Default value: <dataclasses._MISSING_TYPE object>

The direction of virtual gates that can interact with this node.

subsystems

Type: Partition[int]

Default value: <dataclasses._MISSING_TYPE object>

The subsystems that virtual gates act on.

trace_info

Type: TraceInfo | None

Default value: None

Debug trace information, populated when building with debug=True.

Methods Documentation

from_cluster

classmethod from_cluster(nodes: list[PreMeasure]) → PreMeasure

GitHub

get_style

get_style() → NodeStyle

GitHub

Summarizes the style of this node when plotted via plot_graph().

to_key

to_key() → Hashable

GitHub
이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.