tangelo.linq.helpers.operators package

Submodules

tangelo.linq.helpers.operators.operators module

Helper functions on QubitOperators, such as exporting Openfermion QubitOperator to file and vice-versa, or to visualize its coefficients for example.

tangelo.linq.helpers.operators.operators.print_histogram_coeffs(qb_ham)

Convenience function printing a matplotlib histogram of the magnitudes of the coefficient in a QubitOperator object. Combine with the compress method of the QubitOperator class, this allows users to quickly identify what terms in the operator can be discarded, depending on the target accuracy of calculations.

Module contents