Remove provider-specific fake backends,`FakeProvider` class and related tools in 1.0 (#11376)

* Remove provider-specific fake backends, fake provider and related tools

* Add release note

* Remove sneaky fake generic

* Fix lint

* Fix typo, manifest and attempt to fix visual tests

* Fix seed in visual tests, change imports

* Remove deleted files and remove FakeBackend mentions from examples in API docs

* I'm sorry I'm at the point where I confuse 1s and 5s.

* Fix skip message when aer isn't installed

* Skip fake backend test with aer on windows

* Revert windows skip and limit v2 backend size

The underlying cause of the windows failures were actually much larger
performance issues in aer's `NoiseModel.from_backend()` constructor
method when run with a BackendV2 instance. This is causing the
`NoiseModel` construction for `GenericBackendV2` to take a great deal of
time and use up all the memory we have available in the windows VMs in
CI. To avoid this issue in the short term until a fix can be added to
aer this commit just limits the size of the backend v2 examples we run
to prevent resources problems in CI.

* Avoid all to all connectivity in fake backend tests

The aer noise model construction was an artifact of using all to all
connectivity in the test. Using a more sparse connectivity alleviates
the performance issues. This commit switches to use a ring graph and
restores the larger qubit count backends.

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
This commit is contained in:
Elena Peña Tapia 2024-02-02 01:27:05 +01:00 committed by GitHub
parent 225106dd38
commit 84f0d9bf7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
269 changed files with 270 additions and 4407 deletions

View File

@ -3,7 +3,6 @@ include requirements.txt
recursive-include qiskit/qasm/libs *.inc
include qiskit/VERSION.txt
include qiskit/visualization/circuit/styles/*.json
recursive-include qiskit/providers/fake_provider/backends *.json
recursive-include qiskit/providers/fake_provider/backends_v1 *.json
# Include the tests files.

View File

@ -20,29 +20,23 @@ Fake Provider (:mod:`qiskit.providers.fake_provider`)
Overview
========
The fake provider module contains fake providers, fake backends and other simulated backend
implementations. The fake backends are built to mimic the behaviors of IBM Quantum systems
using system snapshots. The system snapshots contain important information about the quantum
system such as coupling map, basis gates, qubit properties (T1, T2, error rate, etc.) which
are useful for testing the transpiler and performing
noisy simulation of the system.
The fake provider module in Qiskit contains fake (simulated) backend classes
useful for testing the transpiler and other backend-facing functionality.
Example Usage
=============
Here is an example of using a fake backend for transpilation and simulation.
Here is an example of using a simulated backend for transpilation and running.
.. plot::
:include-source:
from qiskit import QuantumCircuit
from qiskit.providers.fake_provider import FakeManilaV2
from qiskit import transpile
from qiskit import QuantumCircuit, transpile
from qiskit.providers.fake_provider import GenericBackendV2
from qiskit.visualization import plot_histogram
# Get a fake backend from the fake provider
backend = FakeManilaV2()
# Generate a 5-qubit simulated backend
backend = GenericBackendV2(num_qubits=5)
# Create a simple circuit
circuit = QuantumCircuit(3)
@ -56,170 +50,39 @@ Here is an example of using a fake backend for transpilation and simulation.
transpiled_circuit = transpile(circuit, backend)
transpiled_circuit.draw('mpl')
# Run the transpiled circuit using the simulated fake backend
# Run the transpiled circuit using the simulated backend
job = backend.run(transpiled_circuit)
counts = job.result().get_counts()
plot_histogram(counts)
.. important::
Please note that the simulation is done using a noise model generated from system snapshots
obtained in the past (sometimes a few years ago) and the results are not representative of the
latest behaviours of the real quantum system which the fake backend is mimicking. If you want to
run noisy simulations to compare with the real quantum system you will need to create a noise
model from the current properties of the backend manually.
Fake Providers
==============
Fake providers provide access to a list of fake backends.
.. autosummary::
:toctree: ../stubs/
FakeProviderForBackendV2
FakeProvider
Fake Backends
=============
Fake V2 Backends
----------------
Fake V2 backends are fake backends with IBM Quantum systems snapshots implemented with
:mod:`~qiskit.providers.backend.BackendV2` interface. They are all subclasses of
:class:`FakeBackendV2`.
.. autosummary::
:toctree: ../stubs/
FakeAlmadenV2
FakeArmonkV2
FakeAthensV2
FakeAuckland
FakeBelemV2
FakeBoeblingenV2
FakeBogotaV2
FakeBrooklynV2
FakeBurlingtonV2
FakeCairoV2
FakeCambridgeV2
FakeCasablancaV2
FakeEssexV2
FakeGeneva
FakeGuadalupeV2
FakeHanoiV2
FakeJakartaV2
FakeJohannesburgV2
FakeKolkataV2
FakeLagosV2
FakeLimaV2
FakeLondonV2
FakeManhattanV2
FakeManilaV2
FakeMelbourneV2
FakeMontrealV2
FakeMumbaiV2
FakeNairobiV2
FakeOslo
FakeOurenseV2
FakeParisV2
FakePerth
FakePrague
FakePoughkeepsieV2
FakeQuitoV2
FakeRochesterV2
FakeRomeV2
.. FakeRueschlikonV2 # no v2 version
FakeSantiagoV2
FakeSherbrooke
FakeSingaporeV2
FakeSydneyV2
.. FakeTenerifeV2 # no v2 version
.. FakeTokyoV2 # no v2 version
FakeTorontoV2
FakeValenciaV2
FakeVigoV2
FakeWashingtonV2
FakeYorktownV2
Fake V1 Backends
----------------
Fake V1 backends are fake backends with IBM Quantum systems snapshots implemented with
:mod:`~qiskit.providers.backend.BackendV1` interface.
.. autosummary::
:toctree: ../stubs/
FakeAlmaden
FakeArmonk
FakeAthens
FakeBelem
FakeBoeblingen
FakeBogota
FakeBrooklyn
FakeBurlington
FakeCairo
FakeCambridge
FakeCasablanca
FakeEssex
FakeGuadalupe
FakeHanoi
FakeJakarta
FakeJohannesburg
FakeKolkata
FakeLagos
FakeLima
FakeLondon
FakeManhattan
FakeManila
FakeMelbourne
FakeMontreal
FakeMumbai
FakeNairobi
FakeOurense
FakeParis
FakePoughkeepsie
FakeQuito
FakeRochester
FakeRome
FakeRueschlikon
FakeSantiago
FakeSingapore
FakeSydney
FakeTenerife
FakeTokyo
FakeToronto
FakeValencia
FakeVigo
FakeWashington
FakeYorktown
Special Fake Backends
V2 Simulated Backends
=====================
Special fake backends are fake backends that were created for special testing purposes.
.. autosummary::
:toctree: ../stubs/
GenericBackendV2
V1 Fake Backends (Legacy interface)
===================================
.. autosummary::
:toctree: ../stubs/
FakeQasmSimulator
FakeOpenPulse2Q
FakeOpenPulse3Q
Fake1Q
FakeBackendV2
FakeBackend5QV2
FakeMumbaiFractionalCX
GenericBackendV2
Fake5QV1
Fake20QV1
Fake7QPulseV1
Fake27QPulseV1
Fake127QPulseV1
Fake Backend Base Classes
=========================
The fake backends based on IBM hardware are based on a set of base classes:
.. currentmodule:: qiskit.providers.fake_provider.fake_backend
.. autoclass:: qiskit.providers.fake_provider.fake_backend.FakeBackendV2
The V1 fake backends are based on a set of base classes:
.. currentmodule:: qiskit.providers.fake_provider
.. autoclass:: FakeBackend
@ -227,30 +90,16 @@ The fake backends based on IBM hardware are based on a set of base classes:
.. autoclass:: FakePulseBackend
"""
# Fake job and qobj classes
from .fake_job import FakeJob
from .fake_qobj import FakeQobj
# Base classes for fake backends
from . import fake_backend
from .fake_backend import FakeBackend
from .fake_qasm_backend import FakeQasmBackend
from .fake_pulse_backend import FakePulseBackend
# Fake providers
from .fake_provider import FakeProviderFactory, FakeProviderForBackendV2, FakeProvider
# Standard fake backends with IBM Quantum systems snapshots
from .backends import *
# Special fake backends for special testing purposes
from .fake_qasm_simulator import FakeQasmSimulator
from .fake_openpulse_2q import FakeOpenPulse2Q
from .fake_openpulse_3q import FakeOpenPulse3Q
from .fake_1q import Fake1Q
from .fake_backend_v2 import FakeBackendV2, FakeBackend5QV2
from .fake_mumbai_v2 import FakeMumbaiFractionalCX
# Generic fake backends
from .backends_v1 import *
from .backends_v1 import Fake5QV1, Fake20QV1, Fake7QPulseV1, Fake27QPulseV1, Fake127QPulseV1
from .generic_backend_v2 import GenericBackendV2

View File

@ -1,110 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Mocked versions of real quantum backends.
"""
# BackendV2 Backends
from .almaden import FakeAlmadenV2
from .armonk import FakeArmonkV2
from .athens import FakeAthensV2
from .auckland import FakeAuckland
from .belem import FakeBelemV2
from .boeblingen import FakeBoeblingenV2
from .bogota import FakeBogotaV2
from .brooklyn import FakeBrooklynV2
from .burlington import FakeBurlingtonV2
from .cairo import FakeCairoV2
from .cambridge import FakeCambridgeV2
from .casablanca import FakeCasablancaV2
from .essex import FakeEssexV2
from .geneva import FakeGeneva
from .guadalupe import FakeGuadalupeV2
from .hanoi import FakeHanoiV2
from .jakarta import FakeJakartaV2
from .johannesburg import FakeJohannesburgV2
from .kolkata import FakeKolkataV2
from .lagos import FakeLagosV2
from .lima import FakeLimaV2
from .london import FakeLondonV2
from .manhattan import FakeManhattanV2
from .manila import FakeManilaV2
from .melbourne import FakeMelbourneV2
from .montreal import FakeMontrealV2
from .mumbai import FakeMumbaiV2
from .nairobi import FakeNairobiV2
from .oslo import FakeOslo
from .ourense import FakeOurenseV2
from .paris import FakeParisV2
from .perth import FakePerth
from .prague import FakePrague
from .poughkeepsie import FakePoughkeepsieV2
from .quito import FakeQuitoV2
from .rochester import FakeRochesterV2
from .rome import FakeRomeV2
from .santiago import FakeSantiagoV2
from .sherbrooke import FakeSherbrooke
from .singapore import FakeSingaporeV2
from .sydney import FakeSydneyV2
from .toronto import FakeTorontoV2
from .valencia import FakeValenciaV2
from .vigo import FakeVigoV2
from .washington import FakeWashingtonV2
from .yorktown import FakeYorktownV2
# BackendV1 Backends
from .almaden import FakeAlmaden
from .armonk import FakeArmonk
from .athens import FakeAthens
from .belem import FakeBelem
from .boeblingen import FakeBoeblingen
from .bogota import FakeBogota
from .brooklyn import FakeBrooklyn
from .burlington import FakeBurlington
from .cairo import FakeCairo
from .cambridge import FakeCambridge
from .cambridge import FakeCambridgeAlternativeBasis
from .casablanca import FakeCasablanca
from .essex import FakeEssex
from .guadalupe import FakeGuadalupe
from .hanoi import FakeHanoi
from .jakarta import FakeJakarta
from .johannesburg import FakeJohannesburg
from .kolkata import FakeKolkata
from .lagos import FakeLagos
from .lima import FakeLima
from .london import FakeLondon
from .manhattan import FakeManhattan
from .manila import FakeManila
from .melbourne import FakeMelbourne
from .montreal import FakeMontreal
from .mumbai import FakeMumbai
from .nairobi import FakeNairobi
from .ourense import FakeOurense
from .paris import FakeParis
from .poughkeepsie import FakePoughkeepsie
from .quito import FakeQuito
from .rochester import FakeRochester
from .rome import FakeRome
from .rueschlikon import FakeRueschlikon
from .santiago import FakeSantiago
from .singapore import FakeSingapore
from .sydney import FakeSydney
from .tenerife import FakeTenerife
from .tokyo import FakeTokyo
from .toronto import FakeToronto
from .valencia import FakeValencia
from .vigo import FakeVigo
from .washington import FakeWashington
from .yorktown import FakeYorktown

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock almaden backend"""
from .fake_almaden import FakeAlmadenV2
from .fake_almaden import FakeAlmaden

File diff suppressed because one or more lines are too long

View File

@ -1,58 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Almaden device (20 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
class FakeAlmadenV2(fake_backend.FakeBackendV2):
"""A fake Almaden V2 backend.
.. code-block:: text
00 01 02 03 04
05 06 07 08 09
10 11 12 13 14
15 16 17 18 19
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_almaden.json"
props_filename = "props_almaden.json"
backend_name = "fake_almaden"
class FakeAlmaden(fake_qasm_backend.FakeQasmBackend):
"""A fake Almaden backend.
.. code-block:: text
00 01 02 03 04
05 06 07 08 09
10 11 12 13 14
15 16 17 18 19
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_almaden.json"
props_filename = "props_almaden.json"
backend_name = "fake_almaden"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock armonk backend"""
from .fake_armonk import FakeArmonkV2
from .fake_armonk import FakeArmonk

View File

@ -1 +0,0 @@
{"backend_name": "ibmq_armonk", "backend_version": "2.4.3", "n_qubits": 1, "basis_gates": ["id", "rz", "sx", "x"], "gates": [{"name": "id", "parameters": [], "qasm_def": "gate id q { U(0, 0, 0) q; }", "coupling_map": [[0]]}, {"name": "rz", "parameters": ["theta"], "qasm_def": "gate rz(theta) q { U(0, 0, theta) q; }", "coupling_map": [[0]]}, {"name": "sx", "parameters": [], "qasm_def": "gate sx q { U(pi/2, 3*pi/2, pi/2) q; }", "coupling_map": [[0]]}, {"name": "x", "parameters": [], "qasm_def": "gate x q { U(pi, 0, pi) q; }", "coupling_map": [[0]]}], "local": false, "simulator": false, "conditional": false, "open_pulse": true, "memory": true, "max_shots": 8192, "coupling_map": null, "dynamic_reprate_enabled": false, "supported_instructions": ["u1", "play", "shiftf", "measure", "u2", "delay", "sx", "x", "setf", "acquire", "rz", "u3", "id"], "max_experiments": 75, "sample_name": "family: Canary, revision: 1.2", "n_registers": 1, "credits_required": true, "online_date": "2019-10-16T04:00:00+00:00", "description": "1 qubit device", "dt": 0.2222222222222222, "dtm": 0.2222222222222222, "processor_type": {"family": "Canary", "revision": 1.2}, "allow_q_object": true, "multi_meas_enabled": true, "parametric_pulses": ["gaussian", "gaussian_square", "drag", "constant"], "quantum_volume": 1, "qubit_channel_mapping": [["d0", "m0"]], "uchannels_enabled": true, "url": "None", "allow_object_storage": true, "n_uchannels": 0, "u_channel_lo": [], "meas_levels": [1, 2], "qubit_lo_range": [[4.471852852405576, 5.4718528524055765]], "meas_lo_range": [[6.493370669000001, 7.493370669000001]], "meas_kernels": ["hw_boxcar"], "discriminators": ["quadratic_discriminator", "linear_discriminator"], "rep_times": [1000.0], "meas_map": [[0]], "acquisition_latency": [], "conditional_latency": [], "hamiltonian": {"description": "Qubits are modeled as Duffing oscillators. In this case, the system includes higher energy states, i.e. not just |0> and |1>. The Pauli operators are generalized via the following set of transformations:\n\n$(\\mathbb{I}-\\sigma_{i}^z)/2 \\rightarrow O_i \\equiv b^\\dagger_{i} b_{i}$,\n\n$\\sigma_{+} \\rightarrow b^\\dagger$,\n\n$\\sigma_{-} \\rightarrow b$,\n\n$\\sigma_{i}^X \\rightarrow b^\\dagger_{i} + b_{i}$.\n\nQubits are coupled through resonator buses. The provided Hamiltonian has been projected into the zero excitation subspace of the resonator buses leading to an effective qubit-qubit flip-flop interaction. The qubit resonance frequencies in the Hamiltonian are the cavity dressed frequencies and not exactly what is returned by the backend defaults, which also includes the dressing due to the qubit-qubit interactions.\n\nQuantities are returned in angular frequencies, with units 2*pi*GHz.\n\nWARNING: Currently not all system Hamiltonian information is available to the public, missing values have been replaced with 0.\n", "h_latex": "\\begin{align} \\mathcal{H}/\\hbar = & \\sum_{i=0}^{0}\\left(\\frac{\\omega_{q,i}}{2}(\\mathbb{I}-\\sigma_i^{z})+\\frac{\\Delta_{i}}{2}(O_i^2-O_i)+\\Omega_{d,i}D_i(t)\\sigma_i^{X}\\right) \\\\ \\end{align}", "h_str": ["_SUM[i,0,0,wq{i}/2*(I{i}-Z{i})]", "_SUM[i,0,0,delta{i}/2*O{i}*O{i}]", "_SUM[i,0,0,-delta{i}/2*O{i}]", "_SUM[i,0,0,omegad{i}*X{i}||D{i}]"], "osc": {}, "qub": {"0": 3}, "vars": {"delta0": -2.1814775258495027, "omegad0": 0.11622062289875916, "wq0": 31.239072791693637}}, "channels": {"acquire0": {"operates": {"qubits": [0]}, "purpose": "acquire", "type": "acquire"}, "d0": {"operates": {"qubits": [0]}, "purpose": "drive", "type": "drive"}, "m0": {"operates": {"qubits": [0]}, "purpose": "measure", "type": "measure"}}}

File diff suppressed because one or more lines are too long

View File

@ -1,48 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Armonk device (5 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeArmonkV2(fake_backend.FakeBackendV2):
"""A fake 1 qubit backend.
.. code-block:: text
0
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_armonk.json"
props_filename = "props_armonk.json"
defs_filename = "defs_armonk.json"
backend_name = "fake_armonk"
class FakeArmonk(fake_pulse_backend.FakePulseBackend):
"""A fake 1 qubit backend.
.. code-block:: text
0
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_armonk.json"
props_filename = "props_armonk.json"
defs_filename = "defs_armonk.json"
backend_name = "fake_armonk"

View File

@ -1 +0,0 @@
{"backend_name": "ibmq_armonk", "backend_version": "2.4.3", "last_update_date": "2021-03-15T00:40:24-04:00", "qubits": [[{"date": "2021-03-15T00:36:17-04:00", "name": "T1", "unit": "us", "value": 182.6611165336624}, {"date": "2021-03-14T00:33:45-05:00", "name": "T2", "unit": "us", "value": 237.8589220110257}, {"date": "2021-03-15T00:40:24-04:00", "name": "frequency", "unit": "GHz", "value": 4.971852852405576}, {"date": "2021-03-15T00:40:24-04:00", "name": "anharmonicity", "unit": "GHz", "value": -0.34719293148282626}, {"date": "2021-03-15T00:35:20-04:00", "name": "readout_error", "unit": "", "value": 0.02400000000000002}, {"date": "2021-03-15T00:35:20-04:00", "name": "prob_meas0_prep1", "unit": "", "value": 0.0234}, {"date": "2021-03-15T00:35:20-04:00", "name": "prob_meas1_prep0", "unit": "", "value": 0.024599999999999955}, {"date": "2021-03-15T00:35:20-04:00", "name": "readout_length", "unit": "ns", "value": 4977.777777777777}]], "gates": [{"qubits": [0], "gate": "id", "parameters": [{"date": "2021-03-15T00:38:15-04:00", "name": "gate_error", "unit": "", "value": 0.00019769550670970334}, {"date": "2021-03-15T00:40:24-04:00", "name": "gate_length", "unit": "ns", "value": 71.11111111111111}], "name": "id0"}, {"qubits": [0], "gate": "rz", "parameters": [{"date": "2021-03-15T00:40:24-04:00", "name": "gate_error", "unit": "", "value": 0}, {"date": "2021-03-15T00:40:24-04:00", "name": "gate_length", "unit": "ns", "value": 0}], "name": "rz0"}, {"qubits": [0], "gate": "sx", "parameters": [{"date": "2021-03-15T00:38:15-04:00", "name": "gate_error", "unit": "", "value": 0.00019769550670970334}, {"date": "2021-03-15T00:40:24-04:00", "name": "gate_length", "unit": "ns", "value": 71.11111111111111}], "name": "sx0"}, {"qubits": [0], "gate": "x", "parameters": [{"date": "2021-03-15T00:38:15-04:00", "name": "gate_error", "unit": "", "value": 0.00019769550670970334}, {"date": "2021-03-15T00:40:24-04:00", "name": "gate_length", "unit": "ns", "value": 71.11111111111111}], "name": "x0"}], "general": []}

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock athens backend"""
from .fake_athens import FakeAthensV2
from .fake_athens import FakeAthens

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Athens device (5 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeAthensV2(fake_backend.FakeBackendV2):
"""A fake 5 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_athens.json"
props_filename = "props_athens.json"
defs_filename = "defs_athens.json"
backend_name = "fake_athens"
class FakeAthens(fake_pulse_backend.FakePulseBackend):
"""A fake 5 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_athens.json"
props_filename = "props_athens.json"
defs_filename = "defs_athens.json"
backend_name = "fake_athens"

File diff suppressed because one or more lines are too long

View File

@ -1,15 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Fake Auckland device (27 qubits)"""
from .fake_auckland import FakeAuckland

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,29 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Auckland device (27 qubits).
"""
import os
from qiskit.providers.fake_provider import fake_backend
class FakeAuckland(fake_backend.FakeBackendV2):
"""A fake 27 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_auckland.json"
props_filename = "props_auckland.json"
defs_filename = "defs_auckland.json"
backend_name = "fake_auckland"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock belem backend"""
from .fake_belem import FakeBelemV2
from .fake_belem import FakeBelem

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Belem device (5 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeBelemV2(fake_backend.FakeBackendV2):
"""A fake 5 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_belem.json"
props_filename = "props_belem.json"
defs_filename = "defs_belem.json"
backend_name = "fake_belem"
class FakeBelem(fake_pulse_backend.FakePulseBackend):
"""A fake 5 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_belem.json"
props_filename = "props_belem.json"
defs_filename = "defs_belem.json"
backend_name = "fake_belem"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock boeblingen backend"""
from .fake_boeblingen import FakeBoeblingenV2
from .fake_boeblingen import FakeBoeblingen

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,60 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Boeblingen device (20 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeBoeblingenV2(fake_backend.FakeBackendV2):
"""A fake Boeblingen V2 backend.
.. code-block:: text
00 01 02 03 04
05 06 07 08 09
10 11 12 13 14
15 16 17 18 19
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_boeblingen.json"
props_filename = "props_boeblingen.json"
defs_filename = "defs_boeblingen.json"
backend_name = "fake_boeblingen"
class FakeBoeblingen(fake_pulse_backend.FakePulseBackend):
"""A fake Boeblingen backend.
.. code-block:: text
00 01 02 03 04
05 06 07 08 09
10 11 12 13 14
15 16 17 18 19
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_boeblingen.json"
props_filename = "props_boeblingen.json"
defs_filename = "defs_boeblingen.json"
backend_name = "fake_boeblingen"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock bogota backend"""
from .fake_bogota import FakeBogotaV2
from .fake_bogota import FakeBogota

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Bogota device (5 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeBogotaV2(fake_backend.FakeBackendV2):
"""A fake 5 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_bogota.json"
props_filename = "props_bogota.json"
defs_filename = "defs_bogota.json"
backend_name = "fake_bogota"
class FakeBogota(fake_pulse_backend.FakePulseBackend):
"""A fake 5 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_bogota.json"
props_filename = "props_bogota.json"
defs_filename = "defs_bogota.json"
backend_name = "fake_bogota"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock brooklyn backend"""
from .fake_brooklyn import FakeBrooklynV2
from .fake_brooklyn import FakeBrooklyn

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Brooklyn device (65 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeBrooklynV2(fake_backend.FakeBackendV2):
"""A fake Brooklyn V2 backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_brooklyn.json"
props_filename = "props_brooklyn.json"
defs_filename = "defs_brooklyn.json"
backend_name = "fake_brooklyn"
class FakeBrooklyn(fake_pulse_backend.FakePulseBackend):
"""A fake Brooklyn backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_brooklyn.json"
props_filename = "props_brooklyn.json"
defs_filename = "defs_brooklyn.json"
backend_name = "fake_brooklyn"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock burlington backend"""
from .fake_burlington import FakeBurlingtonV2
from .fake_burlington import FakeBurlington

View File

@ -1 +0,0 @@
{"backend_name": "ibmq_burlington", "backend_version": "1.1.4", "n_qubits": 5, "basis_gates": ["id", "u1", "u2", "u3", "cx"], "gates": [{"name": "id", "parameters": [], "qasm_def": "gate id q { U(0,0,0) q; }", "coupling_map": [[0], [1], [2], [3], [4]]}, {"name": "u1", "parameters": ["lambda"], "qasm_def": "gate u1(lambda) q { U(0,0,lambda) q; }", "coupling_map": [[0], [1], [2], [3], [4]]}, {"name": "u2", "parameters": ["phi", "lambda"], "qasm_def": "gate u2(phi,lambda) q { U(pi/2,phi,lambda) q; }", "coupling_map": [[0], [1], [2], [3], [4]]}, {"name": "u3", "parameters": ["theta", "phi", "lambda"], "qasm_def": "gate u3(theta,phi,lambda) q { U(theta,phi,lambda) q; }", "coupling_map": [[0], [1], [2], [3], [4]]}, {"name": "cx", "parameters": [], "qasm_def": "gate cx q1,q2 { CX q1,q2; }", "coupling_map": [[0, 1], [1, 0], [1, 2], [1, 3], [2, 1], [3, 1], [3, 4], [4, 3]]}], "local": false, "simulator": false, "conditional": false, "open_pulse": false, "memory": true, "max_shots": 8192, "coupling_map": [[0, 1], [1, 0], [1, 2], [1, 3], [2, 1], [3, 1], [3, 4], [4, 3]], "max_experiments": 75, "sample_name": "Giraffe", "n_registers": 1, "credits_required": true, "online_date": "2019-09-13T04:00:00+00:00", "description": "5 qubit device Burlington", "allow_q_object": true, "meas_map": [[0, 1, 2, 3, 4]], "quantum_volume": 8, "url": "None", "allow_object_storage": true}

View File

@ -1,50 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Burlington device (5 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
class FakeBurlingtonV2(fake_backend.FakeBackendV2):
"""A fake 5 qubit backend.
.. code-block:: text
0 1 3 4
2
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_burlington.json"
props_filename = "props_burlington.json"
backend_name = "fake_burlington"
class FakeBurlington(fake_qasm_backend.FakeQasmBackend):
"""A fake 5 qubit backend.
.. code-block:: text
0 1 3 4
2
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_burlington.json"
props_filename = "props_burlington.json"
backend_name = "fake_burlington"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock cairo backend"""
from .fake_cairo import FakeCairoV2
from .fake_cairo import FakeCairo

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Cairo device (27 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeCairoV2(fake_backend.FakeBackendV2):
"""A fake 27 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_cairo.json"
props_filename = "props_cairo.json"
defs_filename = "defs_cairo.json"
backend_name = "fake_cairo"
class FakeCairo(fake_pulse_backend.FakePulseBackend):
"""A fake 27 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_cairo.json"
props_filename = "props_cairo.json"
defs_filename = "defs_cairo.json"
backend_name = "fake_cairo"

File diff suppressed because one or more lines are too long

View File

@ -1,17 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock cambridge backend"""
from .fake_cambridge import FakeCambridgeV2
from .fake_cambridge import FakeCambridge
from .fake_cambridge import FakeCambridgeAlternativeBasis

View File

@ -1 +0,0 @@
{"backend_name": "ibmq_cambridge", "backend_version": "1.2.0", "n_qubits": 28, "basis_gates": ["id", "u1", "u2", "u3", "cx"], "gates": [{"name": "id", "parameters": [], "qasm_def": "gate id q { U(0,0,0) q; }", "coupling_map": [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27]]}, {"name": "u1", "parameters": ["lambda"], "qasm_def": "gate u1(lambda) q { U(0,0,lambda) q; }", "coupling_map": [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27]]}, {"name": "u2", "parameters": ["phi", "lambda"], "qasm_def": "gate u2(phi,lambda) q { U(pi/2,phi,lambda) q; }", "coupling_map": [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27]]}, {"name": "u3", "parameters": ["theta", "phi", "lambda"], "qasm_def": "gate u3(theta,phi,lambda) q { U(theta,phi,lambda) q; }", "coupling_map": [[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [16], [17], [18], [19], [20], [21], [22], [23], [24], [25], [26], [27]]}, {"name": "cx", "parameters": [], "qasm_def": "gate cx q1,q2 { CX q1,q2; }", "coupling_map": [[0, 1], [0, 5], [1, 0], [1, 2], [2, 1], [2, 3], [3, 2], [3, 4], [4, 3], [4, 6], [5, 0], [5, 9], [6, 4], [6, 13], [7, 8], [7, 16], [8, 7], [8, 9], [9, 5], [9, 8], [9, 10], [10, 9], [10, 11], [11, 10], [11, 12], [11, 17], [12, 11], [12, 13], [13, 6], [13, 12], [13, 14], [14, 13], [14, 15], [15, 14], [15, 18], [16, 7], [16, 19], [17, 11], [17, 23], [18, 15], [18, 27], [19, 16], [19, 20], [20, 19], [20, 21], [21, 20], [21, 22], [22, 21], [22, 23], [23, 17], [23, 22], [23, 24], [24, 23], [24, 25], [25, 24], [25, 26], [26, 25], [26, 27], [27, 18], [27, 26]]}], "local": false, "simulator": false, "conditional": false, "open_pulse": false, "memory": true, "max_shots": 8192, "coupling_map": [[0, 1], [0, 5], [1, 0], [1, 2], [2, 1], [2, 3], [3, 2], [3, 4], [4, 3], [4, 6], [5, 0], [5, 9], [6, 4], [6, 13], [7, 8], [7, 16], [8, 7], [8, 9], [9, 5], [9, 8], [9, 10], [10, 9], [10, 11], [11, 10], [11, 12], [11, 17], [12, 11], [12, 13], [13, 6], [13, 12], [13, 14], [14, 13], [14, 15], [15, 14], [15, 18], [16, 7], [16, 19], [17, 11], [17, 23], [18, 15], [18, 27], [19, 16], [19, 20], [20, 19], [20, 21], [21, 20], [21, 22], [22, 21], [22, 23], [23, 17], [23, 22], [23, 24], [24, 23], [24, 25], [25, 24], [25, 26], [26, 25], [26, 27], [27, 18], [27, 26]], "max_experiments": 900, "sample_name": "Falcon", "n_registers": 1, "credits_required": true, "online_date": "2019-11-08T05:00:00+00:00", "description": "28 qubit device", "allow_q_object": true, "meas_map": [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27]], "quantum_volume": 8, "url": "None", "allow_object_storage": true}

View File

@ -1,72 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Cambridge device (20 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
class FakeCambridgeV2(fake_backend.FakeBackendV2):
"""A fake Cambridge backend.
.. code-block:: text
00 01 02 03 04
05 06
07 08 09 10 11 12 13 14 15
16 17 18
19 20 21 22 23 24 25 26 27
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_cambridge.json"
props_filename = "props_cambridge.json"
backend_name = "fake_cambridge"
class FakeCambridge(fake_qasm_backend.FakeQasmBackend):
"""A fake Cambridge backend.
.. code-block:: text
00 01 02 03 04
05 06
07 08 09 10 11 12 13 14 15
16 17 18
19 20 21 22 23 24 25 26 27
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_cambridge.json"
props_filename = "props_cambridge.json"
backend_name = "fake_cambridge"
class FakeCambridgeAlternativeBasis(FakeCambridge):
"""A fake Cambridge backend with alternate 1q basis gates."""
props_filename = "props_cambridge_alt.json"
def __init__(self):
super().__init__()
self._configuration.basis_gates = ["u", "sx", "p", "cx", "id"]

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock casablanca backend"""
from .fake_casablanca import FakeCasablancaV2
from .fake_casablanca import FakeCasablanca

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Casablanca device (7 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeCasablancaV2(fake_backend.FakeBackendV2):
"""A fake 7 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_casablanca.json"
props_filename = "props_casablanca.json"
defs_filename = "defs_casablanca.json"
backend_name = "fake_casablanca"
class FakeCasablanca(fake_pulse_backend.FakePulseBackend):
"""A fake 7 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_casablanca.json"
props_filename = "props_casablanca.json"
defs_filename = "defs_casablanca.json"
backend_name = "fake_casablanca"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock essex backend"""
from .fake_essex import FakeEssexV2
from .fake_essex import FakeEssex

View File

@ -1 +0,0 @@
{"backend_name": "ibmq_essex", "backend_version": "1.0.2", "n_qubits": 5, "basis_gates": ["id", "u1", "u2", "u3", "cx"], "gates": [{"name": "id", "parameters": [], "qasm_def": "gate id q { U(0,0,0) q; }", "coupling_map": [[0], [1], [2], [3], [4]]}, {"name": "u1", "parameters": ["lambda"], "qasm_def": "gate u1(lambda) q { U(0,0,lambda) q; }", "coupling_map": [[0], [1], [2], [3], [4]]}, {"name": "u2", "parameters": ["phi", "lambda"], "qasm_def": "gate u2(phi,lambda) q { U(pi/2,phi,lambda) q; }", "coupling_map": [[0], [1], [2], [3], [4]]}, {"name": "u3", "parameters": ["theta", "phi", "lambda"], "qasm_def": "gate u3(theta,phi,lambda) q { U(theta,phi,lambda) q; }", "coupling_map": [[0], [1], [2], [3], [4]]}, {"name": "cx", "parameters": [], "qasm_def": "gate cx q1,q2 { CX q1,q2; }", "coupling_map": [[0, 1], [1, 0], [1, 2], [1, 3], [2, 1], [3, 1], [3, 4], [4, 3]]}], "local": false, "simulator": false, "conditional": false, "open_pulse": false, "memory": true, "max_shots": 8192, "coupling_map": [[0, 1], [1, 0], [1, 2], [1, 3], [2, 1], [3, 1], [3, 4], [4, 3]], "max_experiments": 75, "sample_name": "Giraffe", "n_registers": 1, "credits_required": true, "online_date": "2019-09-13T04:00:00+00:00", "description": "5 qubit device Essex", "allow_q_object": true, "meas_map": [[0, 1, 2, 3, 4]], "quantum_volume": 8, "url": "None", "allow_object_storage": true}

View File

@ -1,54 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Essex device (5 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
class FakeEssexV2(fake_backend.FakeBackendV2):
"""A fake 5 qubit backend.
.. code-block:: text
0 1 2
3
4
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_essex.json"
props_filename = "props_essex.json"
backend_name = "fake_essex"
class FakeEssex(fake_qasm_backend.FakeQasmBackend):
"""A fake 5 qubit backend.
.. code-block:: text
0 1 2
3
4
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_essex.json"
props_filename = "props_essex.json"
backend_name = "fake_essex"

File diff suppressed because one or more lines are too long

View File

@ -1,15 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Fake Geneva device (27 qubits)"""
from .fake_geneva import FakeGeneva

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,29 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Geneva device (27 qubits).
"""
import os
from qiskit.providers.fake_provider import fake_backend
class FakeGeneva(fake_backend.FakeBackendV2):
"""A fake 27 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_geneva.json"
props_filename = "props_geneva.json"
defs_filename = "defs_geneva.json"
backend_name = "fake_geneva"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock guadalupe backend"""
from .fake_guadalupe import FakeGuadalupeV2
from .fake_guadalupe import FakeGuadalupe

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,39 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Guadalupe device (5 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeGuadalupeV2(fake_backend.FakeBackendV2):
"""A fake 16 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_guadalupe.json"
props_filename = "props_guadalupe.json"
defs_filename = "defs_guadalupe.json"
backend_name = "fake_guadalupe"
class FakeGuadalupe(fake_pulse_backend.FakePulseBackend):
"""A fake 16 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_guadalupe.json"
props_filename = "props_guadalupe.json"
defs_filename = "defs_guadalupe.json"
backend_name = "fake_guadalupe"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock hanoi backend"""
from .fake_hanoi import FakeHanoiV2
from .fake_hanoi import FakeHanoi

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Hanoi device (27 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeHanoiV2(fake_backend.FakeBackendV2):
"""A fake 27 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_hanoi.json"
props_filename = "props_hanoi.json"
defs_filename = "defs_hanoi.json"
backend_name = "fake_hanoi"
class FakeHanoi(fake_pulse_backend.FakePulseBackend):
"""A fake 27 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_hanoi.json"
props_filename = "props_hanoi.json"
defs_filename = "defs_hanoi.json"
backend_name = "fake_hanoi"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock jakarta backend"""
from .fake_jakarta import FakeJakartaV2
from .fake_jakarta import FakeJakarta

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Jakarta device (7 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeJakartaV2(fake_backend.FakeBackendV2):
"""A fake 7 qubit V2 backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_jakarta.json"
props_filename = "props_jakarta.json"
defs_filename = "defs_jakarta.json"
backend_name = "fake_jakarta"
class FakeJakarta(fake_pulse_backend.FakePulseBackend):
"""A fake 7 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_jakarta.json"
props_filename = "props_jakarta.json"
defs_filename = "defs_jakarta.json"
backend_name = "fake_jakarta"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock johannesburg backend"""
from .fake_johannesburg import FakeJohannesburgV2
from .fake_johannesburg import FakeJohannesburg

File diff suppressed because one or more lines are too long

View File

@ -1,58 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2019.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Johannesburg device (20 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_qasm_backend, fake_backend
class FakeJohannesburgV2(fake_backend.FakeBackendV2):
"""A fake Johannesburg V2 backend.
.. code-block:: text
00 01 02 03 04
05 06 07 08 09
10 11 12 13 14
15 16 17 18 19
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_johannesburg.json"
props_filename = "props_johannesburg.json"
backend_name = "fake_johannesburg"
class FakeJohannesburg(fake_qasm_backend.FakeQasmBackend):
"""A fake Johannesburg backend.
.. code-block:: text
00 01 02 03 04
05 06 07 08 09
10 11 12 13 14
15 16 17 18 19
"""
dirname = os.path.dirname(__file__)
conf_filename = "conf_johannesburg.json"
props_filename = "props_johannesburg.json"
backend_name = "fake_johannesburg"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock kolkata backend"""
from .fake_kolkata import FakeKolkataV2
from .fake_kolkata import FakeKolkata

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Kolkata device (27 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeKolkataV2(fake_backend.FakeBackendV2):
"""A fake 27 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_kolkata.json"
props_filename = "props_kolkata.json"
defs_filename = "defs_kolkata.json"
backend_name = "fake_kolkata"
class FakeKolkata(fake_pulse_backend.FakePulseBackend):
"""A fake 27 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_kolkata.json"
props_filename = "props_kolkata.json"
defs_filename = "defs_kolkata.json"
backend_name = "fake_kolkata"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock lagos backend"""
from .fake_lagos import FakeLagosV2
from .fake_lagos import FakeLagos

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,38 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
Fake Lagos device (7 qubit).
"""
import os
from qiskit.providers.fake_provider import fake_pulse_backend, fake_backend
class FakeLagosV2(fake_backend.FakeBackendV2):
"""A fake 7 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_lagos.json"
props_filename = "props_lagos.json"
defs_filename = "defs_lagos.json"
backend_name = "fake_lagos"
class FakeLagos(fake_pulse_backend.FakePulseBackend):
"""A fake 7 qubit backend."""
dirname = os.path.dirname(__file__)
conf_filename = "conf_lagos.json"
props_filename = "props_lagos.json"
defs_filename = "defs_lagos.json"
backend_name = "fake_lagos"

File diff suppressed because one or more lines are too long

View File

@ -1,16 +0,0 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""Mock lima backend"""
from .fake_lima import FakeLimaV2
from .fake_lima import FakeLima

Some files were not shown because too many files have changed in this diff Show More