1 Introduction

Complex Hadamard matrices are matrices C of order v with entries in the fourth roots of unity \(\Omega _4=\{\pm 1,\pm i\}\) satisfying

$$\begin{aligned} CC^*=vI, \end{aligned}$$

where \(^*\) denotes the transpose conjugate, and I is the identity matrix of order v. They were introduced by Turyn and studied by Seberry [25], and Kharaghani [13, 14], among others. A more general notion of complex Hadamard matrices where \(\Omega _4\) is replaced by the set of complex numbers of modulus one exists , but will not be considered in this paper. A survey of that more general notion is [22]. A related webpage is [3]. Complex Hadamard matrices are conjectured to exist for all even v [25]. This is the complex analogue of the celebrated Hadamard conjecture.

Recently, a notion of bent sequences attached to Hadamard matrices was introduced in [21] from a motivation of security. In a companion paper [18] the self-dual subclass of bent sequences for Hadamard matrices is studied. Three competing methods are used to construct such sequences: Brute force, Linear Algebra and Groebner bases. The first and the last are easier to program but only work for matrices of small orders (resp. medium orders). The Linear Algebra method requires some complex programming, but performs well even in large orders if the dimension of the relevant eigenspace is small enough.

In the present paper we conduct the analogous study by the same methods for complex Hadamard matrices. The main hurdle in this generalization was in the definition, as explained in the Preliminaries section, Sect. 2. A self-dual bent sequence is defined here as an eigenvector of a complex Hadamard matrix with values in the complex fourth roots of unity. This can exist only if the related eigenvalue is a Gaussian integer, which implies in turn that v is either a perfect square or the sum of two squares (Proposition 1).

We have a hierarchy of definitions of bent sequences from the special to the general

  1. (1)

    classical bent sequences and Sylvester type Hadamard matrices [4],

  2. (2)

    bent sequences attached to general Hadamard matrices [18, 21],

  3. (3)

    complex bent sequences attached to Sylvester type Hadamard matrices [20],

  4. (4)

    complex bent sequences attached to complex Hadamard matrices: the present paper.

Like in [18], the regular complex Hadamard matrices [13] and the Bush-type complex Hadamard matrices have proved especially useful. As is known since the seminal paper of Turyn [23], conference matrices can be used in the creation of complex Hadamard matrices. Their spectrum can be determined exactly (Proposition 9). Williamson type constructions are also very useful and lead to concomitant constructions of self-dual bent sequences (Theorem 3). In general, equivalent Hadamard matrices do not have corresponding sets of self-dual bent sequences. The notion of strong equivalence of Hadamard matrices remedies to this problem at the price of smaller groups. An effective algorithm for computing the strong automorphism group of complex Hadamard matrices based on graphical interpretation, is derived.

The material is organized as follows. The next section collects basic facts and definitions needed for the other sections. In Sect. 3, we discuss how to compute the automorphism group of a complex Hadamard matrix and which complex Hadamard matrices can be uniquely reconstructed from the off-diagonal part. Section 4 documents the constructions of complex Hadamard matrices we have used to construct self-dual bent sequences. Section 5 develops an interesting connection with \({\mathbb {Z}}_4\)-codes [8]. Section 6 contains the search methods employed to obtain the numerical results of 7. Sections 8 concludes the article. An appendix contains detailed information on some complex Hadamard matrices of various orders.

2 Preliminaries

Definition 1

If C is a complex Hadamard matrix of order v a bent sequence of length v attached to C is any vector \(X \in \Omega _4^v\), such that

$$\begin{aligned} CX=\lambda Y, \end{aligned}$$

where \(\lambda \) is an eigenvalue of C and \(Y \in \Omega _4^v\). We will say that X is a self-dual bent sequence attached to C if \(Y=X\).

Proposition 1

If there exists at least one self-dual bent sequence of length v,  then v is a square or the sum of two squares.

Proof

By the Hadamard property we see that \(|\lambda |^2=v.\) By eigenvalue definition, we see that

$$\begin{aligned} \lambda =\left( \sum _{j=1}^v c_{1j}x_j\right) x_1^{-1}=a+ib \in {\mathbb {Z}}[i]. \end{aligned}$$

Taking squared norms we get \(v=a^2+b^2.\) If one of ab is zero then v is a square. If both are non zero then v is a sum of two squares. \(\square \)

An equivalent definition is thus: let \(v=a^2+b^2,\) with \(a,b \ge 0.\) A self-dual bent sequence attached to C is defined as \(X \in \Omega _4^v\) such that

$$\begin{aligned} CX=(\pm a+\pm ib) X, \end{aligned}$$

where \((\pm a+\pm ib)\) are eigenvalues of C. Note that \(b+ia=i(a-bi)=i(a+bi)^*,\) so that swapping a and b amounts to simple changes in C and X.

In the case \(v=2^{2m}=(2^m)^2,\) and H the Sylvester Hadamard matrix of order v such sequences were studied in [20]. The case of v a square and H an arbitrary real Hadamard matrix is treated in [18].

The even integers \(\le 90\) and sum of at most two squares are

$$\begin{aligned} \{2, 4, 8, 10, 16, 18, 20, 26, 32, 34, 36, 40, 50, 52, 58, 64, 68, 72, 74, 80, 82, 90\}. \end{aligned}$$

3 Finding automorphism groups and reconstructing the matrix from its off-diagonal elements

The class of complex Hadamard matrices of order v is preserved by the three following operations:

  • row permutation,

  • column permutation,

  • multiplication of a row or column by an element of \(\Omega _4\),

which form a group G(v) with structure \((S_v \wr C_4)^2,\) where \(S_m\) denotes the symmetric group on m letters, and \(C_m\) the cyclic group of order m. We denote by S(v) the group of diagonal matrices of order v with diagonal elements in \(\Omega _4,\) and by M(v) the matrix group generated by P(v), the group of permutation matrices of order v,  and S(v). Note that M(v) consists of unitary matrices so that \(QQ^*=I\) for every Q in M(v). The action of G(v) on a complex Hadamard matrix C is of the form

$$\begin{aligned} C\mapsto PCQ, \end{aligned}$$

with \(P,Q \in M(v).\) The cases when this action is 2-transitive are classified in [17]. To work on the symmetries of bent sequences we will require the notion of strong automorphism group \(\textrm{SAut}(C)\) of C defined as the set of \(P \in M(v)\) such that \(PC=CP.\) Then we can state the following result.

Proposition 2

If X is a self-dual bent sequence for C,  and if \(P\in M(v)\) is a strong automorphism of C,  then PX is also a self-dual bent sequence for C.

Proof

By hypothesis \({C}X=\lambda X.\) Multiplying the left hand side of this equation by P we get

$$\begin{aligned} \lambda PX=P {C}X={C}PX. \end{aligned}$$

Letting \(Y=PX,\) we see that \({C}Y=\lambda Y.\) The result follows upon noticing that \(Y\in \Omega _4^v\). \(\square \)

3.1 Finding Aut and SAut

There are six kinds of natural transformations that send a complex Hadamard matrix to a complex Hadamard matrix:

  1. (I)

    permuting rows,

  2. (II)

    permuting columns,

  3. (III)

    multiplying rows by constants from \(\Omega _4\),

  4. (IV)

    multiplying columns by constants from \(\Omega _4\),

  5. (V)

    transposition,

  6. (VI)

    conjugation, applied to all elements of the matrix.

A combination of (I)–(IV) (of (I)–(VI)) is called an automorphism (semi-automorphism) of a complex Hadamard matrix C if it sends C to itself. The group of all automorphisms of a complex Hadamard matrix is denoted \(\textrm{Aut}(C)\).

Let C be a complex Hadamard matrix of order n. Define the di-graph G(C) of order 8n in the following way:

  • for each \(t\in \{0,\ldots ,n-1\}\), the tth row corresponds to 4 row vertices \(r_{t,x}\) and 4 row arcs \((r_{t,x},r_{t,ix})\), \(x\in \Omega _4\);

  • for each \(s\in \{0,\ldots ,n-1\}\), the sth column corresponds to 4 column vertices \(c_{s,x}\) and 4 column arcs \((c_{s,x},c_{s,ix})\), \(x\in \Omega _4\);

  • each cell (ts) corresponds to four cell arcs \((r_{t,x},c_{s,C_{t,s}x})\), \(x\in \Omega _4\).

The following four lemmas are straightforward.

Lemma 1

If the matrix \(C'\) is obtained from C by multiplying the tth row by y, \(y\in \Omega _4\), then \(G(C')\) is obtained from G(C) by the following permutation of four row vertices: \(r_{t,x} \rightarrow r_{t,y^{-1}x}\), \(x\in \Omega _4\).

Lemma 2

If the matrix \(C'\) is obtained from C by multiplying the sth column by y, \(y\in \Omega _4\), then \(G(C')\) is obtained from G(C) by the following permutation of four column vertices: \(c_{s,x} \rightarrow c_{s,yx}\) , \(x\in \Omega _4\).

Lemma 3

If the matrix \(C'\) is obtained from C by permuting the rows with a permutation \(\pi \), \(\pi \in \textrm{Sym}(n)\):

$$\begin{aligned} C'_{\pi (t),s} = C_{{t},s}, \end{aligned}$$

then \(G(C')\) is obtained from G(C) by the following permutation of four row vertices: \(r_{t,x} \rightarrow r_{\pi (t),x}\), \(t\in \{0,...,n-1\}\), \(x\in \Omega _4\).

Lemma 4

If the matrix \(C'\) is obtained from C by permuting the columns with a permutation \(\pi \), \(\pi \in \textrm{Sym}(n)\):

$$\begin{aligned} C'_{t,\pi (s)} = C_{t,\pi (s)}, \end{aligned}$$

then \(G(C')\) is obtained from G(C) by the following permutation of four column vertices: \(c_{s,x} \rightarrow c_{\pi (s),x}\), \(s\in \{0,\ldots ,n-1\}\), \(x\in \Omega _4\).

Proposition 3

Every automorphism of G(C) is the composition of transformations considered in the four lemmas above.

Proof

We first note that the in-degree and the out-degree of a row vertex are 1 and \(n+1\), respectively, while for a column vertex these values are \(n+1\) and 1. So, any automorphism stabilizes the set of row (column) vertices.

Next, the arcs between the row vertices form n vertex-disjoint directed cycles of length four, and every automorphism permutes the cycles (corresponding transformations are considered in Lemma 3) and cyclically permutes the vertices in each cycle (corresponding transformations are considered in Lemma 1). Similarly, for the column vertices. \(\square \)

Corollary 1

The automorphism group of the graph G(C) is isomorphic to the automorphism group of C.

Remark 1

Similarly, to check if two complex Hadamard matrices are isomorphic, one can check the isomorphism between the corresponding graphs. In particular, to find the group of semi-automorphisms of C, one can extend \(\textrm{Aut}(C)\) by isomorphisms (if any) between C and \(C^{\textrm{t}}\), C and \(\overline{C}\), between C and \(C^*\).

3.2 SAut

An automorphism is strong if the columns and the rows are permuted by the same permutation and multiplied by conjugate constants. In other words, the action of a strong automorphism corresponds to the following action of a complex-signed permutation matrix S: \(C \rightarrow SCS^*\). Strong automorphisms of a complex Hadamard matrix C correspond to automorphisms of the graph G(C) that do not break the pairs \(\{r_{s,x},c_{s,x}\}\). To avoid the other automorphisms we can connect the paired vertices \(r_{s,x}\) and \(c_{s,x}\) of G(C) by a length-2 path, say \(r_{s,x}l_{s,x}c_{s,x}\) where \(l_{s,x}\) are some additional vertices. Denote the new graph by \(\tilde{G}(C)\). From Corollary 1, we have

Corollary 2

The automorphism group of the graph \(\tilde{G}(C)\) is isomorphic to the automorphism group of C.

Another way is to identify the vertices \(r_{s,x}\) and \(c_{s,x}\) (we call the merged vertex \(m_{s,x}\)) \(s\in \{0,\ldots ,n-1\}\), \(x\in \Omega _4\). In this way, we should resolve one problem: there is no way to distinguish the row-column arcs between the vertices \(m_{s,1}\), \(m_{s,i}\), \(m_{s,-1}\), \(m_{s,-i}\) and the cell arcs between the same four vertices (i.e., corresponding to the diagonal cell \(C_{s,s}\) of the matrix). To resolve this, we, at first, delete the diagonal cell arcs, and, at second, add special vertices \(m_s\) with four arcs \((m_s,m_{s,1})\), \((m_s,m_{s,i})\), \((m_s,m_{s,-1})\), \((m_s,m_{s,-i})\) for each s. We denote the new digraph by \(\hat{G}(C)\). Deleting the diagonal cell arcs can be regarded as replacing the diagonal elements of the matrix by zeros. If the diagonal of the matrix is uniquely reconstructed from its off-diagonal elements, then the strong automorphism group of the matrix does not change after such replacement.

Corollary 3

If the diagonal of a complex Hadamard matrix C is uniquely reconstructed from its off-diagonal elements, then the strong automorphism group of the graph \(\hat{G}(C)\) is isomorphic to the automorphism group of C.

Of course, such a statement is not useful without saying for which matrices it is applicable. In Sect. 3.5, we characterize the matrices whose diagonal is not uniquely reconstructed. The interesting theory related with these matrices is actually one of motivations for us to consider the second way of finding the strong automorphism group of a complex Hadamard matrix.

3.3 Equivalent self-dual bent sequences

Two self-dual bent sequences f and g with respect to a complex Hadamard matrix C are equivalent if there is a complex-signed permutation matrix S such that \(SCS^* = C\) (i.e., \(SCS^* \rightarrow C\) is a strong automorphism of C) and \(Sf = Sg\). To recognise the equivalence of self-dual bent sequences, one can, for each such sequence f, color the graph \(\hat{G}(C)\) in the following way: the vertices \(m_{s,x}\) such that \(f(s)=x\) are black, and the other vertices (including \(m_s\)) are white. Such colored graphs will be denoted \(\hat{G}_f(C)\).

Corollary 4

Assume that the diagonal of a complex Hadamard matrix C is uniquely reconstructed from its off-diagonal elements. Two self-dual bent sequences f and g are equivalent if and only if there is an automorphism of \(\hat{G}(C)\) that sends the black vertices of \(\hat{G}_f(C)\) to the black vertices of \(\hat{G}_g(C)\).

If C does not satisfy the hypothesis of Corollary 4 (see Theorem 1 for the characterization of such matrices), then we can similarly color the graph \(\tilde{G}(C)\). To find the automorphism group of a self-dual bent sequence, it is sufficient to find the group of the automorphisms of the graph that preserve the corresponding coloring. Note that the modern graph-isomorphism software can deal with colored graphs as well.

3.4 Regular matrices

A complex Hadamard matrix C of order v is regular if it has constant row and column sum. Let us denote this constant by \(\sigma \). Regular complex Hadamard matrices are studied in [13], where it is observed that \(|\sigma |^2=v,\) which in turn implies that v is the sum of two squares. A direct connection between self-dual bent sequences and regular complex Hadamard matrices is as follows.

Proposition 4

If C is a regular complex Hadamard matrix of order v,  then j the all-one vector of length v,  is a self-dual bent sequence for C.

Proof

Denote by \(\sigma \) the sum of elements of any row. By definition of regular complex Hadamard matrices \(C{j}=\sigma {j}\). \(\square \)

Example 1

Some regular complex Hadamard matrices are as follows:

  1. (1)

    For order \(v=2\) we have the matrix \(\begin{pmatrix} 1 &{}\quad i \\ i &{}\quad 1\end{pmatrix}\) where \(\sigma =1+i,\)

  2. (2)

    For orders \(v=18\) and \(v=34\) we have \(\sigma =3+3i\) and \(\sigma =5+3i,\) respectively, both from Lemma 6 of [13],

  3. (3)

    For order \(v=90,\) we have \(\sigma =9+3i\) by Corollary 9 (ii) of [13].

3.5 Reconstructing diagonal

Definition 2

Let A be a square matrix with \(\textrm{diag}(A)=I\) (the identity matrix), and let \(U:=A-I\), then A is called skew if \(U^* = -U\). We will say that a matrix A is i-skew (\(-i\)-skew) if \(U^* = iU\) (respectively, \(U^* = -iU\)).

We will say that a matrix A is mixed-skew if there is a subset J of indices such that

  1. (a)

    the submatrix of A restricted by the elements with both indices in J is \(-i\)-skew,

  2. (b)

    the submatrix of A restricted by the elements with indices not in J is i-skew,

  3. (c)

    \(A_{s,t} = -\overline{A_{t,s}}\) for every s in J and t not in J.

In other words, A is mixed-skew if for some complex-signed permutation matrix P the matrix \(P A P^*\) has the form

$$\begin{aligned} \left( \begin{array}{cc} A' &{}\quad U \\ -U^* &{}\quad A'' \end{array}\right) , \end{aligned}$$

where \(A'\) is \(-i\)-skew and \(A''\) is i-skew. Note that i-skew and \(-i\)-skew matrices are special cases of mixed-skew matrices, where \(A'\) or \(A''\) has size 0.

Theorem 1

Assume that two different complex Hadamard matrices C and \(C'\) of order n coincide in all off-diagonal elements. Then for the complex sign matrix \(D:=\textrm{diag}(C)\), the matrices \(G:=C D^*\) and \(G':=C' D^*\) satisfy one of the following:

  1. (i)

    G is skew and \(G'=G-2I\);

  2. (ii)

    there is a subset J of indices from \(\{0,\ldots ,n-1\}\) such that

    1. (ii.a)

      the submatrix of G restricted by the elements with both indices in J is \(-i\)-skew,

    2. (ii.b)

      the submatrix of G restricted by the elements with indices not in J is i-skew,

    3. (ii.c)

      \(G_{s,t} = -\overline{G_{t,s}}\) for every s in J and t not in J,

    4. (ii.d)

      \(G'_{s,s} = i\) for every s in J,

    5. (ii.e)

      \(G'_{t,t} = -i\) for every t not in J.

Proof

Given C and \(C'\) as in the theorem, we choose a complex sign matrix \(D:=\textrm{diag}(C)\) such that the diagonal elements of \(C D^*\) are all equal to 1. Denote \(G:=C D^*\) and \(G':=C' D^*\). So, G and \(G'\) are two different complex Hadamard matrices coinciding in the off-diagonal elements, and \(G_{s,s}=1\), \(s=0,\ldots ,n-1\).

Since for different s and t the tth and sth rows of a complex Hadamard matrix are orthogonal and the tth (sth) row of G coincides with the tth (sth) row of \(G'\) in all positions except the tth (sth) one, we find

$$\begin{aligned} G'_{s,s} \overline{G'_{t,s}} + \overline{G'_{t,t}} G'_{s,t} =G_{s,s} \overline{G_{t,s}} + \overline{G_{t,t}} G_{s,t} =\overline{G'_{t,s}} + G'_{s,t}. \end{aligned}$$
(1)

In particular, \(G'_{s,s}\) and \(G'_{t,t}\) are either both real or both imaginary. We conclude that the diagonal elements of \(G'\) are either all real or all imaginary. Consider these two cases.

  1. (i)

    If all diagonal elements of \(G'\) are real, then at least one of them, say \(G'_{s,s}\), equals \(-1\). From (1), we see that for every t different from s, \(G'_{t,t}\) cannot be 1. Hence, all diagonal elements equal \(-1\). For arbitrary different s and t, substituting \(G'_{s,s}=-1\), \(G'_{s,s}=-1\) to (1), we find \(G'_{s,t}=-\overline{G'_{t,s}}\). Hence, G is skew, and assertion (i) of the theorem takes place.

  2. (ii)

    Assume that all diagonal elements of \(G'\) are imaginary. Denote \(J:=\{s\in \{0,\ldots ,n-1\}:\, G'_{s,s}=i\}\). Consider different s and t from J. With \(G'_{s,s}=G'_{t,t}=i\), Eq. (1) turns to \( i \overline{G'_{t,s}} - i G'_{s,t} = \overline{G'_{t,s}} + G'_{s,t}, \) which implies \( (i-1) \overline{G'_{t,s}} = (i+1)G'_{s,t}, \) and \( \overline{G'_{t,s}} = -i G'_{s,t} \). This proves assertion (ii.a) in the claim of the theorem. Assertions (ii.b) and (ii.c) are proved similarly, while (ii.d) and (ii.e) hold by the definition of J.

\(\square \)

It is easy to see that for \(n>2\), the same matrix G cannot satisfy both (i) and (ii.a–c). So, we can conclude the following:

Corollary 5

For every complex Hadamard matrix C of order at least 4, there is at most one other complex Hadamard matrix \(C'\) coinciding with C in all off-diagonal elements. Moreover, the existence of such \(C'\) implies that \(C D^*\) is skew or mixed-skew, where \(D:=\textrm{diag}(C)\).

Example 2

Case (i) of Theorem 1 is illustrated by the following matrices:

Example 3

Case (ii) of Theorem 1 is illustrated by the matrices C and \(C'\) below:

Multiplying the last two columns of C by \(-i\) makes it mixed-skew. It can be checked that \(C' = PCP^*\), where

which shows that the strong automorphism groups of C and of the off-diagonal part of C do not coincide.

Example 4

Some other examples of mixed-skew matrices are (of order 8 and of orders 6, 10, 14, 22, 26 in a special bi-cyclic form)

(2)
  • \(a = (1,1,i)\), \(b = (1,1,-1)\), or

  • \(a = (1,1,-1,-i,i)\), \(b = (1,i,i,-1,i)\), or

  • \(a = (1,-1,-1,-i,-1,-i,-i)\), \(b = (1,1,-1,1,-1,-1,i)\), or

  • \(a = (1,1,-1,-i,-1,-1,-i,-i,-1,-i,i)\),

    \(b = (1,1,i,-1,-1,1,-1,i,i,1,-1)\), or

  • \( a = (1,-i,1,-i,-1,1,1,i,i,-i,-1,i,-1)\),

    \(b = (1,-i,-i,-1,-i,-i,-i,i,-1,1,-1,-i,1)\),

where \(\textrm{circ}(\ldots )\) is the matrix whose rows are all cyclic shifts of the corresponding sequence.

Remark 2

A matrix in the form (2) is complex Hadamard if and only if

$$\begin{aligned} \big \langle a, \sigma ^s ( a) \big \rangle + \big \langle b, \sigma ^s ( b) \big \rangle = 0, \quad s = 1,\ldots ,n-1, \end{aligned}$$
(3)

where \(\sigma \) is the cyclic shift: \(\sigma ((a_0,a_1, \ldots ,a_{n-1})) = (a_{n-1},a_1,\ldots ,a_{n-2})\). Such pairs (ab) are called complex periodic Golay pairs. Additionally, the matrix is mixed-skew if \( a = (a_0,a_1,\ldots ,a_{n-1})\) satisfies \(a_k = i a_{n-k}^{-1}\), \(k=1,\ldots ,n-1\).

Remark 3

Pairs of sequences satisfying (3) for the non-cyclic shift

$$\begin{aligned} \sigma ((a_0,a_1,\ldots ,a_{n-1})) = (0,a_1,\ldots ,a_{n-2}) \end{aligned}$$

are called (complex) Golay pairs. A Golay pair is obviously a periodic Golay pair, but the inverse is not true. Golay pairs were firstly introduced in [7]. Periodic correlation is considered in [2]. Complex Golay pairs were firstly considered in [6, 19].

Remark 4

The bi-cyclic matrices of orders 10 and 26 from Example 4 admit self-dual bent sequences \((1,\ldots ,1,-1,\ldots ,-1)\) and \((1,\ldots ,1,1,\ldots ,1)\). In particular, these two matrices are regular complex Hadamard matrices.

Problem 1

Is there an i-skew complex Hadamard matrix of order more than 1?

Problem 2

Is there an infinite series of mixed-skew complex Hadamard matrices?

4 Constructions of complex Hadamard matrices

4.1 Kronecker products

A very simple construction of complex Hadamard matrices from Hadamard matrices is as follows.

Proposition 5

If there exists a Hadamard matrix H of order v,  then there exists a complex Hadamard matrix C of order 2v. In particular, if H is regular, so is C.

Proof

Taking the Kronecker product of H with \(\left( \begin{array}{cc} 1 &{}\quad i\\ i &{}\quad 1 \end{array}\right) ,\) yields the block matrix

$$\begin{aligned} C=\left( \begin{array}{cc} H &{}\quad iH\\ iH &{}\quad H \end{array}\right) , \end{aligned}$$

which satisfies \(CC^*=2vI\) by taking block product of C with

$$\begin{aligned} C^*=\left( \begin{array}{cc} H^t &{}\quad -iH^t\\ -iH^t &{}\quad H^t \end{array}\right) . \end{aligned}$$

If the row sum of H is \(\sigma ,\) then C is regular of constant row sum \((1+i)\sigma \). \(\square \)

Remark 5

The matrix C in Proposition 5 has an order 4 or a multiple of 8. This is a special case of Theorem 1 of [25]: The Kronecker product of a Hadamard matrix of order n by a complex Hadamard matrix of order h is a complex Hadamard matrix of order hn. The Magma command is KroneckerProduct (A, B) for the Kronecker product of A by B.

Example 5

The following program constructs 5 complex Hadamard matrices of order 32 from the 5 non-equivalent Hadamard matrices of order 16.

figure a

Note that the eigenvalues of these matrices all have squared norm 32. So there are more eigenspaces to consider.

4.2 Bush type

A complex Hadamard matrix C of order \(v=4u^2\) is said to be Bush-type if it is blocked into 2u blocks of side 2u say \(C_{ij}\) such that the diagonal blocks \(C_{ii}\) are all-ones and that the off-diagonal blocks have row and column sums zero. They have many self-dual bent sequences attached to C as the next result shows.

Proposition 6

If C is a Bush-type complex Hadamard matrix of order \(4u^2,\) then it has at least \(4^{2u}\) self-dual bent sequences attached to C.

Proof

From the definition, we see that the sequence X defined by \(X^t=(u_1 { j},\dots ,u_{2u}{ j}),\) where j is the all-one vector of length 2u,  and the \(u_k\)’s are arbitrary in \(\Omega _4,\) is a self-dual bent sequence. \(\square \)

A complex analogue of the Bush-type Hadamard matrix is the following result, inspired by [12, Theorem 1]. Similar constructions appear in [13, Sect. 5].

Theorem 2

If there exists a complex Hadamard matrix of order 2v. Then there exists a Bush-type complex Hadamard matrix of order \(4v^2\). This matrix is regular of row sum 2v.

Proof

Let K be a normalized complex Hadamard matrix of order 2v and \(J_{2v}\) be a all-one matrix of order 2v,  and let \(r_1, r_2,\dots , r_{2v}\) be the row vectors of K. Let \(C_i=r_i^t r_i,\) for \(i=1,2,\dots ,2v. \) Then the following properties are easy to check:

  1. (1)

    \(C_i^t=C_i,\) for \(i=1,2,\dots ,2v.\)

  2. (2)

    \(C_1=J_{2v},\, C_i J_{2v}=J_{2v} C_i=0,\) for \(i=2,3,\dots ,2v.\)

  3. (3)

    \(C_i C_j^*=0,\) for \(i \ne j, 1 \le i,j \le 2v.\)

  4. (4)

    \(C_1 C_1^* + C_2 C_2^* + \dots + C_{2v} C_{2v}^* = 4v^2 I_{2v}.\)

Let \(C=circ(C_1,C_2,\dots ,C_{2v}),\) the block circulant matrix with the first row \(C_1,C_2,\dots ,C_{2v}.\) Then C is a Bush-type complex Hadamard matrix of order \(4v^2.\) The regularity follows by the property (2). \(\square \)

Example 6

The following matrix K is a complex Hadamard matrix of order 4:

$$\begin{aligned} {K}=\left( \begin{array}{cccc} 1 &{}\quad 1 &{}\quad 1 &{}\quad 1\\ 1 &{}\quad i &{}\quad -1&{}\quad -i\\ 1&{}\quad -1 &{}\quad 1 &{}\quad -1\\ 1 &{}\quad -i&{}\quad -1 &{}\quad i \end{array}\right) , \end{aligned}$$

The matrix \(C_1=J_4.\) The matrices \(C_2, C_3\) and \( C_4\) are

$$\begin{aligned} C_2= & {} \left( \begin{array}{cccc} 1 &{}\quad i &{}\quad -1 &{}\quad -i \\ i &{}\quad -1 &{}\quad -i &{}\quad 1 \\ -1 &{}\quad -i &{}\quad 1 &{}\quad i \\ -i &{}\quad 1 &{}\quad i &{}\quad -1 \\ \end{array}\right) , \qquad C_3=\left( \begin{array}{cccc} 1 &{}\quad -1 &{}\quad 1 &{}\quad -1\\ -1 &{}\quad 1&{}\quad -1 &{}\quad 1 \\ 1 &{}\quad -1 &{}\quad 1 &{}\quad -1\\ -1 &{}\quad 1 &{}\quad -1 &{}\quad 1\\ \end{array}\right) ,\\ C_4= & {} \left( \begin{array}{cccc} 1 &{}\quad -i &{}\quad -1 &{}\quad i\\ -i &{}\quad -1 &{}\quad i &{}\quad 1\\ -1 &{}\quad i &{}\quad 1&{}\quad -i\\ i &{}\quad 1 &{}\quad -i &{}\quad -1\\ \end{array}\right) . \end{aligned}$$

The matrix \(C=circ(C_1,C_2,C_3,C_4)\) is a Bush-type complex Hadamard matrix of order 16.

Another construction of a Bush-type complex Hadamard matrix is as follows.

Proposition 7

If there exists a Bush-type Hadamard matrix of order \(v^2.\) Then there exists a Bush-type complex Hadamard matrix of order \(v^2\) having the entries belonging to the set \(\Omega _4.\)

Proof

Let \(H=[H_{ij}]\) be a Bush-type Hadamard matrix of order \(v^2,\) where \(H_{ij}, 1 \le i,j \le v,\) are blocks of order v. By multiplying the off-diagonal blocks with i,  we obtain a Bush-type complex Hadamard matrix. \(\square \)

4.3 Conference matrices

A construction indicated in [9, p. 67] and in [25, Theorem 3] is connected to Paley II. The Jacobsthal matrix is the matrix \(C_q\) defined in [16, Chap. 2, Sect. 3] by \(C_q (x,y)=\chi (y-x),\) for \(x,y \in {\mathbb {F}}_q\). Here \(\chi \) denotes the quadratic character defined by the three following mutually exclusive cases:

$$\begin{aligned} \chi (z) ={\left\{ \begin{array}{ll} 0 &{} \text{ if }\, z= 0,\\ 1 &{} \text{ if }\, z=\Box ,\\ -1 &{} \text{ if }\, z \ne \Box . \end{array}\right. } \end{aligned}$$

where \(\Box \) denotes an arbitrary quadratic residue of \({\mathbb {F}}_q\). Note that \(C_q\) is symmetric if \(q \equiv 1 \pmod {4},\) since then \(-1\) is a quadratic residue. Its extended version \(S_{q}\) is obtained by adding a border of ones according to the rule in [21, 24].

$$\begin{aligned} S_{q}=\left( \begin{array}{cc} 0 &{}\quad { j} \\ {j}^t &{}\quad C_q \end{array}\right) , \end{aligned}$$

with j being an all-one row vector of length q.

Proposition 8

If q is a prime power and \(q\equiv 1 \pmod {4},\) and \(S_{q}\) denotes the extended Jacobsthal matrix, then \(iI+S_{q}\) is a complex Hadamard matrix of order \(q+1\).

Proof

It is known that \(S_{q}\) is a so-called conference matrix [16, Chap. 2, (16)], and therefore satisfies \(S_{q}S_{q}^{\textrm{t}}=qI.\) Hence

$$\begin{aligned} (iI+S_{q})(iI+S_{q})^*=(iI+S_{q})(-iI+S_{q})= (q+1)I, \end{aligned}$$

where the second equality follows by \(S_{q}=S_{q}^{\textrm{t}}=S_{q}^*\). \(\square \)

The calculation in the proof extends to the situation when we replace \(S_{q}\) by conference matrices with zero diagonal [1]. In particular this constructs complex Hadamard matrices of orders \(\{10,18,26,50,74, 82,90\}.\)

Unfortunately, the spectrum of a matrix in that family is not favorable to the existence of self-dual bent sequences.

Proposition 9

Let q be a prime power and \(q\equiv 1 \pmod {4},\) and with \(S_{q}\) denoting the extended Jacobsthal matrix , write \(C=iI+S_{q}.\) The minimal polynomial of C is \( x^2-2ix-(q+1)\).

Proof

Since \(S_{q}\) is real and symmetric, we get \(C^*=-iI+S_{q}=C-2iI.\) The Hadamard relation entails then \(C(C-2iI)=(q+1)I\), then the result follows. \(\square \)

Given that the roots of the quadratic are \(i\pm \sqrt{q},\) they belong to \({\mathbb {Q}}(i)\) iff q is a perfect square. That leaves the following orders to test for that construction:\(\{10,26,50, 82\}.\)

4.4 Williamson type

A Hadamard matrix H of order 4m is said to be quaternionic if there are four matrices ABCD of order m such that

$$\begin{aligned} H=A\otimes I+ B\otimes i +C\otimes j+D\otimes k, \end{aligned}$$

where \(\otimes \) stands for the Kronecker product of matrices and ijk are quaternionic units given by

$$\begin{aligned} i=\left( \begin{array}{cccc} 0 &{}\quad 1 &{}\quad 0 &{}\quad 0 \\ -1 &{}\quad 0 &{}\quad 0 &{}\quad 0\\ 0 &{}\quad 0 &{}\quad 0 &{}\quad -1\\ 0&{}\quad 0 &{}\quad 1 &{}\quad 0 \end{array}\right) , \qquad j=\left( \begin{array}{cccc} 0&{}\quad 0&{}\quad 1&{}\quad 0\\ 0&{}\quad 0&{}\quad 0&{}\quad 1\\ -1&{}\quad 0&{}\quad 0&{}\quad 0\\ 0&{}\quad -1&{}\quad 0&{}\quad 0 \end{array}\right) ,\quad k= ij. \end{aligned}$$

If, furthermore, we assume ABCD to be symmetric and circulant, we shall say that H is Williamson type.

By Lemma 3 of [14], we know that the existence of such a matrix entails that of a complex Hadamard matrix of the form \(\left( \begin{array}{cc} S &{} T \\ -\overline{T} &{} \overline{S} \end{array}\right) \) where the overline denotes complex conjugation. One may take \(S=X+iY\) and \(T=V+iW,\) where \(X=(A+B)/2,\) and \(Y=(A-B)/2\). Similarly \(V=(C-D)/2,\) and \(W=(C+D)/2.\)

Lemma 6 of [13] exploits this correspondence to construct regular complex Hadamard matrices. In the next result, we use a similar construction.

Theorem 3

If there is a Hadamard matrix H of order \(4t^2\) with structure \(\left( \begin{array}{cc} R &{}\quad S \\ -S &{}\quad R \end{array}\right) \) then the matrix E given by \(2E=(R+S)-i(R-S)\) is a complex Hadamard matrix. If, furthermore, \(\left( \begin{array}{c} X \\ Y \end{array}\right) \) is a self-dual bent sequence for \(H'=\left( \begin{array}{cc} S &{}\quad -R \\ R &{}\quad S \end{array}\right) \) then \(U+iV\) is a self-dual bent sequence for E with \(U=X+Y\) and \(V=X-Y\).

Proof

The first assertion is Lemma 4 in [13]. The second assertion is a simple calculation starting from

$$\begin{aligned} E(U+iV)=(1+i)t (U+iV), \end{aligned}$$

and replacing E by its value. Separating real and imaginary parts we get the system

$$\begin{aligned} RX+SY= & {} 2t Y,\\ SX-RY= & {} 2t X, \end{aligned}$$

upon letting \(X=(U+V)/2,\, Y=(U-V)/2\). \(\square \)

Remark 6

By [23], we know that the matrix H in Theorem 3 can be constructed in relation with Williamson matrices.

5 Coding theoretic interpretation

Let \({\mathcal {C}}\) be a quaternary code of length n over the alphabet \(\Omega _4.\) Let \({\mathcal {Z}}\) be the \({\mathbb {Z}}_4\)-code determined by \(i^{\mathcal {Z}}={\mathcal {C}}.\) We need to recall some connections between \({\mathcal {C}}\) and \({\mathcal {Z}}\) already present in [8, Sect. II. C].

The distance properties of \({\mathcal {C}}\) for the squared Euclidean distance \(d_E\) are equivalent to the distance properties of \({\mathcal {Z}}\) for the Lee distance \(d_L\) because of the following identity, easily verified by induction on n : 

$$\begin{aligned} d_E(x,y)=2d_L(u,v), \end{aligned}$$

where \(x=i ^u\) and \(y=i^v\) with \(u,v \in {\mathbb {Z}}_4^n.\) Thus \(u \mapsto i^u\) is an isometry from \({\mathbb {Z}}_4^n\) onto \(\Omega _4^n.\) A Hadamard code \({\mathcal {H}}\) is a code of length n over \(\Omega _4\) with \(|{\mathcal {H}}|=n\) codewords that are pairwise orthogonal for the standard Hermitian inner product \(\langle ,\rangle \) in dimension n,  given by \(\langle x,y\rangle =xy^*.\) Thus we can think of its codewords as the rows of a complex Hadamard matrix of size n. The deviation \(\theta ({\mathcal {C}},x)\) of an arbitrary vector \(x \in \Omega _4^n\) from \({\mathcal {C}}\) is defined as

$$\begin{aligned} \theta ({\mathcal {C}},x)=\max \{ |\langle x,y\rangle | \mid y \in {\mathcal {C}}\}. \end{aligned}$$

It can be seen by expanding \(\langle x-y,x-y\rangle \) that

$$\begin{aligned} {\mathcal {R}}(\langle x,y\rangle )=n-d_L(u,v), \end{aligned}$$
(4)

for all \(x,y \in \Omega _4^n.\) This relation can be exploited to derive weight distributions of \({\mathcal {Z}}\).

Proposition 10

  1. (1)

    If \({\mathcal {C}}\) consists of the n rows of a complex Hadamard matrix, then \({\mathcal {Z}}\) is an equidistant code for the Lee metric of parameters (nnn).

  2. (2)

    If \({\mathcal {C}}\) consists of the n rows of a complex Hadamard matrix, multiplied by the four scalars of \(\Omega _4\), then \({\mathcal {Z}}\) is a code for the Lee metric of parameters (n, 4nn).

Proof

  1. (1)

    The possible values of \(\langle x,y\rangle \) for xy two rows of a complex Hadamard matrix are n if \(x=y\) and 0 otherwise. The result follows by the above relation (4).

  2. (2)

    The possible values of \({\mathcal {R}}\langle x,y\rangle \) for xy two proportional rows of a complex Hadamard matrix are n if \(x=y\) and \(-n\) if \(x=-y.\) The result follows by the above relation (4).

This completes the proof. \(\square \)

Remark 7

A similar construction as (2) above is in [26, p. 77] with real Hadamard matrices of order 2n.

Remark 8

The Gray map image of \({\mathcal {Z}}\) in \({\mathbb {F}}_2^{2n}\) is an Hadamard code, that is to say a binary code of parameters (2n, 4nn). This gives a one to many correspondence between a complex Hadamard matrix of order n and a Hadamard code of order 2n.

Problem 3

Is there any relation with the doubling process of Turyn [23]?

This doubling associates to a complex Hadamard matrix \(X+iY\) with XY real matrices the Hadamard matrix \(X\otimes S_ 2+Y \otimes T_2,\) where \(S_2=\left( \begin{array}{cc} 1 &{}\quad 1 \\ 1 &{}\quad -1 \end{array}\right) \), and \( T_2=\left( \begin{array}{cc} -1 &{}\quad 1 \\ 1 &{}\quad 1 \end{array}\right) \).

The total deviation of the code \({\mathcal {C}}\) is then

$$\begin{aligned} \theta ({\mathcal {C}})=\min \{\theta ({\mathcal {C}},x) \mid x \in \Omega _4^n\}. \end{aligned}$$

Proposition 11

If there is a bent sequence for a complex Hadamard matrix C of order n,  then its corresponding Hadamard code \({\mathcal {C}}\) has deviation \(\theta ({\mathcal {C}})=\sqrt{n}.\)

Proof

See [21, Theorem 1] for Euclidean inner product version. \(\square \)

Recall that the covering radius of a code \({\mathcal {Z}}\subseteq {\mathbb {Z}}_4^n\) is given by

$$\begin{aligned} r_L({\mathcal {Z}})=\max _{u \in {\mathbb {Z}}_4^n}\min _{v\in Z}d_L(u,v). \end{aligned}$$

The simple inequality \({\mathcal {R}}(\langle x,y\rangle ) \le |\langle x,y\rangle |\) shows that

$$\begin{aligned} r_L({\mathcal {Z}}) \ge n-\theta ({\mathcal {C}}). \end{aligned}$$

Combining this fact with the above proposition yields the following bound.

Corollary 6

If there is a bent sequence for a complex Hadamard matrix C of order n,  then the covering radius of its attached \({\mathbb {Z}}_4\)-code is bounded below as

$$\begin{aligned} r_L({\mathcal {Z}})\ge n-\sqrt{n}. \end{aligned}$$

Remark 9

This is less satisfying than that of [18, Lemma 1].

6 Search methods

6.1 Brute force

This method is only applicable for small v’s.

  1. (1)

    Construct C a complex Hadamard matrix of order v like in [21] by using Magma database.

  2. (2)

    For all \(X \in \Omega _4^v\) compute \(Y={C}X.\) If \(Y=(a+ib)X,\) then X is a self-dual bent sequence for C.

Complexity Exponential in v since \(| \Omega _4^v|=4^v.\)

6.2 Groebner basis

figure b

Complexity As is well-known the complexity of computing Groebner bases can be doubly exponential in the number of variables, that is v here.

6.3 Linear algebra

  1. (1)

    Construct C a complex Hadamard matrix of order v by the Appendix, Section 9, or the database [3].

  2. (2)

    Compute a basis of the eigenspace associated to the eigenvalue \(a+ib.\)

  3. (3)

    Let B denote a matrix with rows such a basis of size \(k \le v.\) Pick \(B_k\) a k-by-k submatrix of B that is invertible, by the algorithm given below.

  4. (4)

    For all \(Z \in \Omega _4^k\) solve the system in Y given by \(Z=YB_k.\)

  5. (5)

    Compute the remaining \(v-k\) entries of YB.

  6. (6)

    If these entries are in \(\Omega _4\) declare YB a self-dual bent sequence attached to C.

To construct \(B_k\) we apply a greedy algorithm. We construct the list J of the indices of the columns of \(B_k\) as follows.

  1. (i)

    Initialize J at \(J=[1].\)

  2. (ii)

    Given a column of index \(\ell \) we compute the ranks over the complex of r and \(r'\) of the submatrices of B with k rows and columns defined by the respective lists J and \(J'=Append(J,\ell ).\)

  3. (iii)

    If \(r<r'\) then update \(J:=J'.\)

  4. (iv)

    Repeat until \(|J|=rank(B).\)

Remark 10

If the first column of B is zero, step (i) does not make sense, but then there is no self-dual bent sequence in that situation, as all eigenvectors have first coordinate zero.

Remark 11

If the eigenspace has a real-valued basis, then every solution is of the form \((R+S)+i(R-S)\), where R, S are real-valued self-dual bent sequences. So, the number of complex self-dual bent sequences is equal to the square of the number of real-valued self-dual bent sequences. For example, this is so for the matrix \(S_q+i I\) where \(S_q\) is a conference matrix: the eigenvalues are \( i + c\), where c is an eigenvalue of \(S_q\), and the \((i+c)\)-eigenspace coincides with the c-eigenspace of \(S_q\).

Remark 12

A computational improvement is to look at columns of \(B_k\) with a small Hamming weight (much less than k) and determine first the values of X at the indices in the support of that column.

Complexity Roughly of order \(v^3+vk2^k.\) In this count \(v^3\) is the complexity of computing an echelonized basis of the eigenspace of C attached to \(a+bi.\) The complexity of the invertible minor finding algorithm is of the same order or less.

7 Numerical examples

The following Table 1 gives the minimum dimensions of the eigenspace attached to the eigenvalues of complex Hadamard matrices C.

Table 1 Complex Hadamard matrices of different orders, along with the corresponding minimum dimensions

Given how small these minimum dimensions are, the method of Sect. 6.3 is very successful. By using linear algebra method, we verify that there is no self-dual bent sequence in certain cases, e.g., for 1002 matrices when \(v=18\). In Table 2, we investigate the number of self-dual bent sequences for the above complex Hadamard matrices and their constructions are detailed in the Appendix.Footnote 1

Table 2 Number of self-dual bent sequences in various complex Hadamard matrices with dimensions of the eigenspace attached to the eigenvalues of C smaller than 16

8 Conclusion

We have considered self-dual bent sequences attached to complex Hadamard matrices from the standpoints of generation and symmetry. We considered three generation techniques: brute force, linear algebra, and Groebner bases. The method based on linear algebra works especially well when considering eigenvalues of low geometric multiplicity. For some matrices of order 52 this method performs well, while the Groebner basis method cannot finish. The lack of complex Hadamard matrices of order \(>12\) in the database [3] has led us to use the switching method of [5] to generate more matrices. In general, it would be a valuable research project to enrich the known databases, even in the cases where complete enumeration of equivalence classes is not feasible. In the same vein, refining the classification of complex Hadamard matrices of [3] for \(v\le 12,\) from equivalence to strong equivalence would be of interest.