114 lines
3.0 KiB
Plaintext
114 lines
3.0 KiB
Plaintext
---
|
|
title: jupyter
|
|
description: API reference for qiskit.tools.jupyter
|
|
in_page_toc_min_heading_level: 2
|
|
python_api_type: module
|
|
python_api_name: qiskit.tools.jupyter
|
|
---
|
|
|
|
<span id="module-qiskit.tools.jupyter" />
|
|
|
|
<span id="qiskit-tools-jupyter" />
|
|
|
|
# Jupyter Tools
|
|
|
|
<span id="module-qiskit.tools.jupyter" />
|
|
|
|
`qiskit.tools.jupyter`
|
|
|
|
A Collection of Jupyter magic functions and tools that extend the functionality of Qiskit.
|
|
|
|
## Overview of all available backends
|
|
|
|
```python
|
|
from qiskit import IBMQ
|
|
import qiskit.tools.jupyter
|
|
%matplotlib inline
|
|
|
|
IBMQ.load_account()
|
|
|
|
%qiskit_backend_overview
|
|
```
|
|
|
|
## Detailed information on a single backend
|
|
|
|
```python
|
|
from qiskit import IBMQ
|
|
import qiskit.tools.jupyter
|
|
%matplotlib inline
|
|
|
|
IBMQ.load_account()
|
|
provider = IBMQ.get_provider(hub='ibm-q')
|
|
backend = provider.get_backend('ibmq_vigo')
|
|
backend
|
|
```
|
|
|
|
## Load Qiskit Job Watcher
|
|
|
|
```python
|
|
import qiskit.tools.jupyter
|
|
%qiskit_job_watcher
|
|
```
|
|
|
|
## HTMLProgressBar
|
|
|
|
```python
|
|
import numpy as np
|
|
from qiskit.tools.parallel import parallel_map
|
|
import qiskit.tools.jupyter
|
|
|
|
%qiskit_progress_bar
|
|
parallel_map(np.sin, np.linspace(0,10,100));
|
|
```
|
|
|
|
## Qiskit version table
|
|
|
|
```python
|
|
import qiskit.tools.jupyter
|
|
%qiskit_version_table
|
|
```
|
|
|
|
### Version Information
|
|
|
|
| Qiskit Software | Version |
|
|
| ---------------------------- | ----------------------------- |
|
|
| `qiskit-terra` | 0.21.2 |
|
|
| `qiskit-aer` | 0.10.4 |
|
|
| `qiskit-ibmq-provider` | 0.19.2 |
|
|
| `qiskit` | 0.37.2 |
|
|
| `qiskit-nature` | 0.4.4 |
|
|
| `qiskit-finance` | 0.3.3 |
|
|
| `qiskit-optimization` | 0.4.0 |
|
|
| `qiskit-machine-learning` | 0.4.0 |
|
|
| System information | |
|
|
| Python version | 3.8.13 |
|
|
| Python compiler | GCC 9.4.0 |
|
|
| Python build | default, Jul 22 2022 10:44:13 |
|
|
| OS | Linux |
|
|
| CPUs | 2 |
|
|
| Memory (Gb) | 6.781246185302734 |
|
|
| Tue Aug 23 22:13:58 2022 UTC | |
|
|
|
|
## Qiskit copyright
|
|
|
|
```python
|
|
import qiskit.tools.jupyter
|
|
%qiskit_copyright
|
|
```
|
|
|
|
### This code is a part of Qiskit
|
|
|
|
© Copyright IBM 2017, 2022.
|
|
|
|
This code is licensed under the Apache License, Version 2.0. You mayobtain a copy of this license in the LICENSE.txt file in the root directoryof this source tree or at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).
|
|
|
|
Any modifications or derivative works of this code must retain thiscopyright notice, and modified files need to carry a notice indicatingthat they have been altered from the originals.
|
|
|
|
## Monospaced output
|
|
|
|
```python
|
|
import qiskit.tools.jupyter
|
|
%monospaced_output
|
|
```
|
|
|