Skip to content

Commit 326eb30

Browse files
authored
Update sample.py (#683)
1 parent 5ddde16 commit 326eb30

File tree

1 file changed

+1
-1
lines changed
  • tensorflow_quantum/python/layers/circuit_executors

1 file changed

+1
-1
lines changed

tensorflow_quantum/python/layers/circuit_executors/sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Sample(tf.keras.layers.Layer):
3535
... q1 = cirq.GridQubit(1, 0)
3636
... circuit = cirq.Circuit(
3737
... cirq.X(q0),
38-
... cirq.CNOT(q1)
38+
... cirq.CNOT(q0, q1)
3939
... )
4040
...
4141
... return circuit

0 commit comments

Comments
 (0)