qiskit.aqua.operators.legacy.WeightedPauliOperator.to_file¶ WeightedPauliOperator.to_file(file_name)[source]¶ Save operator to a file in pauli representation. Parameters file_name (str) – path to the file