mirror of
https://github.com/vale981/two_qubit_model
synced 2025-03-05 17:51:40 -05:00
support zero interactions
This commit is contained in:
parent
5e9e053314
commit
60adc077b1
1 changed files with 3 additions and 1 deletions
|
@ -202,7 +202,9 @@ class TwoQubitModel:
|
||||||
"""The inter-qubit interaction hamiltonian."""
|
"""The inter-qubit interaction hamiltonian."""
|
||||||
|
|
||||||
interaction = self.bare_interaction
|
interaction = self.bare_interaction
|
||||||
interaction *= self.γ / (2 * max(interaction.eigenenergies()))
|
|
||||||
|
norm = max(interaction.eigenenergies())
|
||||||
|
interaction *= self.γ / (2 * norm) if norm > 0 else 0
|
||||||
|
|
||||||
return interaction
|
return interaction
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue