Skip to content

Commit 363a6e5

Browse files
Merge pull request #1336 from qiboteam/castingqubits
random_clifford casting qubits to python int
2 parents a61f9f7 + bbe925f commit 363a6e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qibo/quantum_info/random_ensembles.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1104,17 +1104,17 @@ def _sample_from_quantum_mallows_distribution(nqubits: int, local_state):
11041104

11051105
@cache
11061106
def _create_S(q):
1107-
return gates.S(q)
1107+
return gates.S(int(q))
11081108

11091109

11101110
@cache
11111111
def _create_CZ(cq, tq):
1112-
return gates.CZ(cq, tq)
1112+
return gates.CZ(int(cq), int(tq))
11131113

11141114

11151115
@cache
11161116
def _create_CNOT(cq, tq):
1117-
return gates.CNOT(cq, tq)
1117+
return gates.CNOT(int(cq), int(tq))
11181118

11191119

11201120
def _operator_from_hadamard_free_group(

0 commit comments

Comments
 (0)