#include <pauli_operator.hpp>
◆ SinglePauliOperator()
SinglePauliOperator::SinglePauliOperator |
( |
UINT |
index_, |
|
|
UINT |
pauli_id_ |
|
) |
| |
|
inline |
コンストラクタ
添字とパウリ演算子からインスタンスを生成する。
- Parameters
-
[in] | index_ | 作用するqubitの添字 |
[in] | pauli_id_ | パウリ演算子を表す整数。(I,X,Y,Z)が(0,1,2,3)に対応する。 |
- Returns
- 新しいインスタンス
◆ index()
UINT SinglePauliOperator::index |
( |
| ) |
const |
|
inline |
自身が作用する添字を返す
- Returns
- 自身が作用する添字
◆ pauli_id()
UINT SinglePauliOperator::pauli_id |
( |
| ) |
const |
|
inline |
自身を表すパウリ演算子を返す
- Returns
- 自身のもつパウリ演算子を表す整数。(I,X,Y,Z)が(0,1,2,3)に対応する。
◆ _index
UINT SinglePauliOperator::_index |
|
protected |
◆ _pauli_id
UINT SinglePauliOperator::_pauli_id |
|
protected |
The documentation for this class was generated from the following file: