Skip to content

Commit

Permalink
Merge 7a7a9e4 into ad1f1dd
Browse files Browse the repository at this point in the history
  • Loading branch information
daka1510 committed Mar 8, 2022
2 parents ad1f1dd + 7a7a9e4 commit 4afb96c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 11 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Qiskit Runtime IBM Quantum Client
[![License](https://img.shields.io/github/license/Qiskit/qiskit-ibm-runtime.svg?style=popout-square)](https://opensource.org/licenses/Apache-2.0)[![CI](https://github.com/Qiskit/qiskit-ibm-runtime/actions/workflows/ci.yml/badge.svg)](https://github.com/Qiskit/qiskit-ibm-runtime/actions/workflows/ci.yml)[![](https://img.shields.io/github/release/Qiskit/qiskit-ibm-runtime.svg?style=popout-square)](https://github.com/Qiskit/qiskit-ibm-runtime/releases)[![](https://img.shields.io/pypi/dm/qiskit-ibm-runtime.svg?style=popout-square)](https://pypi.org/project/qiskit-ibm-runtime/)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![Coverage Status](https://coveralls.io/repos/github/Qiskit/qiskit-ibm-runtime/badge.svg?branch=main)](https://coveralls.io/github/Qiskit/qiskit-ibm-runtime?branch=main)
[![License](https://img.shields.io/github/license/Qiskit/qiskit-ibm-runtime.svg?style=popout-square)](https://opensource.org/licenses/Apache-2.0)
[![CI](https://github.com/Qiskit/qiskit-ibm-runtime/actions/workflows/ci.yml/badge.svg)](https://github.com/Qiskit/qiskit-ibm-runtime/actions/workflows/ci.yml)
[![](https://img.shields.io/github/release/Qiskit/qiskit-ibm-runtime.svg?style=popout-square)](https://github.com/Qiskit/qiskit-ibm-runtime/releases)
[![](https://img.shields.io/pypi/dm/qiskit-ibm-runtime.svg?style=popout-square)](https://pypi.org/project/qiskit-ibm-runtime/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Coverage Status](https://coveralls.io/repos/github/Qiskit/qiskit-ibm-runtime/badge.svg?branch=main)](https://coveralls.io/github/Qiskit/qiskit-ibm-runtime?branch=main)


**Qiskit** is an open-source SDK for working with quantum computers at the level of circuits, algorithms, and application modules.
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/02_introduction_legacy_runtime.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"# Save account on disk.\n",
"# IBMRuntimeService.save_account(auth=\"legacy\", token=<IBM Quantun API token>)\n",
"\n",
"# The \"auth\" keyword is not needed if you have only 1 type (legacy or cloud) of account saved. \n",
"# The \"auth\" keyword is not needed if you have only 1 type (legacy or cloud) of account saved.\n",
"service = IBMRuntimeService(auth=\"legacy\")"
]
},
Expand Down
4 changes: 2 additions & 2 deletions program_source/vqe/vqe.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def calibrate(
avg_magnitudes /= steps

if modelspace:
a = target_magnitude / (avg_magnitudes ** 2)
a = target_magnitude / (avg_magnitudes**2)
else:
a = target_magnitude / avg_magnitudes

Expand Down Expand Up @@ -513,7 +513,7 @@ def _point_samples(self, loss, x, eps, deltas1, deltas2):
self._nfev += 4
diff = results[i, 2] - results[i, 3]
diff -= results[i, 4] - results[i, 5]
diff /= 2 * eps ** 2
diff /= 2 * eps**2

rank_one = np.outer(deltas1[i], deltas2[i])
hessian_estimate += diff * (rank_one + rank_one.T) / 2
Expand Down
4 changes: 2 additions & 2 deletions qiskit_ibm_runtime/ibm_runtime_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def backends(
IBMRuntimeService.backends(
filters=lambda b: b.configuration().quantum_volume > 16)
kwargs: Simple filters that specify a ``True``/``False`` criteria in the
**kwargs: Simple filters that specify a ``True``/``False`` criteria in the
backend configuration or status.
An example to get the operational real backends::
Expand Down Expand Up @@ -1278,7 +1278,7 @@ def least_busy(
AccountProvider.backends(
filters=lambda b: b.configuration().quantum_volume > 16)
kwargs: Simple filters that specify a ``True``/``False`` criteria in the
**kwargs: Simple filters that specify a ``True``/``False`` criteria in the
backend configuration, backends status, or provider credentials.
An example to get the operational backends with 5 qubits::
Expand Down
9 changes: 5 additions & 4 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
mypy==0.812
pylint==2.12.1
mypy==0.931
pylint==2.12.2
vcrpy
pproxy==2.1.8
pproxy==2.7.8
Sphinx>=1.8.3
sphinx-rtd-theme>=0.4.0
sphinx-tabs>=1.1.11
sphinx-automodapi
sphinx-autodoc-typehints
matplotlib>=2.1
jupyter
jupyter-sphinx
reno>=2.11.0
Expand All @@ -16,7 +17,7 @@ nbconvert>=5.3.1
qiskit-aer
websockets>=8
scikit-quant;platform_system != 'Windows'
black==21.11b1
black==22.1.0
coverage>=6.3
pylatexenc
mthree
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_data_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_coder_operators(self):
StateFn(quantum_circuit, coeff=coeff_x),
CircuitStateFn(quantum_circuit, is_measurement=True),
DictStateFn("1" * 3, is_measurement=True),
VectorStateFn(np.ones(2 ** 3, dtype=complex)),
VectorStateFn(np.ones(2**3, dtype=complex)),
OperatorStateFn(CircuitOp(QuantumCircuit(1))),
SparseVectorStateFn(sparse),
Statevector([1, 0]),
Expand Down

0 comments on commit 4afb96c

Please sign in to comment.