Which of the following missing statement return the depth of the following quantum circuit?

Which of the following missing statement return the depth of the following quantum circuit?

q = QuantumRegister(3)

c = ClassicalRegister(3)

qc = QuantumCircuit(q,c)

qc.h(q[0:3])

qc.x(q[0:3])

qc.z(q[0:3])

qc.draw(output=’mpl’)

### missing statement to return the depth of the circuit
A . qc.size()
B . qc.path()
C . qc.depth()
D . qc.depth_display()

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments