Skip to content

Commit

Permalink
fix swapped docs of FRYGate and FRZGate
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Jan 8, 2024
1 parent 0e2396f commit 0b39928
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions qiskit_cold_atom/fermions/fermion_gate_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ def operator_to_mat(

# loop over all basis states
for i_basis, occupations in enumerate(basis_occupations):

new_occupations = deepcopy(occupations)
mapped_to_zero = (
False # boolean flag to check whether the basis state is mapped to zero
Expand All @@ -174,7 +173,6 @@ def operator_to_mat(

# in reverse, loop over all individual fermionic creators/annihilators in the opstring:
for k, symbol in reversed(list(enumerate(opstring))):

if symbol == "I":
continue

Expand Down Expand Up @@ -568,7 +566,7 @@ class FRYGate(FermionicGate):
The generating Hamiltonian of the FermionRy gate is
:math:`H = \phi (f^\dagger_{x,\uparrow} f_{x,\uparrow} - f^\dagger_{x,\downarrow} f_{x,\downarrow})`
:math:`H = i \phi (f^\dagger_{x,\downarrow} f_{x,\uparrow}-f^\dagger_{x,\uparrow} f_{x,\downarrow})`
where :math:`x` is the index of the mode and :math:`\phi` is the free gate parameter
"""
Expand Down Expand Up @@ -606,7 +604,7 @@ class FRZGate(FermionicGate):
The generating Hamiltonian of the FermionRz gate is
:math:`H = i \phi (f^\dagger_{x,\downarrow} f_{x,\uparrow}-f^\dagger_{x,\uparrow} f_{x,\downarrow})`
:math:`H = \phi (f^\dagger_{x,\uparrow} f_{x,\uparrow} - f^\dagger_{x,\downarrow} f_{x,\downarrow})`
where :math:`x` is the index of the mode and :math:`\phi` is the free gate parameter.
"""
Expand Down

0 comments on commit 0b39928

Please sign in to comment.