How to construct a CCY gate in QiskitIs there a common set of modules for user-defining-quantum-gate for QISKitHow to construct a multi-qubit controlled-Z from elementary gates?How to prevent future loops using a control qubit?Why won't Qiskit ccx gate accept registers?Building an N-qubit Controlled S GateIBM Q devices scheduling of gates with different durationsHow to implement the XY Heisenberg interaction using IBMQ and Qiskit?Implementing a complex circuit for a Szegedy quantum walk in qiskitHow to do randomised benchmarking for non-Clifford gates on Qiskit?How to create an Ising coupling gate with Qiskit
Use of expression "statistically significantly positive"
What elements would be created in a star composed entirely of gold?
Make a haystack (with a needle)
Employer says they want Quality & Quantity, but only pays bonuses based on the latter
Where are the other 36 children born the same day?
My cat gets angry and scared at me if I stand
Should I stop applying faculty positions after I take on a postdoc job
Why is Robin Hood French in Shrek?
Can I cover a compact set by balls B such that 2B has bounded overlap?
As tourist in China do I have to fear consequences for having publicly liked South Park?
instead of pressurizing an entire spacesuit with oxygen could oxygen just pressurize the head and the rest of the body be pressurized with water?
Take-Home Examination on Ordinary Differential Equations?
How can I more clearly ask people to accomodate for my autism?
Is Jupiter bright enough to be seen in color by the naked eye from Jupiter orbit?
What is the difference between democracy and ochlocracy?
what was wrong with 2010 Flash Crash
Is it possible to commute 34km daily?
Mutate my DNA sequence
Why do turf winterguard (applied late fall) fertilizers have no “P” (phosphorous)?
Why are one-word titles so dominant in books, film, and games?
What does exhaust smell on oil and transmission dipstick mean?
Countering an uncounterable spell, triggers, and state-based actions
A word/phrase means "a small amount" (of a color)
Moisture leaking out of chip in floor tile
How to construct a CCY gate in Qiskit
Is there a common set of modules for user-defining-quantum-gate for QISKitHow to construct a multi-qubit controlled-Z from elementary gates?How to prevent future loops using a control qubit?Why won't Qiskit ccx gate accept registers?Building an N-qubit Controlled S GateIBM Q devices scheduling of gates with different durationsHow to implement the XY Heisenberg interaction using IBMQ and Qiskit?Implementing a complex circuit for a Szegedy quantum walk in qiskitHow to do randomised benchmarking for non-Clifford gates on Qiskit?How to create an Ising coupling gate with Qiskit
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
$begingroup$
How can one construct a CCY gate using gates which are native to Qiskit (CCX and single qubit gates). I was able to find the answer for CCZ gates, however guessing and testing until I can figure out CCY seems like a bad way to go.
quantum-gate qiskit
$endgroup$
add a comment
|
$begingroup$
How can one construct a CCY gate using gates which are native to Qiskit (CCX and single qubit gates). I was able to find the answer for CCZ gates, however guessing and testing until I can figure out CCY seems like a bad way to go.
quantum-gate qiskit
$endgroup$
1
$begingroup$
could you list what are the gates native to Qiskit? Decomposing procedures depend on the allowed gate set. Also, are you asking "How to construct a CCY gate using gates that are native to Qiskit", or "Is there a general procedure for decomposing arbitrary unitary operations?" I would put one of these two questions in the title/body of the post, and remove the other one (on stackexchange it is encouraged to ask a single question per post)
$endgroup$
– glS
May 29 at 17:51
add a comment
|
$begingroup$
How can one construct a CCY gate using gates which are native to Qiskit (CCX and single qubit gates). I was able to find the answer for CCZ gates, however guessing and testing until I can figure out CCY seems like a bad way to go.
quantum-gate qiskit
$endgroup$
How can one construct a CCY gate using gates which are native to Qiskit (CCX and single qubit gates). I was able to find the answer for CCZ gates, however guessing and testing until I can figure out CCY seems like a bad way to go.
quantum-gate qiskit
quantum-gate qiskit
edited Jun 5 at 18:11
Jeff
asked May 29 at 17:38
JeffJeff
424 bronze badges
424 bronze badges
1
$begingroup$
could you list what are the gates native to Qiskit? Decomposing procedures depend on the allowed gate set. Also, are you asking "How to construct a CCY gate using gates that are native to Qiskit", or "Is there a general procedure for decomposing arbitrary unitary operations?" I would put one of these two questions in the title/body of the post, and remove the other one (on stackexchange it is encouraged to ask a single question per post)
$endgroup$
– glS
May 29 at 17:51
add a comment
|
1
$begingroup$
could you list what are the gates native to Qiskit? Decomposing procedures depend on the allowed gate set. Also, are you asking "How to construct a CCY gate using gates that are native to Qiskit", or "Is there a general procedure for decomposing arbitrary unitary operations?" I would put one of these two questions in the title/body of the post, and remove the other one (on stackexchange it is encouraged to ask a single question per post)
$endgroup$
– glS
May 29 at 17:51
1
1
$begingroup$
could you list what are the gates native to Qiskit? Decomposing procedures depend on the allowed gate set. Also, are you asking "How to construct a CCY gate using gates that are native to Qiskit", or "Is there a general procedure for decomposing arbitrary unitary operations?" I would put one of these two questions in the title/body of the post, and remove the other one (on stackexchange it is encouraged to ask a single question per post)
$endgroup$
– glS
May 29 at 17:51
$begingroup$
could you list what are the gates native to Qiskit? Decomposing procedures depend on the allowed gate set. Also, are you asking "How to construct a CCY gate using gates that are native to Qiskit", or "Is there a general procedure for decomposing arbitrary unitary operations?" I would put one of these two questions in the title/body of the post, and remove the other one (on stackexchange it is encouraged to ask a single question per post)
$endgroup$
– glS
May 29 at 17:51
add a comment
|
1 Answer
1
active
oldest
votes
$begingroup$
For $mathrmCC Y$, given that you have a decomposition for $mathrmCC Z$ (or for $textrmCC X = mathrmToffoli$), all you need is the relationship between $ X$, $Y$, and $Z$:
$$ Y = R_z (-tfracpi2) X R_z (tfracpi2) = R_x (tfracpi2) Z R_x(-tfracpi2) $$
Then, given $Y = U P U^dagger$ for some $P$ for which you know a decomposition for $mathrmCC P$, simply do the analogous decomposition:
$$ mathrmCCY = (mathbf 1 otimes mathbf 1 otimes U) mathrmCC P (mathbf 1 otimes mathbf 1 otimes U)^dagger. $$
You can do this for any self-inverse unitary $V$ in place of $Y$ as well.
$endgroup$
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "694"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fquantumcomputing.stackexchange.com%2fquestions%2f6274%2fhow-to-construct-a-ccy-gate-in-qiskit%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
For $mathrmCC Y$, given that you have a decomposition for $mathrmCC Z$ (or for $textrmCC X = mathrmToffoli$), all you need is the relationship between $ X$, $Y$, and $Z$:
$$ Y = R_z (-tfracpi2) X R_z (tfracpi2) = R_x (tfracpi2) Z R_x(-tfracpi2) $$
Then, given $Y = U P U^dagger$ for some $P$ for which you know a decomposition for $mathrmCC P$, simply do the analogous decomposition:
$$ mathrmCCY = (mathbf 1 otimes mathbf 1 otimes U) mathrmCC P (mathbf 1 otimes mathbf 1 otimes U)^dagger. $$
You can do this for any self-inverse unitary $V$ in place of $Y$ as well.
$endgroup$
add a comment
|
$begingroup$
For $mathrmCC Y$, given that you have a decomposition for $mathrmCC Z$ (or for $textrmCC X = mathrmToffoli$), all you need is the relationship between $ X$, $Y$, and $Z$:
$$ Y = R_z (-tfracpi2) X R_z (tfracpi2) = R_x (tfracpi2) Z R_x(-tfracpi2) $$
Then, given $Y = U P U^dagger$ for some $P$ for which you know a decomposition for $mathrmCC P$, simply do the analogous decomposition:
$$ mathrmCCY = (mathbf 1 otimes mathbf 1 otimes U) mathrmCC P (mathbf 1 otimes mathbf 1 otimes U)^dagger. $$
You can do this for any self-inverse unitary $V$ in place of $Y$ as well.
$endgroup$
add a comment
|
$begingroup$
For $mathrmCC Y$, given that you have a decomposition for $mathrmCC Z$ (or for $textrmCC X = mathrmToffoli$), all you need is the relationship between $ X$, $Y$, and $Z$:
$$ Y = R_z (-tfracpi2) X R_z (tfracpi2) = R_x (tfracpi2) Z R_x(-tfracpi2) $$
Then, given $Y = U P U^dagger$ for some $P$ for which you know a decomposition for $mathrmCC P$, simply do the analogous decomposition:
$$ mathrmCCY = (mathbf 1 otimes mathbf 1 otimes U) mathrmCC P (mathbf 1 otimes mathbf 1 otimes U)^dagger. $$
You can do this for any self-inverse unitary $V$ in place of $Y$ as well.
$endgroup$
For $mathrmCC Y$, given that you have a decomposition for $mathrmCC Z$ (or for $textrmCC X = mathrmToffoli$), all you need is the relationship between $ X$, $Y$, and $Z$:
$$ Y = R_z (-tfracpi2) X R_z (tfracpi2) = R_x (tfracpi2) Z R_x(-tfracpi2) $$
Then, given $Y = U P U^dagger$ for some $P$ for which you know a decomposition for $mathrmCC P$, simply do the analogous decomposition:
$$ mathrmCCY = (mathbf 1 otimes mathbf 1 otimes U) mathrmCC P (mathbf 1 otimes mathbf 1 otimes U)^dagger. $$
You can do this for any self-inverse unitary $V$ in place of $Y$ as well.
answered May 29 at 17:53
Niel de BeaudrapNiel de Beaudrap
7,6311 gold badge13 silver badges42 bronze badges
7,6311 gold badge13 silver badges42 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Quantum Computing Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fquantumcomputing.stackexchange.com%2fquestions%2f6274%2fhow-to-construct-a-ccy-gate-in-qiskit%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
could you list what are the gates native to Qiskit? Decomposing procedures depend on the allowed gate set. Also, are you asking "How to construct a CCY gate using gates that are native to Qiskit", or "Is there a general procedure for decomposing arbitrary unitary operations?" I would put one of these two questions in the title/body of the post, and remove the other one (on stackexchange it is encouraged to ask a single question per post)
$endgroup$
– glS
May 29 at 17:51