File tree 5 files changed +35
-18
lines changed
5 files changed +35
-18
lines changed Original file line number Diff line number Diff line change 340
340
EjectZ ,
341
341
ExpandComposite ,
342
342
is_negligible_turn ,
343
- map_moments ,
344
- map_operations ,
345
- map_operations_and_unroll ,
346
- merge_moments ,
347
- merge_operations ,
348
343
merge_single_qubit_gates_into_phased_x_z ,
349
344
merge_single_qubit_gates_into_phxz ,
350
345
MergeInteractions ,
363
358
two_qubit_matrix_to_diagonal_and_operations ,
364
359
two_qubit_matrix_to_sqrt_iswap_operations ,
365
360
three_qubit_matrix_to_operations ,
361
+ )
362
+
363
+ from cirq .transformers import (
364
+ map_moments ,
365
+ map_operations ,
366
+ map_operations_and_unroll ,
367
+ merge_moments ,
368
+ merge_operations ,
366
369
unroll_circuit_op ,
367
370
unroll_circuit_op_greedy_earliest ,
368
371
unroll_circuit_op_greedy_frontier ,
Original file line number Diff line number Diff line change 97
97
three_qubit_matrix_to_operations ,
98
98
)
99
99
100
- from cirq .optimizers .transformer_primitives import (
101
- map_moments ,
102
- map_operations ,
103
- map_operations_and_unroll ,
104
- merge_moments ,
105
- merge_operations ,
106
- unroll_circuit_op ,
107
- unroll_circuit_op_greedy_earliest ,
108
- unroll_circuit_op_greedy_frontier ,
109
- )
110
-
111
-
112
100
from cirq .optimizers .two_qubit_decompositions import (
113
101
two_qubit_matrix_to_operations ,
114
102
two_qubit_matrix_to_diagonal_and_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
+ """Circuit transformation utilities."""
16
+
17
+ from cirq .transformers .transformer_primitives import (
18
+ map_moments ,
19
+ map_operations ,
20
+ map_operations_and_unroll ,
21
+ merge_moments ,
22
+ merge_operations ,
23
+ unroll_circuit_op ,
24
+ unroll_circuit_op_greedy_earliest ,
25
+ unroll_circuit_op_greedy_frontier ,
26
+ )
File renamed without changes.
Original file line number Diff line number Diff line change 16
16
import pytest
17
17
18
18
import cirq
19
- from cirq .optimizers .transformer_primitives import MAPPED_CIRCUIT_OP_TAG
19
+ from cirq .transformers .transformer_primitives import MAPPED_CIRCUIT_OP_TAG
20
20
21
21
22
22
def test_map_operations_can_write_new_gates_inline ():
You can’t perform that action at this time.
0 commit comments