def METHOD_NAME(self):
    """Test input validation."""
    with self.assertRaisesRegex(ValueError, "2-dimensional"):
        _ = BogoliubovTransform(np.ones((2, 2, 2)))
    with self.assertRaisesRegex(ValueError, "shape"):
        _ = BogoliubovTransform(np.ones((3, 2)))
    with self.assertRaisesRegex(ValueError, "shape"):
        _ = BogoliubovTransform(np.ones((2, 3)))