Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Interface to Qutip

Struqture has an interface to the QuTiP package that can be used to transform struqture spin objects to qutip objects for simulation purposes.

It is a separate package from struqture that can be installed with:

pip install struqture-qutip-interface

More information can be found on the struqture-qutip-interface github page

Interface to OpenFermion

Struqture also has an interface to the OpenFermion package, allowing users to switch from one package to the other.

OpenFermion is an open-source library for compiling and analyzing quantum algorithms to simulate fermionic systems, including quantum chemistry. Among other functionalities, this version features data structures and tools for obtaining and manipulating representations of fermionic and qubit Hamiltonians. This interface is aimed at any user already using openfermion who wants to create and use Hamiltonians with struqture. It can also be of use to users using struqture to define Hamiltonians and want to use cirq, for which OpenFermion formalism is needed.

To use this interface, OpenFermion must be installed using the command below. Otherwise, Struqture will not export the interface.

pip install openfermion

For now only the conversion to and from PauliHamiltonian is implemented with the functions struqture_to_openfermion and openfermion_to_struqture.