View source on GitHub |
This module provides generic tools for classes in ops/
Classes
class OperatorSpecificationError
: Common base class for all non-exit exceptions.
class OperatorUtilsError
: Common base class for all non-exit exceptions.
Functions
count_qubits(...)
: Compute the minimum number of qubits on which operator acts.
get_file_path(...)
: Compute file_path for the file that stores operator.
hermitian_conjugated(...)
: Return Hermitian conjugate of operator.
is_hermitian(...)
: Test if operator is Hermitian.
is_identity(...)
: Check whether QubitOperator of FermionOperator is identity.
load_operator(...)
: Load FermionOperator or QubitOperator from file.
save_operator(...)
: Save FermionOperator or QubitOperator to file.
Other Members | |
---|---|
DATA_DIRECTORY |
'/tmpfs/venv/lib/python3.10/site-packages/openfermion/testing/data'
|
EQ_TOLERANCE |
1e-08
|