File tree 6 files changed +27
-7
lines changed
analytical_decompositions
6 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 346
346
MergeInteractions ,
347
347
MergeInteractionsToSqrtIswap ,
348
348
MergeSingleQubitGates ,
349
- prepare_two_qubit_state_using_cz ,
350
- prepare_two_qubit_state_using_sqrt_iswap ,
351
349
single_qubit_matrix_to_gates ,
352
350
single_qubit_matrix_to_pauli_rotations ,
353
351
single_qubit_matrix_to_phased_x_z ,
367
365
map_operations_and_unroll ,
368
366
merge_moments ,
369
367
merge_operations ,
368
+ prepare_two_qubit_state_using_cz ,
369
+ prepare_two_qubit_state_using_sqrt_iswap ,
370
370
unroll_circuit_op ,
371
371
unroll_circuit_op_greedy_earliest ,
372
372
unroll_circuit_op_greedy_frontier ,
Original file line number Diff line number Diff line change 72
72
MergeSingleQubitGates ,
73
73
)
74
74
75
- from cirq .optimizers .two_qubit_state_preparation import (
76
- prepare_two_qubit_state_using_cz ,
77
- prepare_two_qubit_state_using_sqrt_iswap ,
78
- )
79
-
80
75
from cirq .optimizers .decompositions import (
81
76
is_negligible_turn ,
82
77
single_qubit_matrix_to_gates ,
Original file line number Diff line number Diff line change 14
14
15
15
"""Circuit transformation utilities."""
16
16
17
+ from cirq .transformers .analytical_decompositions import (
18
+ prepare_two_qubit_state_using_cz ,
19
+ prepare_two_qubit_state_using_sqrt_iswap ,
20
+ )
21
+
17
22
from cirq .transformers .transformer_primitives import (
18
23
map_moments ,
19
24
map_operations ,
Original file line number Diff line number Diff line change
1
+ # Copyright 2021 The Cirq Developers
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # https://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ """Utilities for analytical decomposition of cirq gates."""
16
+
17
+ from cirq .transformers .analytical_decompositions .two_qubit_state_preparation import (
18
+ prepare_two_qubit_state_using_cz ,
19
+ prepare_two_qubit_state_using_sqrt_iswap ,
20
+ )
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments