Namespace sequant::io::serialization::v1¶
Detailed Description¶
Get a serialized string from an expression.
An expression that has a flat structure (ie. product does not contain sum or product subexpressions) is guaranteed to be reparsable to itself so that equality comparison holds: x == from_string(to_string(x)). For nested expressions the equality comparison is not guaranteed, however, for such an expression x, its corresponding evaluation node, eval_node(x), and the deserialized evaluation node, eval_node(from_string(to_string(x))) are equivalent.
expr
Expression to serialize
options
Customization options
wstring of the expression.
Namespaces¶
Functions¶
Specialized Template Function sequant::io::serialization::v1::from_string< ExprPtr >
Specialized Template Function sequant::io::serialization::v1::from_string< ResultExpr >
Function sequant::io::serialization::v1::SEQUANT_DESERIALIZATION_SPECIALIZATION
Function sequant::io::serialization::v1::to_string(const ExprPtr&, const SerializationOptions&)
Function sequant::io::serialization::v1::to_string(const Expr&, const SerializationOptions&)
Function sequant::io::serialization::v1::to_string(const ResultExpr&, const SerializationOptions&)
Function sequant::io::serialization::v1::to_string(const Index&, const SerializationOptions&)
Function sequant::io::serialization::v1::to_string< Statistics::BoseEinstein >
Function sequant::io::serialization::v1::to_string< Statistics::FermiDirac >