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

Commit

Permalink
Removing %matplotlib inline from different tutorials (#1206)
Browse files Browse the repository at this point in the history
* Removing `%matplotlib inline`

* removed matplotlib inline

* matplotlib fix

* removing `%matplotlib inline`

* more changes

* removing

Co-authored-by: Parmeet Singh <76438148+singhmeet11@users.noreply.github.com>
Co-authored-by: SooluThomas <soolu.elto@gmail.com>
  • Loading branch information
3 people committed Jul 9, 2021
1 parent 8154c80 commit 5cf9310
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 20 deletions.
3 changes: 1 addition & 2 deletions tutorials/circuits/01_circuit_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"source": [
"import numpy as np\n",
"from qiskit import QuantumCircuit\n",
"\n",
"%matplotlib inline"
"\n"
]
},
{
Expand Down
1 change: 0 additions & 1 deletion tutorials/circuits/1_getting_started_with_qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"source": [
"import numpy as np\n",
"from qiskit import *\n",
"%matplotlib inline"
]
},
{
Expand Down
1 change: 0 additions & 1 deletion tutorials/circuits/3_summary_of_quantum_operations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"source": [
"# Useful additional packages \n",
"import matplotlib.pyplot as plt\n",
"%matplotlib inline\n",
"import numpy as np\n",
"from math import pi"
]
Expand Down
5 changes: 0 additions & 5 deletions tutorials/noise/1_hamiltonian_and_gate_characterization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@
}
],
"source": [
"%matplotlib inline\n",
"# Fit the data to an oscillation\n",
"\n",
"plt.figure(figsize=(10, 6))\n",
Expand Down Expand Up @@ -295,7 +294,6 @@
}
],
"source": [
"%matplotlib inline\n",
"# Fit the data to an oscillation\n",
"\n",
"plt.figure(figsize=(10, 6))\n",
Expand Down Expand Up @@ -441,7 +439,6 @@
}
],
"source": [
"%matplotlib inline\n",
"# Fit the data to an oscillation\n",
"\n",
"plt.figure(figsize=(10, 6))\n",
Expand Down Expand Up @@ -577,7 +574,6 @@
}
],
"source": [
"%matplotlib inline\n",
"# Fit the data to an oscillation\n",
"\n",
"plt.figure(figsize=(10, 6))\n",
Expand Down Expand Up @@ -711,7 +707,6 @@
}
],
"source": [
"%matplotlib inline\n",
"# Fit the data to an oscillation\n",
"\n",
"plt.figure(figsize=(10, 6))\n",
Expand Down
8 changes: 0 additions & 8 deletions tutorials/noise/2_relaxation_and_decoherence.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@
"source": [
"# Fitting T1\n",
"\n",
"%matplotlib inline\n",
"\n",
"plt.figure(figsize=(15, 6))\n",
"\n",
"t1_fit = T1Fitter(t1_backend_result, t1_xdata, qubits,\n",
Expand Down Expand Up @@ -239,8 +237,6 @@
"source": [
"# Fitting T2*\n",
"\n",
"%matplotlib inline\n",
"\n",
"t2star_fit = T2StarFitter(t2star_backend_result, t2star_xdata, qubits,\n",
" fit_p0=[0.5, t_q0, osc_freq, 0, 0.5],\n",
" fit_bounds=([-0.5, 0, 0, -np.pi, -0.5],\n",
Expand Down Expand Up @@ -281,8 +277,6 @@
"source": [
"# Fitting T2 single echo\n",
"\n",
"%matplotlib inline\n",
"\n",
"t2echo_fit = T2Fitter(t2echo_backend_result, t2echo_xdata, qubits,\n",
" fit_p0=[0.5, t_q0, 0.5],\n",
" fit_bounds=([-0.5, 0, -0.5],\n",
Expand Down Expand Up @@ -318,8 +312,6 @@
"source": [
"# Fitting T2 CPMG\n",
"\n",
"%matplotlib inline\n",
"\n",
"t2cpmg_fit = T2Fitter([t2cpmg_backend_result1, t2cpmg_backend_result2],\n",
" t2cpmg_xdata, qubits,\n",
" fit_p0=[0.5, t_q0, 0.5],\n",
Expand Down
3 changes: 1 addition & 2 deletions tutorials/noise/9_entanglement_verification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
"\n",
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"\n",
"%matplotlib inline"
"\n"
]
},
{
Expand Down
1 change: 0 additions & 1 deletion tutorials/simulators/2_device_noise_simulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from qiskit import IBMQ, transpile\n",
"from qiskit import QuantumCircuit\n",
"from qiskit.providers.aer import AerSimulator\n",
Expand Down

0 comments on commit 5cf9310

Please sign in to comment.