Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Closes #1189 Replacing 'state matrix' by 'density matrix' #1196

Merged
merged 2 commits into from
Aug 16, 2023
Merged
Changes from 1 commit
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
10 changes: 5 additions & 5 deletions tutorials/circuits/2_plotting_data_in_qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"plot_bloch_multivector(quantum_state)\n",
"```\n",
"\n",
"A quantum state is either a state matrix $\\rho$ (Hermitian matrix) or statevector $|\\psi\\rangle$ (complex vector). The state matrix is related to the statevector by \n",
"A quantum state is either a density matrix $\\rho$ (Hermitian matrix) or statevector $|\\psi\\rangle$ (complex vector). The density matrix is related to the statevector by \n",
"\n",
"$$\\rho = |\\psi\\rangle\\langle \\psi|,$$\n",
"\n",
Expand All @@ -204,11 +204,11 @@
"\n",
"The visualizations generated by the functions are:\n",
"\n",
"- `'plot_state_city'`: The standard view for quantum states where the real and imaginary (imag) parts of the state matrix are plotted like a city.\n",
"- `'plot_state_city'`: The standard view for quantum states where the real and imaginary (imag) parts of the density matrix are plotted like a city.\n",
"\n",
"- `'plot_state_qsphere'`: The Qiskit unique view of a quantum state where the amplitude and phase of the state vector are plotted in a spherical ball. The amplitude is the thickness of the arrow and the phase is the color. For mixed states it will show different `'qsphere'` for each component.\n",
"\n",
"- `'plot_state_paulivec'`: The representation of the state matrix using Pauli operators as the basis $\\rho=\\sum_{q=0}^{d^2-1}p_jP_j/d$.\n",
"- `'plot_state_paulivec'`: The representation of the density matrix using Pauli operators as the basis $\\rho=\\sum_{q=0}^{d^2-1}p_jP_j/d$.\n",
"\n",
"- `'plot_state_hinton'`: Same as `'city'` but where the size of the element represents the value of the matrix element.\n",
"\n",
Expand Down Expand Up @@ -573,7 +573,7 @@
"\n",
"A standard way of plotting a quantum system is using the Bloch vector. This only works for a single qubit and takes as input the Bloch vector. \n",
"\n",
"The Bloch vector is defined as $[x = \\mathrm{Tr}[X \\rho], y = \\mathrm{Tr}[Y \\rho], z = \\mathrm{Tr}[Z \\rho]]$, where $X$, $Y$, and $Z$ are the Pauli operators for a single qubit and $\\rho$ is the state matrix.\n"
"The Bloch vector is defined as $[x = \\mathrm{Tr}[X \\rho], y = \\mathrm{Tr}[Y \\rho], z = \\mathrm{Tr}[Z \\rho]]$, where $X$, $Y$, and $Z$ are the Pauli operators for a single qubit and $\\rho$ is the density matrix.\n"
]
},
{
Expand Down Expand Up @@ -729,7 +729,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.8.5"
},
"varInspector": {
"cols": {
Expand Down