Skip to main content
IBM Quantum Platform
번역 정보

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

Observable terms

qiskit_addon_cutting.utils.observable_terms

Utilities for working with the unique terms of a collection of SparsePauliOps.

gather_unique_observable_terms

gather_unique_observable_terms(observables)

GitHub

Inspect the contents of each observable to find and return the unique Pauli terms.

Return type

PauliList

Parameters

observables (Sequence[Pauli | SparsePauliOp] | PauliList)

reconstruct_observable_expvals_from_terms

reconstruct_observable_expvals_from_terms(observables, term_expvals)

GitHub

Reconstruct the expectation values given the expectation value of each unique term.

Return type

list[complex]

Parameters

  • observables (Iterable[Pauli | SparsePauliOp] | PauliList)
  • term_expvals (Mapping[Pauli, float |complex])
이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.