Transfer to rust binary matrices utils from: https://github.com/Qiskit/qiskit/blob/main/qiskit/synthesis/linear/linear_matrix_utils.py. This is needed for many linear functions and clifford synthesis methods: #12238 #12237 #12228 #12242 #12231