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 c39c6cc commit ccaf44dCopy full SHA for ccaf44d
src/zx/FunctionalityConstruction.cpp
@@ -331,13 +331,13 @@ void FunctionalityConstruction::addCcz(ZXDiagram& diag, const Qubit ctrl0,
331
332
void FunctionalityConstruction::addCrz(ZXDiagram& diag,
333
const PiExpression& phase,
334
- const Qubit control, const Qubit target,
+ const Qubit target, const Qubit control,
335
std::vector<Vertex>& qubits) {
336
// CRZ decomposition uses reversed CNOT direction
337
- addCnot(diag, target, control, qubits);
338
- addZSpider(diag, control, qubits, -phase / 2);
339
- addZSpider(diag, target, qubits, phase / 2);
340
+ addCnot(diag, control, target, qubits);
+ addZSpider(diag, target, qubits, -phase / 2);
+ addZSpider(diag, control, qubits, phase / 2);
341
}
342
343
void FunctionalityConstruction::addMcrz(ZXDiagram& diag,
0 commit comments