View source on GitHub |
Decomposes a 2q operation into at-most 2 CZs + 1q rotations; assuming q0
is initially |0>.
cirq.two_qubit_matrix_to_cz_isometry(
q0: 'cirq.Qid',
q1: 'cirq.Qid',
mat: np.ndarray,
allow_partial_czs: bool = False,
atol: float = 1e-08,
clean_operations: bool = True
) -> List['cirq.Operation']
The method implements isometry from one to two qubits; assuming qubit q0
is always in the |0>
state. See Appendix B.1 of https://arxiv.org/abs/1501.06911 for more details.
Returns | |
---|---|
A list of operations implementing the action of the given unitary matrix, assuming
the input qubit q0 is in the |0> state.
|