-
Notifications
You must be signed in to change notification settings - Fork 982
/
__init__.py
105 lines (85 loc) · 2.72 KB
/
__init__.py
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Copyright 2018 The Cirq Developers
#
# 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
#
# https://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.
"""Circuit transformation utilities."""
from cirq.optimizers.align_left import (
AlignLeft,
)
from cirq.optimizers.align_right import (
AlignRight,
)
from cirq.optimizers.clifford_decomposition import decompose_clifford_tableau_to_operations
from cirq.optimizers.cphase_to_fsim import (
compute_cphase_exponents_for_fsim_decomposition,
decompose_cphase_into_two_fsim,
)
from cirq.optimizers.controlled_gate_decomposition import (
decompose_multi_controlled_x,
decompose_multi_controlled_rotation,
)
from cirq.optimizers.drop_empty_moments import (
DropEmptyMoments,
)
from cirq.optimizers.drop_negligible import (
DropNegligible,
)
from cirq.optimizers.convert_to_cz_and_single_gates import (
ConvertToCzAndSingleGates,
)
from cirq.optimizers.eject_phased_paulis import (
EjectPhasedPaulis,
)
from cirq.optimizers.eject_z import (
EjectZ,
)
from cirq.optimizers.expand_composite import (
ExpandComposite,
)
from cirq.optimizers.merge_interactions import (
MergeInteractions,
)
from cirq.optimizers.merge_interactions_to_sqrt_iswap import (
MergeInteractionsToSqrtIswap,
)
from cirq.optimizers.merge_single_qubit_gates import (
merge_single_qubit_gates_into_phased_x_z,
merge_single_qubit_gates_into_phxz,
MergeSingleQubitGates,
)
from cirq.optimizers.decompositions import (
is_negligible_turn,
single_qubit_matrix_to_gates,
single_qubit_matrix_to_pauli_rotations,
single_qubit_matrix_to_phased_x_z,
single_qubit_matrix_to_phxz,
single_qubit_op_to_framed_phase_form,
)
from cirq.optimizers.stratify import (
stratified_circuit,
)
from cirq.optimizers.synchronize_terminal_measurements import (
SynchronizeTerminalMeasurements,
)
from cirq.optimizers.three_qubit_decomposition import (
three_qubit_matrix_to_operations,
)
from cirq.optimizers.two_qubit_decompositions import (
two_qubit_matrix_to_operations,
two_qubit_matrix_to_diagonal_and_operations,
)
from cirq.optimizers.two_qubit_to_sqrt_iswap import (
two_qubit_matrix_to_sqrt_iswap_operations,
)
from cirq.optimizers.two_qubit_to_fsim import (
decompose_two_qubit_interaction_into_four_fsim_gates,
)