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