and In is the n×n identity matrix. In other words, is Hamiltonian if and only if
In the vector space of all 2n×2n matrices, Hamiltonian matrices form a 2n2 + n vector subspace.
The space of all Hamiltonian matrices is a Lie algebra .
Let V be a vector space, equipped with a symplectic form . A linear map is called a Hamiltonian operator with respect to if the form is symmetric. Equivalently, it should satisfy
Choose a basis in V, such that is written as . A linear operator is Hamiltonian with respect to if and only if its matrix in this basis is Hamiltonian.
From this definition, the following properties are apparent. A square of a Hamiltonian matrix is skew-Hamiltonian. An exponential of a Hamiltonian matrix is symplectic, and a logarithm of a symplectic matrix is Hamiltonian.