Skip to content

Commit

Permalink
PEP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
AGaliciaMartinez committed Dec 28, 2021
1 parent 6f1b65b commit cd7072e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qutip_tensornetwork/core/data/mul.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def mul_network(network, value):
"""
return network * value


def imul_network(network, value):
"""
Perform the in-place operation
Expand All @@ -23,6 +24,7 @@ def imul_network(network, value):
network *= value
return network


def neg_network(network):
"""
Perform the operation
Expand All @@ -31,6 +33,7 @@ def neg_network(network):
"""
return network * -1


qutip.data.mul.add_specialisations([(Network, Network, mul_network)])
qutip.data.imul.add_specialisations([(Network, Network, imul_network)])
qutip.data.neg.add_specialisations([(Network, Network, neg_network)])

0 comments on commit cd7072e

Please sign in to comment.