Skip to content

Commit

Permalink
set quantum device batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
ankhoa1212 committed Nov 18, 2024
1 parent 611cc2a commit f62d372
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/clifford_qnn/mnist_clifford_qnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def forward(self, x, use_qiskit=False):
self.q_device, self.encoder, self.q_layer, self.measure, x
)
else:
self.q_device = tq.QuantumDevice(n_wires=self.n_wires, bsz=bsz)
self.encoder(self.q_device, x)
self.q_layer(self.q_device)
x = self.measure(self.q_device)
Expand Down

0 comments on commit f62d372

Please sign in to comment.