We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9abba82 commit a56c2b7Copy full SHA for a56c2b7
tensorflow_quantum/python/util.py
@@ -113,7 +113,7 @@ def _apply_random_control(gate, all_qubits):
113
if n_open == 0:
114
# No open qubits to control. Return unmodified gate.
115
return gate
116
- control_locs = random.sample(open_qubits, n_open)
+ control_locs = random.sample(list(open_qubits), n_open)
117
control_values = random.choices([0, 1], k=n_open)
118
# TODO(tonybruguier,#636): Here we call the parent's class controlled_by
119
# because Cirq's breaking change #4167 created 3-qubit gates that cannot be
0 commit comments