Skip to content
Snippets Groups Projects
Unverified Commit 4541b956 authored by Sander de Snoo's avatar Sander de Snoo Committed by GitHub
Browse files

Merge pull request #29 from NicoHendrickx/dev

Index selection on non-square virtual/combi gate matrices
parents 998d11f2 1ee024d5
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,8 @@ class VirtualGateMatrix:
if self._invert:
matrix = np.linalg.inv(matrix)
if self._valid_indices:
matrix = matrix[:,self._valid_indices]
matrix = matrix[self._valid_indices, :]
if self._square:
matrix = matrix[self._valid_indices]
matrix = matrix[:, self._valid_indices]
return matrix
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment