Qiskit implementation
Nepřeloženo
Tato stránka zatím nebyla přeložena do češtiny. Zobrazujete původní anglickou verzi.
In the previous lesson, we took a first look at the Statevector and Operator classes in Qiskit, and used them to simulate operations and measurements on single qubits.
In this section, we'll use these classes to explore the behavior of multiple qubits.
# Added by doQumentation — required packages for this notebook
!pip install -q numpy qiskit
from qiskit import __version__
print(__version__)
2.1.1
We'll start by importing the Statevector and Operator classes, as well as the square root function from NumPy.
Hereafter, generally speaking, we'll take care of all of our required imports first within each lesson.
from qiskit.quantum_info import Statevector, Operator
from numpy import sqrt