@@ -1745,21 +1745,21 @@ struct GateDecompositionPattern final
17451745 const matrix2x2& unitaryMatrix,
17461746 bool simplify,
17471747 std::optional<fp> atol) {
1748- auto [theta, phi, lamda , phase] =
1748+ auto [theta, phi, lambda , phase] =
17491749 angles_from_unitary (unitaryMatrix, target_basis);
17501750
17511751 switch (target_basis) {
17521752 case EulerBasis::ZYZ:
1753- return calculateRotationGates (theta, phi, lamda , phase, qc::RZ, qc::RY,
1753+ return calculateRotationGates (theta, phi, lambda , phase, qc::RZ, qc::RY,
17541754 simplify, atol);
17551755 case EulerBasis::ZXZ:
1756- return calculateRotationGates (theta, phi, lamda , phase, qc::RZ, qc::RX,
1756+ return calculateRotationGates (theta, phi, lambda , phase, qc::RZ, qc::RX,
17571757 simplify, atol);
17581758 case EulerBasis::XZX:
1759- return calculateRotationGates (theta, phi, lamda , phase, qc::RX, qc::RZ,
1759+ return calculateRotationGates (theta, phi, lambda , phase, qc::RX, qc::RZ,
17601760 simplify, atol);
17611761 case EulerBasis::XYX:
1762- return calculateRotationGates (theta, phi, lamda , phase, qc::RX, qc::RY,
1762+ return calculateRotationGates (theta, phi, lambda , phase, qc::RX, qc::RY,
17631763 simplify, atol);
17641764 default :
17651765 // TODO: allow other bases
0 commit comments