__init__.py 1.7 KB
Newer Older
Q
Quleaf 已提交
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
# !/usr/bin/env python3
# Copyright (c) 2022 Institute for Quantum Computing, Baidu Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

r"""
The module that contains the functions of various quantum gates.
"""

from .single_qubit_gate import h
from .single_qubit_gate import s
from .single_qubit_gate import t
from .single_qubit_gate import x
from .single_qubit_gate import y
from .single_qubit_gate import z
from .single_qubit_gate import p
from .single_qubit_gate import rx
from .single_qubit_gate import ry
from .single_qubit_gate import rz
from .single_qubit_gate import u3
from .multi_qubit_gate import cnot
from .multi_qubit_gate import cx
from .multi_qubit_gate import cy
from .multi_qubit_gate import cz
from .multi_qubit_gate import swap
from .multi_qubit_gate import cp
from .multi_qubit_gate import crx
from .multi_qubit_gate import cry
from .multi_qubit_gate import crz
from .multi_qubit_gate import cu
from .multi_qubit_gate import rxx
from .multi_qubit_gate import ryy
from .multi_qubit_gate import rzz
from .multi_qubit_gate import ms
from .multi_qubit_gate import cswap
from .multi_qubit_gate import toffoli
from .multi_qubit_gate import universal_two_qubits
from .multi_qubit_gate import universal_three_qubits
from .multi_qubit_gate import oracle