Rename opensquirrel to open_squirrel.
Rename SquirrelIR to IR.
Rename SquirrelIRVisitor to IRVisitor.
Rename squirrel_ir to ir.
I am keeping Statement, Gate, Measure… classes within ir.py. That means that, for the time being, they still have to be imported from open_squirrel.ir. I don’t think that is such a bad thing (definitely better than opensquirrel.squirrel_ir). And, since they are classes that actually belong to the IR structure, I would leave them like that. However, I leave this up to debate, since it goes against one of the acceptance criteria for this task.
Rename
opensquirrel
toopen_squirrel
. RenameSquirrelIR
toIR
. RenameSquirrelIRVisitor
toIRVisitor
. Renamesquirrel_ir
toir
.I am keeping
Statement
,Gate
,Measure
… classes withinir.py
. That means that, for the time being, they still have to be imported fromopen_squirrel.ir
. I don’t think that is such a bad thing (definitely better thanopensquirrel.squirrel_ir
). And, since they are classes that actually belong to the IR structure, I would leave them like that. However, I leave this up to debate, since it goes against one of the acceptance criteria for this task.