Example #1
0
def _do_single_on(u: np.ndarray, q: 'cirq.Qid', atol: float = 1e-8):
    for gate in decompositions.single_qubit_matrix_to_gates(u, atol):
        yield gate(q)
Example #2
0
def _do_single_on(u: np.ndarray, q: ops.QubitId, tolerance: float = 1e-8):
    for gate in decompositions.single_qubit_matrix_to_gates(u, tolerance):
        yield gate(q)