Skip to content

Commit

Permalink
draw circ
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Nov 25, 2024
1 parent a4e4281 commit b4748c6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/qibolab/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,16 @@ def execute_circuit(self, circuit, initial_state=None, nshots=1000):

sequence, measurement_map = self.compiler.compile(circuit, self.platform)

print(sequence)
if str(nshots)[0] == "1":
print(circuit.wire_names)

if nshots == 1234:
if str(nshots)[1] == "1":
circuit.draw()

if str(nshots)[2] == "1":
print(sequence)

if str(nshots)[3] == "1":
return None

if not self.platform.is_connected:
Expand Down

0 comments on commit b4748c6

Please sign in to comment.