qiskit-community / ffsim

Faster simulations of fermionic quantum circuits.
https://qiskit-community.github.io/ffsim/
Apache License 2.0
19 stars 5 forks source link

Validation for dataclasses #240

Open kevinsung opened 4 weeks ago

kevinsung commented 4 weeks ago

The task is to implement input validation for some of the dataclasses in ffsim. This can be made optional using an init-only field called validate: bool and a __post_init__ method. Examples: