qiskit-community / qiskit-dynamics

Tools for building and solving models of quantum systems in Qiskit
https://qiskit-community.github.io/qiskit-dynamics/
Apache License 2.0
106 stars 60 forks source link

Add validation checks to ExpansionModel construction #184

Closed DanPuzzuoli closed 1 year ago

DanPuzzuoli commented 1 year ago

Summary

Closes #160

Adds two validation checks in ExpansionModel.__init__ that verifies equal lengths for operators, carrier_freqs, and chebyshev_orders.

Details and comments

Tests have also been added, and additional minor changes to the documentation (word wrapping) have been performed.