Skip to main content
IBM Quantum Platform
翻訳情報

このページの追加言語翻訳は近日公開予定です。

Mapper Library

This module provides efficient implementations of commonly used operator representation mapper routines.


Python wrappers

The functions below are thin, type-agnostic convenience mappers. Each delegates to the appropriate library implementation below under the hood, based on the type of the object it is given. They do not implement any conversion logic themselves.

コラム「 1 」
コラム「 2 」
fermion_operator(operator)Converts an operator into a FermionOperator.
jordan_wigner(operator, num_qubits)Map an operator to a SparseObservable under the Jordan-Wigner transformation.
majorana_operator(operator)Converts an operator into a MajoranaOperator.
ternary_tree(operator, encoding, num_qubits)Map an operator to a SparseObservable under a ternary-tree encoding.

Library implementations

The functions below are the native, efficient mapper implementations backing this module.

コラム「 1 」
コラム「 2 」
fermion_jordan_wigner(op, num_qubits)Map a FermionOperator to a SparseObservable under the Jordan-Wigner transformation.
majorana_jordan_wigner(op, num_qubits)Map a MajoranaOperator to a SparseObservable under the Jordan-Wigner transformation.
edge_vertex_jordan_wigner(op, num_qubits)Map an EdgeVertexOperator to a SparseObservable under the Jordan-Wigner transformation.
transfer_vertex_jordan_wigner(op, num_qubits)Map a TransferVertexOperator to a SparseObservable under the Jordan-Wigner transformation.
fermion_to_majorana(fer_op)Map a FermionOperator to a MajoranaOperator.
majorana_to_fermion(maj_op)Map a MajoranaOperator to a FermionOperator.
edge_vertex_to_fermion(inter_op)Map an EdgeVertexOperator to a FermionOperator.
edge_vertex_to_majorana(inter_op)Map an EdgeVertexOperator to a MajoranaOperator.
transfer_vertex_to_fermion(inter_op)Map a TransferVertexOperator to a FermionOperator.
transfer_vertex_to_majorana(inter_op)Map a TransferVertexOperator to a MajoranaOperator.
transfer_vertex_to_edge_vertex(inter_op)Map a TransferVertexOperator to an EdgeVertexOperator.

Ternary-tree encodings

These map an operator through a ternary-tree encoding, which is built with TernaryTree and TernaryTreeEncoding from the mappers framework module. Compile a tree once and reuse the encoding across every operator mapped through it. The type-agnostic ternary_tree() wrapper dispatches to these.

コラム「 1 」
コラム「 2 」
fermion_ternary_tree(op, encoding, num_qubits)Map a FermionOperator to a SparseObservable under a ternary-tree encoding.
majorana_ternary_tree(op, encoding, num_qubits)Map a MajoranaOperator to a SparseObservable under a ternary-tree encoding.
edge_vertex_ternary_tree(op, encoding, ...)Map an EdgeVertexOperator to a SparseObservable under a ternary-tree encoding.
transfer_vertex_ternary_tree(op, encoding, ...)Map a TransferVertexOperator to a SparseObservable under a ternary-tree encoding.
このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。