This paper aims to simultaneously minimize logistics costs and carbon emissions. For this purpose, a mathematical model for a three-echelon supply chain network is created considering the relevant constraints such as capacity, production cost, transport cost, carbon emissions, and time window, which will be solved by the proposed quantum-particle swarm optimization algorithm. The three-echelon supply chain, consisting of suppliers, distribution centers, and retailers, is established based on the number and location of suppliers, the transport method from suppliers to distribution centers, and the quantity of products to be transported from suppliers to distribution centers and from these centers to retailers. Then, a quantum-particle swarm optimization is described as its performance is validated with different benchmark functions. The scenario analysis validates the model and evaluates its performance to balance the economic benefit and environmental effect.