cirq.prepare_two_qubit_state_using_cz
Prepares the given 2q state from |00> using at-most 1 CZ gate + single qubit rotations.
cirq.prepare_two_qubit_state_using_cz(
q0: 'cirq.Qid', q1: 'cirq.Qid', state: 'cirq.STATE_VECTOR_LIKE'
) -> List['cirq.Operation']
Entangled states are prepared using exactly 1 CZ gate while product states are prepared
using only single qubit rotations (0 CZ gates)
Args |
q0
|
The first qubit being operated on.
|
q1
|
The other qubit being operated on.
|
state
|
4x1 matrix representing two qubit state vector, ordered as 00, 01, 10, 11.
|
Returns |
List of operations (at-most 1 CZ + single qubit rotations) preparing state from |00>.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]