code: def permute(self, qubits: Qubits) -> 'State':
          
          vec = self.vec.permute(qubits)
          return State(vec.tensor, vec.qubits, self._memory)
docs: Return a copy of this state with qubit labels permuted