Skip to main content

Questions tagged [openfermion]

For questions related to OpenFermion python library for studying quantum algorithms related to fermionic systems such as those arising in quantum chemistry.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

Fermions to Qubits mapping in Qiskit

I am currently studying the mathematical aspects of fermion-to-qubit mapping available in Qiskit here. While I am interested in understanding the underlying transformation, I am having trouble ...
user3116936's user avatar
1 vote
1 answer
88 views

How to write an XY model Hamilonian which is in the summation form in Qiskit (1.1.0)

I have a Hamiltonian as following $$ H= \sum_{i}^{n-1}(c_nX_iX_{i+1}+b_nZ_iZ_{i+1})+\sum_{i=1}^{n}b_nY$$ where $n:$ number of qubits. I want to define this Hamiltonian in qiskit and use it as an ...
Bakaneko's user avatar
4 votes
0 answers
125 views

Difference between Qiskit and Openfermion two body integrals

I am struggling with understanding the differences between OpenFermion and Qiskit libraries when it comes to Molecular Data, two body integrals. For example, I am working with the following ...
Eugen's user avatar
  • 41
1 vote
0 answers
215 views

How to rewrite this Cirq problem into Qiskit?

I have a following example problem in Cirq, representing a very simple operator given by $$ \hat{H} = a^\dagger_0a_2 + a_0a^\dagger_1 + 0.9\, a^\dagger_0a_1a^\dagger_2a^\dagger_3 + a^\...
Eenoku's user avatar
  • 264
2 votes
0 answers
97 views

Reproducing Hydrogen Molecule Hamiltonian in OpenFermion

I am learning quantum chemistry at the moment and I'm trying to understand the Hamiltonian generated by the OpenFermion package. I'm now stuck at understanding how openfermion calculates the ...
user avatar
2 votes
1 answer
162 views

What does PhISwap gate mean in Cirq?

I am currently using the Cirq pakage and when drawing the circuit structure, I constantly encountered the PhISwap gate, like in here. What does this gate mean?
ironmanaudi's user avatar
2 votes
0 answers
61 views

What operators preserve antisymmetry?

I would like to understand better what kind of operators maintain antisymmetry as explained in Quantum simulation of chemistry with sublinear scaling in basis size: Evolution under the Hamiltonian ...
Pablo's user avatar
  • 583
6 votes
2 answers
1k views

How to perform a controlled Pauli string rotation gate?

I would like to know some circuit decomposition for an arbitrary controlled Pauli string rotation: \begin{equation} |0\rangle\langle 0| \otimes e^{i \theta (P_1\otimes...\otimes P_n)}+ |1\rangle\...
Pablo's user avatar
  • 583
4 votes
0 answers
102 views

Freeze electrons in OpenFermion [closed]

I am trying to generate a Hamiltonian for the H2O molecule using openfermion-pyscf. As far as I understand by default OpenFermion is generating one 1s spatial orbital for each of the H atoms and 1s, ...
suren's user avatar
  • 41
1 vote
1 answer
597 views

Hartree Fock state in Openfermion

I wonder what is the Hartree Fock state in openfermion. Is it 110000 or 000011, assume 6 qubits and 2 particles?
ironmanaudi's user avatar
1 vote
1 answer
109 views

Evaluating $\texttt{FermionOperator}$ equality in Openfermion

Apologies if this is the wrong place to ask this kind of question. I have a simple question about Openfermion. I have two normal ordered FermionOperators ...
Solarflare0's user avatar
1 vote
1 answer
183 views

Openfermion state transformation from Bravyi-Kitaev basis to occupation number

I'm working in the Bravyi-Kitaev basis implemented by the openfermion.bravyi_kitaev() function to find the ground state of a fermionic operator in the BK ...
NaturalLog's user avatar
0 votes
0 answers
57 views

Questions about OpenFermion

I have some questions about OpenFermion. I'm exploring the code, does anybody knows how to implement triatomic molecules like Li-H2? How should I set the number of orbitals? Last but not least, once ...
Piero Naldesi's user avatar
2 votes
1 answer
326 views

Compute expectation value of an operator in openfermion

I am trying to compute the 2-electron reduced-density matrix (2-RDM) for a given quantum state with openfermion. The code is as follow ...
ironmanaudi's user avatar
1 vote
1 answer
288 views

Openfermion : `get_sparse_operator` issue

I am trying to use operfermion to calculated the eigen values for different molecules. Tried for Hydrogen, LithiumHydride, Water. It works fine. When Itried to calculated the same thing for Ozone, ...
Raman Sehgal's user avatar
7 votes
1 answer
1k views

Finding the norm of a Hamiltonian

I am experimenting with https://journals.aps.org/prx/pdf/10.1103/PhysRevX.8.041015 and in equation 36 I find that they use the norm of the Hamiltonian. Is there a clean way to compute it, or an upper ...
Pablo's user avatar
  • 583
4 votes
1 answer
317 views

How to get eigenvectors of Hamiltonian in OpenFermion

In OpenFermion you can create a Hamiltonian in terms of creation and annihilation pretty easily: ...
trg's user avatar
  • 75
0 votes
0 answers
246 views

Molecular Docking using Quantum Computing

I would like to ask if somebody could suggest me a pair of ligand-Protein which had been validated and the corresponding resulting drug is already being used commercially. I am interested in ...
QuantumNeeraj's user avatar
3 votes
1 answer
85 views

noisy circuit by openfermion

I am working on designing quantum error mitigation algorithms for simulating chemical systems. Therefore, a necessary component is to add noisy to the ideal circuit when using a quantum simulator. But ...
ironmanaudi's user avatar
3 votes
1 answer
716 views

implement variational quantum eigensolver with openfermion

Can someone provide me with an example about how to implement VQE with OpenFermion, for example, use the UCCSD ansatz to get the ground state energy of LiH. I have checked some code, but none of them ...
ironmanaudi's user avatar
2 votes
1 answer
607 views

How to get a molecular Hamiltonians in OpenFermion

I want to get a jordan_wigner_hamiltonians of a molecule-ion by using ...
cloudfire's user avatar
3 votes
0 answers
111 views

"Wn state" in Bravyi-Kitaev encoding

For a particular simulation, I need the initial (physical) state of the QC to represent the equal superposition of all single-occupancy fermionic second-quantized states. In Jordan-Wigner encoding, I ...
mavzolej's user avatar
  • 2,221
5 votes
0 answers
725 views

OpenFermion to Qiskit

Is there a direct way to go from an object generated in OpenFermion to objects usable in Qiskit? I can't find anything about any plugin. It's not too hard to translate into pyQuil and then to Qiskit ...
Andrew Jackson's user avatar
3 votes
0 answers
75 views

Error during Forest OpenFermion installation [closed]

I tried installing Forest OpenFermion by pip install forestopenfermion and I got the following long error message (cut): ...
Michelle's user avatar