# ModelType

Source: https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.types.ModelType

```python
class fireopal.types.ModelType(hopping_amplitude, on_site_interaction, chemical_potential, name='Fermi-Hubbard', lattice_type='1D')
```

Definition of the model to simulate.

### Parameters
* **hopping_amplitude** (*float* *or* *list* *[* *float* *]*) – Hopping amplitude between sites.
* **on_site_interaction** (*float* *or* *list* *[* *float* *]*) – On-site interaction strength.
* **chemical_potential** (*float* *or* *list* *[* *float* *]*) – Chemical potential at each site.
* **name** (*str* *,* *optional*) – Name of the model (for example, “Fermi-Hubbard”). Defaults to “Fermi-Hubbard”.
* **lattice_type** (*str* *,* *optional*) – Type of the lattice. Currently only 1D is supported. Defaults to “1D”.
### Raises
**QctrlArgumentsValueError** – If any field has an invalid type or value.

## Methods

|||
|-------------------------------------------------------------------------------------------|--------------------------------------------|
| [from_dict](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.types.ModelType.from_dict.md#fireopal.types.ModelType.from_dict)   | Deserialize the model from a dictionary.   |
| [to_dict](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.types.ModelType.to_dict.md#fireopal.types.ModelType.to_dict)         | Serialize the model to a dictionary.       |

## Attributes

|||
|-----------------------------------------------------------------------------------------------------------------------|----|
| [lattice_type](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.types.ModelType.lattice_type.md#fireopal.types.ModelType.lattice_type)                      |    |
| [name](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.types.ModelType.name.md#fireopal.types.ModelType.name)                                              |    |
| [hopping_amplitude](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.types.ModelType.hopping_amplitude.md#fireopal.types.ModelType.hopping_amplitude)       |    |
| [on_site_interaction](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.types.ModelType.on_site_interaction.md#fireopal.types.ModelType.on_site_interaction) |    |
| [chemical_potential](https://docs.q-ctrl.com/references/fire-opal/fireopal/fireopal.types.ModelType.chemical_potential.md#fireopal.types.ModelType.chemical_potential)    |    |
