Abstract
We describe a family of quantum error-correcting codes which generalize both the quantum hypergraph-product (QHP) codes by Tillich and Z\'emor, and all families of toric codes on -dimensional hypercubic lattices. Similar to the latter, our codes form -complexes , with . These are defined recursively, with obtained as a tensor product of a complex with a -complex parameterized by a binary matrix. Parameters of the constructed codes are given explicitly in terms of those of binary codes associated with the matrices used in the construction.