qiskit-community / qiskit-qec

Qiskit quantum error correction framework
https://qiskit-community.github.io/qiskit-qec/
Apache License 2.0
84 stars 35 forks source link

add missing include statement in distance.h #423

Closed kaiott closed 8 months ago

kaiott commented 8 months ago

Summary

fixes #422. Adds a missing include statement in one of the C++ header files such that the C++ compiler does not exit with a fatal error.

Details and comments

The issue seems to only appear when installing the project on Windows. This can be due to different C++ compilers used by different operating systems (Clang on macOS and MSVC on Windows). It is possible that Clang is more permissive with missing include statements of the standard library, while MSVC is more strict. However, adding the include statement explicitly will not affect the behavior on macOS machines.

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.