Skip to content

Commit

Permalink
Merge pull request #100 from caitaozhan/master
Browse files Browse the repository at this point in the history
fix a minor bug in quantumnat.py
  • Loading branch information
Hanrui-Wang authored Mar 29, 2023
2 parents f754a1b + c999f94 commit ac8e551
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/quantumnat/quantumnat.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def __init__(self):
self.measure = tq.MeasureAll(tq.PauliZ)

def forward(self, x, use_qiskit=False):
self.q_device.reset_states(x.shape[0])
bsz = x.shape[0]
x = F.avg_pool2d(x, 6).view(bsz, 16)

Expand Down

0 comments on commit ac8e551

Please sign in to comment.