Skip to content

Commit

Permalink
Remove QHACK banner (#98)
Browse files Browse the repository at this point in the history
* Remove QHACK banner

* format (due to new version of black)
  • Loading branch information
antalszava committed Feb 28, 2022
1 parent 64e877c commit e1e3308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions doc/xanadu_theme/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@
<li class="nav-item">
<a class="nav-link" href="https://pennylane.ai/blog">Blog</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://qhack.ai"><img src="https://pennylane.ai/img/qhack_plain_black.png"></a>
</li>
</ul>
<!-- Links -->

Expand Down
4 changes: 2 additions & 2 deletions pennylane_forest/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def mat_vec_product(self, mat, vec, device_wire_labels):
"""
num_wires = len(device_wire_labels)

if mat.shape != (2 ** num_wires, 2 ** num_wires):
if mat.shape != (2**num_wires, 2**num_wires):
raise ValueError(
f"Please specify a {2 ** num_wires} x {2 ** num_wires} matrix for {num_wires} wires."
)
Expand Down Expand Up @@ -336,7 +336,7 @@ def mat_vec_product(self, mat, vec, device_wire_labels):
inv_perm = np.argsort(perm)
state_multi_index = np.transpose(tdot, inv_perm)

return np.reshape(state_multi_index, 2 ** self.num_wires)
return np.reshape(state_multi_index, 2**self.num_wires)

def analytic_probability(self, wires=None):
"""Return the (marginal) probability of each computational basis
Expand Down

0 comments on commit e1e3308

Please sign in to comment.