%matplotlib notebook

import sys
sys.path.append('../')
import CreativeQiskit

grid = CreativeQiskit.pauli_grid()
grid.update_grid()

for gate in [['x','1'],['h','0'],['z','0'],['h','1'],['z','1']]:
    command = 'grid.qc.'+gate[0]+'(grid.qr['+gate[1]+'])'
    eval(command)
    grid.update_grid()

grid = CreativeQiskit.pauli_grid(mode='line')
grid.update_grid()

grid = CreativeQiskit.pauli_grid(y_boxes=True)
grid.update_grid()

grid.qc.h(grid.qr[0])
grid.update_grid()

grid = CreativeQiskit.pauli_grid(y_boxes=True)
grid.update_grid(labels=True)

grid.qc.h(grid.qr[0])
grid.qc.s(grid.qr[0])
grid.update_grid(labels=True)

grid = CreativeQiskit.pauli_grid(noisy=True)
grid.update_grid()

