Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add section on circuit depth to construct circuits pg #2553

Merged
merged 3 commits into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/guides/construct-circuits.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,17 @@
"Instructions and circuits are similar in that they both describe operations on bits and qubits, but they have different purposes:\n",
"\n",
"- Instructions are treated as fixed, and their methods will usually return new instructions (without mutating the original object).\n",
"- Circuits are designed to be built over many lines of code, and [`QuantumCircuit`](/api/qiskit/qiskit.circuit.QuantumCircuit) methods often mutate the existing object.\n",
"- Circuits are designed to be built over many lines of code, and [`QuantumCircuit`](/api/qiskit/qiskit.circuit.QuantumCircuit) methods often mutate the existing object."
]
},
{
"cell_type": "markdown",
"id": "2e451022",
"metadata": {},
"source": [
"### What is circuit depth?\n",
"\n",
"The [depth()](/api/qiskit/qiskit.circuit.QuantumCircuit#qiskit.circuit.QuantumCircuit.depth) of a quantum circuit is a measure of the number of “layers” of quantum gates, executed in parallel, it takes to complete the computation defined by the circuit. Because quantum gates take time to implement, the depth of a circuit roughly corresponds to the amount of time it takes the quantum computer to execute the circuit. Thus, the depth of a circuit is one important quantity used to measure if a quantum circuit can be run on a device.\n",
"\n",
"The rest of this page illustrates how to manipulate quantum circuits."
]
Expand Down
Loading