Skip to main content
IBM Quantum Platform

Fornitore falso

qiskit_ibm_runtime.fake_provider


Panoramica

Il modulo dei falsi provider contiene classi di falsi provider e falsi backend. I falsi backend sono costruiti per imitare i comportamenti dei sistemi IBM Quantum utilizzando le istantanee del sistema. Le istantanee del sistema contengono informazioni importanti sul sistema quantistico, come la mappa di accoppiamento, le porte di base, le proprietà dei qubit ( T1, T2, il tasso di errore, ecc.) che sono utili per testare il transpiler ed eseguire simulazioni rumorose del sistema.


Utilizzo di esempio

Ecco un esempio di utilizzo di un backend falso per la trasposizione e la simulazione.

from qiskit import QuantumCircuit
from qiskit import transpile
from qiskit.visualization import plot_histogram
from qiskit_ibm_runtime import SamplerV2
from qiskit_ibm_runtime.fake_provider import FakeManilaV2

# Get a fake backend from the fake provider
backend = FakeManilaV2()

# Create a simple circuit
circuit = QuantumCircuit(3)
circuit.h(0)
circuit.cx(0,1)
circuit.cx(0,2)
circuit.measure_all()
circuit.draw('mpl', style="iqp")
Schema del circuito prodotto dal codice precedente.
# Transpile the ideal circuit to a circuit that can be
# directly executed by the backend
transpiled_circuit = transpile(circuit, backend)
transpiled_circuit.draw('mpl', style="iqp")
Schema del circuito prodotto dal codice precedente.
# Run the transpiled circuit using the simulated fake backend
sampler = SamplerV2(backend)
job = sampler.run([transpiled_circuit])
pub_result = job.result()[0]
counts = pub_result.data.meas.get_counts()
plot_histogram(counts)
Istogramma prodotto dal codice precedente.
Importante

Si noti che la simulazione viene effettuata utilizzando un modello di rumore generato da istantanee del sistema ottenute in passato (a volte qualche anno fa) e i risultati non sono rappresentativi dei comportamenti più recenti del sistema quantistico reale che il backend fasullo sta imitando. Se si desidera eseguire simulazioni rumorose con le ultime istantanee del backend, si può utilizzare il metodo refresh() .

from qiskit_ibm_runtime import QiskitRuntimeService
from qiskit_ibm_runtime.fake_provider import FakeSherbrooke

# initialize service to access real backends
service = QiskitRuntimeService()

# call refresh to retrieve latest backend data
# note that this overwrites your local qiskit-ibm-runtime files
backend = FakeSherbrooke()
backend.refresh(service)

Fornitori falsi

I provider fasulli forniscono l'accesso a un elenco di backend fasulli.

FakeProviderForBackendV2Falso provider contenente falsi backend di V2.

Backend falsi

Backend falsi di V2

I falsi backend V2 sono falsi backend con snapshot dei sistemi IBM Quantum implementati con l'interfaccia BackendV2 . Sono tutte sottoclassi di FakeBackendV2.

FakeAachenUn falso backend a 156 qubit.
FakeAlgiersUn falso backend a 27 qubit.
FakeAlmadenV2Un falso backend Almaden V2.
FakeArmonkV2Un falso backend a 1 qubit.
FakeAthensV2Un falso backend a 5 qubit.
FakeAucklandUn falso backend a 27 qubit.
FakeBelemV2Un falso backend a 5 qubit.
FakeBerlinUn backend fittizio da 120 qubit.
FakeBoeblingenV2Un falso backend di Boeblingen V2.
FakeBogotaV2Un falso backend a 5 qubit.
FakeBostonUn falso backend a 156 qubit.
FakeBrisbaneUn falso backend a 127 qubit.
FakeBrooklynV2Un falso backend di Brooklyn V2.
FakeBrusselsUn falso backend a 127 qubit.
FakeBurlingtonV2Un falso backend a 5 qubit.
FakeCairoV2Un falso backend a 27 qubit.
FakeCambridgeV2Un falso backend di Cambridge.
FakeCasablancaV2Un falso backend a 7 qubit.
FakeCuscoUn falso backend a 127 qubit.
FakeEssexV2Un falso backend a 5 qubit.
FakeFezUn falso backend a 156 qubit.
FakeGenevaUn falso backend a 27 qubit.
FakeGuadalupeV2Un falso backend a 16 qubit.
FakeHanoiV2Un falso backend a 27 qubit.
FakeJakartaV2Un falso backend a 7 qubit V2.
FakeJohannesburgV2Un falso backend di Johannesburg V2.
FakeKawasakiUn falso backend a 127 qubit.
FakeKingstonUn falso backend a 156 qubit.
FakeKolkataV2Un falso backend a 27 qubit.
FakeKyivUn falso backend a 127 qubit.
FakeKyotoUn falso backend a 127 qubit.
FakeLagosV2Un falso backend a 7 qubit.
FakeLimaV2Un falso backend a 5 qubit.
FakeFractionalBackendUn falso backend a 5 qubit con caratteristiche dinamiche e frazionali modellate sulla base di FakeLima.
FakeLondonV2Un falso backend a 5 qubit.
FakeManhattanV2Un falso backend di Manhattan.
FakeManilaV2Un falso backend a 5 qubit.
FakeMarrakeshUn falso backend a 156 qubit.
FakeMelbourneV2Un falso backend a 15 qubit.
FakeMiamiUn backend fittizio da 120 qubit.
FakeMontrealV2Un falso backend a 27 qubit.
FakeMumbaiV2Un falso backend a 27 qubit.
FakeNairobiV2Un falso backend a 7 qubit.
FakeOsakaUn falso backend a 127 qubit.
FakeOsloUn falso backend a 7 qubit.
FakeOurenseV2Un falso backend a 5 qubit.
FakeParisV2Un falso backend parigino.
FakePeekskillUn falso backend a 27 qubit.
FakePerthUn falso backend a 7 qubit.
FakePittsburghUn falso backend a 156 qubit.
FakePragueUn falso backend a 33 qubit.
FakePoughkeepsieV2Un falso backend di Poughkeepsie.
FakeQuebecUn falso backend a 127 qubit.
FakeQuitoV2Un falso backend a 5 qubit.
FakeRochesterV2Un falso backend Rochester.
FakeRomeV2Un falso backend a 5 qubit.
FakeSantiagoV2Un falso backend di Santiago.
FakeSherbrookeUn falso backend a 127 qubit.
FakeSingaporeV2Un falso backend di Singapore.
FakeStrasbourgUn falso backend a 127 qubit.
FakeSydneyV2Un falso backend a 27 qubit.
FakeTorinoUn falso backend a 133 qubit.
FakeTorontoV2Un falso backend a 27 qubit.
FakeValenciaV2Un falso backend a 5 qubit.
FakeVigoV2Un falso backend a 5 qubit.
FakeWashingtonV2Un falso backend a 127 qubit.
FakeYorktownV2Un falso backend a 5 qubit.
Questa pagina è stata utile?
Segnala un bug, un errore di battitura o richiedi contenuti su GitHub.