Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Gopal-Dahale committed May 31, 2024
1 parent b0d8446 commit 428be4a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/QCBM/qcbm_gaussian_mixture.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import matplotlib.pyplot as plt
import numpy as np
import torch
import torch.nn as nn
from torchquantum.algorithm import QCBM, MMDLoss
import torchquantum as tq

Expand Down
2 changes: 0 additions & 2 deletions test/algorithm/test_qcbm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from torchquantum.algorithm.qcbm import QCBM, MMDLoss
import torchquantum as tq
import torch
import pytest


def test_qcbm_forward():
Expand Down Expand Up @@ -29,5 +28,4 @@ def test_mmd_loss():

mmd = MMDLoss(bandwidth, space)
loss = mmd(torch.zeros(4), torch.zeros(4))
print(loss)
assert torch.isclose(loss, torch.tensor(0.0), rtol=1e-5)

0 comments on commit 428be4a

Please sign in to comment.