Canon VI.
Canons of Local Councils Received Ecumenically (Ancyra, Gangra, Neocaesarea, Antioch, Laodicea) · The Seven Holy Ecumenical Councils
It is not permitted to heretics to enter the house of God while they continue in heresy.
LocalE 5.9.2
Heretics are not to be permitted to enter the house of God, and yet Basil the Great, before this canon was set forth, admitted Valens to the perfecting of the faithful [i.e., to the witnessing the celebration of the Divine Mysteries].
LocalE 5.9.7
A heretic who pertinaciously rejects the doctrine of the Church is rightly not allowed to enter the house of God, in which his doctrine is set forth, so long as he continues in his heresy. For this reason when Timothy, Archbishop of Alexandria, was consulted concerning the admission of heretics to church, answered in the IX Canon of his Canonical Epistle, that unless they were ready to promise to do penance and to abandon their heresy, they could in no way be admitted to the prayers of the faithful.
LocalE 5.9.9