Closed Spaceenter closed 7 years ago
Okay, it is a good idea to decide on a convention about this. So if we do alphabetical and the import statement starts with "from", does that count as an "f"? For instance, is the following sorted properly:
from FermionOperators import FermionTerm from QubitOperators import QubitTerm import os import projectq import sys
I guess there is really no right or wrong, we just need to pick up one.
It seems like Google's python code follows the convention:
import os import projectq import sys
from FermionOperators import FermionTerm from QubitOperators import QubitTerm
...
But either is fine, and we could write the guide in README or so.
Sounds good to me. Indeed, I think we should clarify this convention in the README and then update the code.
http://stackoverflow.com/questions/20762662/whats-the-correct-way-to-sort-python-import-x-and-from-x-import-y-statement