Halaman ini belum diterjemahkan. Anda sedang melihat versi asal dalam bahasa Inggeris.
Utility-scale experiment III
Toshinari Itoko, Tamiya Onodera, Kifumi Numata (19 July 2024)
Download the pdf of the original lecture. Note that some code snippets might become deprecated since these are static images.
Approximate QPU time to run this first experiment is 12 m 30 s. There is an additional experiment below that requires approximately 4 m.
(Note: this notebook might not evaluate in the time allowed on the Open Plan. Be sure to use quantum computing resources wisely.)
# Added by doQumentation — required packages for this notebook
!pip install -q numpy qiskit qiskit-ibm-runtime rustworkx
import qiskit
qiskit.__version__
'2.0.2'
import qiskit_ibm_runtime
qiskit_ibm_runtime.__version__
'0.40.1'
import numpy as np
import rustworkx as rx
from qiskit import QuantumCircuit
from qiskit.visualization import plot_histogram
from qiskit.visualization import plot_gate_map
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager
from qiskit.providers import BackendV2
from qiskit.quantum_info import SparsePauliOp
from qiskit_ibm_runtime import QiskitRuntimeService
from qiskit_ibm_runtime import Sampler, Estimator, Batch, SamplerOptions
1. Introduction
Let us briefly review GHZ states, and what sort of distribution you might expect from Sampler applied to one. Then we will spell out the goal of this lesson explicitly.
1.1 GHZ state
The GHZ state (Greenberger-Horne-Zeilinger state) for qubits is defined as