From 326eb300d4a217f34f75cc8e0ff47bc5fc385803 Mon Sep 17 00:00:00 2001 From: Owen Lockwood <42878312+lockwo@users.noreply.github.com> Date: Tue, 19 Apr 2022 15:10:27 -0400 Subject: [PATCH] Update sample.py (#683) --- tensorflow_quantum/python/layers/circuit_executors/sample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow_quantum/python/layers/circuit_executors/sample.py b/tensorflow_quantum/python/layers/circuit_executors/sample.py index 4b4afe3bb..616d811bc 100644 --- a/tensorflow_quantum/python/layers/circuit_executors/sample.py +++ b/tensorflow_quantum/python/layers/circuit_executors/sample.py @@ -35,7 +35,7 @@ class Sample(tf.keras.layers.Layer): ... q1 = cirq.GridQubit(1, 0) ... circuit = cirq.Circuit( ... cirq.X(q0), - ... cirq.CNOT(q1) + ... cirq.CNOT(q0, q1) ... ) ... ... return circuit