def _get_unitary(self):
unitary = np.reshape(self._unitary, <NUM_LIT:2> * [<NUM_LIT:2> ** self._number_of_qubits])<EOL>unitary = np.stack((unitary.real, unitary.imag), axis=-<NUM_LIT:1>)<EOL>unitary[abs(unitary) < self._chop_threshold] = <NUM_LIT:0.0><EOL>return unitary<EOL>
Return the current unitary in JSON Result spec format