Function observable::create_observable_from_openfermion_file¶
Defined in File observable.hpp
Function Documentation¶
-
HermitianQuantumOperator *observable::create_observable_from_openfermion_file(std::string file_path)¶
OpenFermionから出力されたオブザーバブルのテキストファイルを読み込んでHermitianQuantumOperatorを生成します。オブザーバブルのqubit数はファイル読み込み時に、オブザーバブルの構成に必要なqubit数となります。
- パラメータ
file_path -- [in] OpenFermion形式のオブザーバブルのファイルパス
- 戻り値
Observableのインスタンス