1

I want to calculate the Quantum cost of this qiskit circuit, e.g as i know x-gate has the cost 1 and there are 4 x-gate so quantum cost for x-gate will be 4. What about ccx gate? How can i calculate its cost.?

    circuit.x(qr[1])
    circuit.x(qr[0])
    circuit.ccx(qr[0], qr[1], qr[2])
    circuit.x(qr[1])
    circuit.x(qr[0])
    circuit.ccx(qr[0], qr[1], qr[3])

0 Answers0