from qiskit_nature.problems.second_quantization.lattice.lattices import LineLattice
from qiskit_nature.problems.second_quantization.lattice.models import FermiHubbardModel

line = LineLattice(2)
fermi = FermiHubbardModel.uniform_parameters(line, 2.0, 4.0, 3.0)
print(fermi.second_q_ops())  # Note: the trailing `s`

from qiskit_nature.second_q.hamiltonians.lattices import LineLattice
from qiskit_nature.second_q.hamiltonians import FermiHubbardModel

line = LineLattice(2)
fermi = FermiHubbardModel(line.uniform_parameters(2.0, 4.0), 3.0)
print(fermi.second_q_op())  # Note: NO trailing `s`

import numpy as np
from qiskit_nature.problems.second_quantization.lattice.models import FermiHubbardModel

interaction = np.array([[4.0, 2.0], [2.0, 4.0]])

fermi = FermiHubbardModel.from_parameters(interaction, 3.0)
print(fermi.second_q_ops())  # Note: the trailing `s`

import numpy as np
from qiskit_nature.second_q.hamiltonians.lattices import Lattice
from qiskit_nature.second_q.hamiltonians import FermiHubbardModel

interaction = np.array([[4.0, 2.0], [2.0, 4.0]])

lattice = Lattice.from_adjacency_matrix(interaction)
fermi = FermiHubbardModel(lattice, 3.0)
print(fermi.second_q_op())  # Note: NO trailing `s`

from qiskit_nature.problems.second_quantization.lattice.lattices import LineLattice
from qiskit_nature.problems.second_quantization.lattice.models import IsingModel

line = LineLattice(2)
ising = IsingModel.uniform_parameters(line, 2.0, 4.0)
print(ising.second_q_ops())  # Note: the trailing `s`

from qiskit_nature.second_q.hamiltonians.lattices import LineLattice
from qiskit_nature.second_q.hamiltonians import IsingModel

line = LineLattice(2)
ising = IsingModel(line.uniform_parameters(2.0, 4.0))
print(ising.second_q_op())  # Note: NO trailing `s`

import numpy as np
from qiskit_nature.problems.second_quantization.lattice.models import IsingModel

interaction = np.array([[4.0, 2.0], [2.0, 4.0]])

ising = IsingModel.from_parameters(interaction)
print(ising.second_q_ops())  # Note: the trailing `s`

import numpy as np
from qiskit_nature.second_q.hamiltonians.lattices import Lattice
from qiskit_nature.second_q.hamiltonians import IsingModel

interaction = np.array([[4.0, 2.0], [2.0, 4.0]])

lattice = Lattice.from_adjacency_matrix(interaction)
ising = IsingModel(lattice)
print(ising.second_q_op())  # Note: NO trailing `s`

import qiskit.tools.jupyter

%qiskit_version_table
%qiskit_copyright