The Church teaches that God created the heavens and the earth. The Church does not propose a technical explanation of “ how” this happened... just that it did and that God was the prime mover.
It doesn't need to.... "So shall my word be that goeth forth out of my mouth: it shall not return unto me void, but it shall accomplish that which I please, and it shall prosper in the thing whereto I sent it." (Isaiah 55:11)...That same word that went into Lazurus' tomb and brought him forth did also... "By the word of the Lord were the heavens made; and all the host of them by the breath of his mouth....For he spake, and it was done; he commanded, and it stood fast"(Psalm 33:6,9)
God spake, and it was done; God commanded, and it stood fast.