Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
e5019b2f
Commit
e5019b2f
authored
Jul 28, 2021
by
Neel Shah
Browse files
minor bug fix, allowing spaces to be an integer and not just a tuple with a single integer
parent
f3e0cd1a
Pipeline
#106602
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/operators/matrix_product_operator.py
View file @
e5019b2f
...
@@ -134,7 +134,7 @@ class MatrixProductOperator(LinearOperator):
...
@@ -134,7 +134,7 @@ class MatrixProductOperator(LinearOperator):
active_axes
=
[]
active_axes
=
[]
self
.
_inactive_axes
=
list
(
range
(
len
(
self
.
_domain
)))
self
.
_inactive_axes
=
list
(
range
(
len
(
self
.
_domain
)))
domain_shape
=
[]
domain_shape
=
[]
for
space_idx
in
spaces
:
for
space_idx
in
self
.
_
spaces
:
domain_shape
+=
self
.
_domain
[
space_idx
].
shape
domain_shape
+=
self
.
_domain
[
space_idx
].
shape
active_axes
+=
self
.
_domain
.
axes
[
space_idx
]
active_axes
+=
self
.
_domain
.
axes
[
space_idx
]
if
space_idx
in
self
.
_inactive_axes
:
if
space_idx
in
self
.
_inactive_axes
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment