Skip to content

Commit f62d372

Browse files
committed
set quantum device batch size
1 parent 611cc2a commit f62d372

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/clifford_qnn/mnist_clifford_qnn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def forward(self, x, use_qiskit=False):
6060
self.q_device, self.encoder, self.q_layer, self.measure, x
6161
)
6262
else:
63+
self.q_device = tq.QuantumDevice(n_wires=self.n_wires, bsz=bsz)
6364
self.encoder(self.q_device, x)
6465
self.q_layer(self.q_device)
6566
x = self.measure(self.q_device)

0 commit comments

Comments
 (0)