Key files:
MasterRunner.pycompiles all the following files from a single class.solve.pycontains the classDPQAwhere we encode the compilation problem to SMT, and usez3-solverto solve it.animation.pycontains the classCodeGenthat generates DPQA instructions (five typesInit,Rydberg,Raman,Activate,Deactivate, andMove), and the classAnimatorthat generates animations from DPQA instructions.transpiler.pytakes in a qiskit QuantumCircuit object and lists the gates and associated parameters in a readable formatcircuit_figure.pygenerates a drawing of the qiskit circuit while maintaining SMT ordersteane.pyturns the qubits in a generic circuit into logical bits ()
The qc_example.py file includes our example of animating a circuit which generates a w state. If you want to make your own animation of a qiskit circuit, import Runner from MasterRunner, define your circuit and the number of qubits in it, and create a Runner initialization.