Fixed edgede case in heuristic state prep for codes with even distances.
Furthermore changed calculation of logical error rate to be calculated per qubit
Checklist:
[x] The pull request only contains commits that are related to it.
[x] I have added appropriate tests and documentation.
[x] I have made sure that all CI jobs on GitHub pass.
[x] The pull request introduces no new warnings and follows the project's style guidelines.
Description
Fixed edgede case in heuristic state prep for codes with even distances. Furthermore changed calculation of logical error rate to be calculated per qubit
Checklist: