2 ms·
Go even makes it super easy to break things out in to multiple files transparently and people still just toss everything in one file. I've heard it phrased thu
by userbinator 10y ago
Go even makes it super easy to break things out in to multiple files transparently and people still just toss everything in one file.
I've heard it phrased thus: "scrolling through one file is easier than jumping around between files", and that fits with my experience.
That said, although I'm not very familiar with Python, this file does have a lot of "verticality" with lines like
t q[2];
h q[2];
h q[0];
h q[1];
...
which I would try to express in a bit more compact form, and I'd think stuff like this could be better written with arrays and/or procedurally generated:
self.three_qubits_000=np.kron(self.two_qubits_00,State.zero_state)
self.three_qubits_001=np.kron(self.two_qubits_00,State.one_state)
...