We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5029af4 commit 8802685Copy full SHA for 8802685
cirq/optimizers/two_qubit_to_fsim.py
@@ -169,8 +169,8 @@ def num_qubits(self) -> int:
169
def _decompose_(self, qubits):
170
a, b = qubits
171
return [
172
- ops.XX(a, b)**0.5,
173
- ops.YY(a, b)**0.25,
+ ops.XX(a, b)**-0.5,
+ ops.YY(a, b)**-0.25,
174
]
175
176
@@ -231,9 +231,9 @@ def _decompose_interaction_into_two_b_gates_ignoring_single_qubit_ops(
231
b2 = np.arcsin(np.sqrt(b1))
232
b3 = np.arccos(1 - 4 * r)
233
rb = [
234
- ops.rz(b2).on(b),
235
- ops.ry(b3).on(b),
236
+ ops.rz(-b2).on(b),
+ ops.ry(-b3).on(b),
237
238
s = 1 if z < 0 else -1
239
0 commit comments