Skip to content

Getting trotterized exponential of a Hamiltonian #227

Answered by alexfleury-sb
einarG-1qbit asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @einarG-1qbit! Thanks for your question: here is a more in-depth explanation (than yesterday's answer in slack):

  1. Yes, you are right.
  2. The first thing to do in that case is to convert the Hamiltonian from a fermion to a qubit basis. At the time of writing those lines, Tangelo supports the Jordan-Wigner (JW), Bravyi-Kitaev (BK), symmetry-conserving BK (scBK) and Jiang-Kalev-Mruczkiewicz-Neven (JKMN) mapping. The respective references should be included in the docstrings.
    This can be done with the fermion_to_qubit_mapping function (here an example where we want the JW mapping with the spin-up then spin-down orbital ordering).
from tangelo.toolboxes.qubit_mappings.mapping_transform import f…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@einarG-1qbit
Comment options

Answer selected by einarG-1qbit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants