{"abstract":"X*Y is reported as -iZ, the value of Y*X.","category":"Quantum circuit simulation","checks":7,"contract":"Input [[k1, s1], [k2, s2]] representing i**k1 * s1 and i**k2 * s2 (Pauli strings over IXYZ, equal length). Return [k mod 4, s] with i**k * s = (i**k1 s1)(i**k2 s2), using XY=iZ, YZ=iX, ZX=iY and the reversed products with -i. Error \"length-mismatch\".","contract_signature":"x","evaluation_group":"w2-quantum_circuit_simulation-pauli-product-phase","failed_approach":"The attempted repair keeps the reversed zip and adds a blanket -1 phase, which only fixes an odd number of anticommuting positions.","family":"w2-quantum_circuit_simulation-pauli-product-phase-operand-order","id":"FA-90976","implementations":{"attempt":{"sha256":"bdeb9f2f09e2b8ce7d9f04250dfa8bc8f2be8757613902a3602b37e63e0feaba","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    (k1, s1), (k2, s2) = x\n    if len(s1) != len(s2):\n        return 'length-mismatch'\n    table = {('X', 'Y'): (1, 'Z'), ('Y', 'Z'): (1, 'X'), ('Z', 'X'): (1, 'Y'),\n             ('Y', 'X'): (3, 'Z'), ('Z', 'Y'): (3, 'X'), ('X', 'Z'): (3, 'Y')}\n    k = k1 + k2 + 2\n    out = []\n    for a, b in zip(s2, s1):\n        if a == 'I':\n            out.append(b)\n        elif b == 'I':\n            out.append(a)\n        elif a == b:\n            out.append('I')\n        else:\n            dk, c = table[(a, b)]\n            k += dk\n            out.append(c)\n    return [k % 4, ''.join(out)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['regression: X times Y', [[0, 'X'], [0, 'Y']], [1, 'Z']], ['regression: Y times X', [[0, 'Y'], [0, 'X']], [3, 'Z']], ['repair check: square of Y', [[0, 'Y'], [0, 'Y']], [0, 'I']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: X times Z', [[0, 'X'], [0, 'Z']], [3, 'Y']], ['regression: Z times X', [[0, 'Z'], [0, 'X']], [1, 'Y']], ['regression: negative phase input', [[-1, 'Z'], [0, 'X']], [0, 'Y']]], [['regression: Z times X', [[0, 'Z'], [0, 'X']], [1, 'Y']], ['regression: negative phase input', [[-1, 'Z'], [0, 'X']], [0, 'Y']], ['repair check: anticommuting pair twice', [[0, 'XY'], [0, 'YX']], [0, 'ZZ']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: X times Z', [[0, 'X'], [0, 'Z']], [3, 'Y']], ['regression: random product 0', [[0, 'YY'], [2, 'ZY']], [3, 'XI']], ['regression: random product 1', [[-2, 'ZZI'], [2, 'ZXI']], [1, 'IYI']]], [['regression: random product 1', [[-2, 'ZZI'], [2, 'ZXI']], [1, 'IYI']], ['regression: random product 2', [[0, 'Y'], [1, 'X']], [0, 'Z']], ['repair check: random product 4', [[0, 'YXY'], [1, 'IZZ']], [1, 'YYX']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: Z times X', [[0, 'Z'], [0, 'X']], [1, 'Y']], ['regression: negative phase input', [[-1, 'Z'], [0, 'X']], [0, 'Y']], ['regression: random product 0', [[0, 'YY'], [2, 'ZY']], [3, 'XI']]], [['regression: random product 5', [[0, 'YIXX'], [2, 'ZIYY']], [1, 'XIZZ']], ['regression: random product 7', [[3, 'Z'], [2, 'Y']], [0, 'X']], ['repair check: random product 9', [[0, 'I'], [3, 'I']], [3, 'I']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: negative phase input', [[-1, 'Z'], [0, 'X']], [0, 'Y']], ['regression: random product 0', [[0, 'YY'], [2, 'ZY']], [3, 'XI']], ['regression: random product 1', [[-2, 'ZZI'], [2, 'ZXI']], [1, 'IYI']]], [['regression: random product 10', [[1, 'XIZX'], [0, 'IYIZ']], [0, 'XYZY']], ['regression: random product 11', [[-2, 'ZXI'], [3, 'IZX']], [0, 'ZYX']], ['repair check: random product 17', [[3, 'X'], [0, 'X']], [3, 'I']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: random product 0', [[0, 'YY'], [2, 'ZY']], [3, 'XI']], ['regression: random product 1', [[-2, 'ZZI'], [2, 'ZXI']], [1, 'IYI']], ['regression: random product 2', [[0, 'Y'], [1, 'X']], [0, 'Z']]]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"},"broken":{"sha256":"65ce9ffb4bd9933c57c40c67310ccdaa02b2272553159023e09a4123ca1d1965","source":"\"\"\"Failure Map reference implementation. Python standard library only.\"\"\"\nimport json\n\nN = 1\nobservations = []\ndef solve(x):\n    (k1, s1), (k2, s2) = x\n    if len(s1) != len(s2):\n        return 'length-mismatch'\n    table = {('X', 'Y'): (1, 'Z'), ('Y', 'Z'): (1, 'X'), ('Z', 'X'): (1, 'Y'),\n             ('Y', 'X'): (3, 'Z'), ('Z', 'Y'): (3, 'X'), ('X', 'Z'): (3, 'Y')}\n    k = k1 + k2\n    out = []\n    for a, b in zip(s2, s1):\n        if a == 'I':\n            out.append(b)\n        elif b == 'I':\n            out.append(a)\n        elif a == b:\n            out.append('I')\n        else:\n            dk, c = table[(a, b)]\n            k += dk\n            out.append(c)\n    return [k % 4, ''.join(out)]\ndef check(label, actual, expected):\n    observations.append({\"check\": label, \"actual\": actual, \"expected\": expected, \"passed\": actual == expected})\nfixtures = [[['regression: X times Y', [[0, 'X'], [0, 'Y']], [1, 'Z']], ['regression: Y times X', [[0, 'Y'], [0, 'X']], [3, 'Z']], ['repair check: square of Y', [[0, 'Y'], [0, 'Y']], [0, 'I']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: X times Z', [[0, 'X'], [0, 'Z']], [3, 'Y']], ['regression: Z times X', [[0, 'Z'], [0, 'X']], [1, 'Y']], ['regression: negative phase input', [[-1, 'Z'], [0, 'X']], [0, 'Y']]], [['regression: Z times X', [[0, 'Z'], [0, 'X']], [1, 'Y']], ['regression: negative phase input', [[-1, 'Z'], [0, 'X']], [0, 'Y']], ['repair check: anticommuting pair twice', [[0, 'XY'], [0, 'YX']], [0, 'ZZ']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: X times Z', [[0, 'X'], [0, 'Z']], [3, 'Y']], ['regression: random product 0', [[0, 'YY'], [2, 'ZY']], [3, 'XI']], ['regression: random product 1', [[-2, 'ZZI'], [2, 'ZXI']], [1, 'IYI']]], [['regression: random product 1', [[-2, 'ZZI'], [2, 'ZXI']], [1, 'IYI']], ['regression: random product 2', [[0, 'Y'], [1, 'X']], [0, 'Z']], ['repair check: random product 4', [[0, 'YXY'], [1, 'IZZ']], [1, 'YYX']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: Z times X', [[0, 'Z'], [0, 'X']], [1, 'Y']], ['regression: negative phase input', [[-1, 'Z'], [0, 'X']], [0, 'Y']], ['regression: random product 0', [[0, 'YY'], [2, 'ZY']], [3, 'XI']]], [['regression: random product 5', [[0, 'YIXX'], [2, 'ZIYY']], [1, 'XIZZ']], ['regression: random product 7', [[3, 'Z'], [2, 'Y']], [0, 'X']], ['repair check: random product 9', [[0, 'I'], [3, 'I']], [3, 'I']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: negative phase input', [[-1, 'Z'], [0, 'X']], [0, 'Y']], ['regression: random product 0', [[0, 'YY'], [2, 'ZY']], [3, 'XI']], ['regression: random product 1', [[-2, 'ZZI'], [2, 'ZXI']], [1, 'IYI']]], [['regression: random product 10', [[1, 'XIZX'], [0, 'IYIZ']], [0, 'XYZY']], ['regression: random product 11', [[-2, 'ZXI'], [3, 'IZX']], [0, 'ZYX']], ['repair check: random product 17', [[3, 'X'], [0, 'X']], [3, 'I']], ['control: length mismatch', [[0, 'X'], [0, 'XY']], 'length-mismatch'], ['regression: random product 0', [[0, 'YY'], [2, 'ZY']], [3, 'XI']], ['regression: random product 1', [[-2, 'ZZI'], [2, 'ZXI']], [1, 'IYI']], ['regression: random product 2', [[0, 'Y'], [1, 'X']], [0, 'Z']]]]\nfor label, args, expected in fixtures[N-1]:\n    check(label, solve(args), expected)\nprint(json.dumps({\"observations\": observations, \"passed\": all(x[\"passed\"] for x in observations)}, ensure_ascii=False))\nraise SystemExit(0 if all(x[\"passed\"] for x in observations) else 1)\n"}},"limitations":"A deterministic bounded teaching model with a stipulated toy contract; amplitudes are rounded to fixed decimals for strict JSON output. It is not a production quantum SDK and claims no standards conformance. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.","method":"Deterministic executable model with adversarial boundary fixtures.","provenance":{"created_by":"Failure Map","dependencies":"Python standard library","family":"w2-quantum_circuit_simulation-pauli-product-phase-operand-order","generated_at":"2026-09-29T14:51:31.631516+00:00","license":"CC0-1.0","python":"3.12.14","seed":1,"split":"open-access"},"relevance":"Pauli-frame and stabilizer bookkeeping multiply Pauli strings constantly; one phase slip flips measurement signs.","root_cause":"The per-qubit loop zips (s2, s1), computing the product in the wrong order for non-commuting positions.","sha256":"dd3ce4fe1f98524de09d623e2097666fa66ee865de6167b9b2493fad89364b3c","title":"Pauli product multiplies the operands in reverse order · case 01","variant":1,"variant_policy":"Five numbered records share a model and may reuse boundary fixtures.","verified":true,"visibility":"public","verification":{"attempt":{"elapsed_ms":38.573,"exit_code":1,"observations":[{"actual":[1,"Z"],"check":"regression: X times Y","expected":[1,"Z"],"passed":true},{"actual":[3,"Z"],"check":"regression: Y times X","expected":[3,"Z"],"passed":true},{"actual":[2,"I"],"check":"repair check: square of Y","expected":[0,"I"],"passed":false},{"actual":"length-mismatch","check":"control: length mismatch","expected":"length-mismatch","passed":true},{"actual":[3,"Y"],"check":"regression: X times Z","expected":[3,"Y"],"passed":true},{"actual":[1,"Y"],"check":"regression: Z times X","expected":[1,"Y"],"passed":true},{"actual":[0,"Y"],"check":"regression: negative phase input","expected":[0,"Y"],"passed":true}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: X times Y\", \"actual\": [1, \"Z\"], \"expected\": [1, \"Z\"], \"passed\": true}, {\"check\": \"regression: Y times X\", \"actual\": [3, \"Z\"], \"expected\": [3, \"Z\"], \"passed\": true}, {\"check\": \"repair check: square of Y\", \"actual\": [2, \"I\"], \"expected\": [0, \"I\"], \"passed\": false}, {\"check\": \"control: length mismatch\", \"actual\": \"length-mismatch\", \"expected\": \"length-mismatch\", \"passed\": true}, {\"check\": \"regression: X times Z\", \"actual\": [3, \"Y\"], \"expected\": [3, \"Y\"], \"passed\": true}, {\"check\": \"regression: Z times X\", \"actual\": [1, \"Y\"], \"expected\": [1, \"Y\"], \"passed\": true}, {\"check\": \"regression: negative phase input\", \"actual\": [0, \"Y\"], \"expected\": [0, \"Y\"], \"passed\": true}], \"passed\": false}\n"},"broken":{"elapsed_ms":39.257,"exit_code":1,"observations":[{"actual":[3,"Z"],"check":"regression: X times Y","expected":[1,"Z"],"passed":false},{"actual":[1,"Z"],"check":"regression: Y times X","expected":[3,"Z"],"passed":false},{"actual":[0,"I"],"check":"repair check: square of Y","expected":[0,"I"],"passed":true},{"actual":"length-mismatch","check":"control: length mismatch","expected":"length-mismatch","passed":true},{"actual":[1,"Y"],"check":"regression: X times Z","expected":[3,"Y"],"passed":false},{"actual":[3,"Y"],"check":"regression: Z times X","expected":[1,"Y"],"passed":false},{"actual":[2,"Y"],"check":"regression: negative phase input","expected":[0,"Y"],"passed":false}],"passed":false,"stderr":"","stdout":"{\"observations\": [{\"check\": \"regression: X times Y\", \"actual\": [3, \"Z\"], \"expected\": [1, \"Z\"], \"passed\": false}, {\"check\": \"regression: Y times X\", \"actual\": [1, \"Z\"], \"expected\": [3, \"Z\"], \"passed\": false}, {\"check\": \"repair check: square of Y\", \"actual\": [0, \"I\"], \"expected\": [0, \"I\"], \"passed\": true}, {\"check\": \"control: length mismatch\", \"actual\": \"length-mismatch\", \"expected\": \"length-mismatch\", \"passed\": true}, {\"check\": \"regression: X times Z\", \"actual\": [1, \"Y\"], \"expected\": [3, \"Y\"], \"passed\": false}, {\"check\": \"regression: Z times X\", \"actual\": [3, \"Y\"], \"expected\": [1, \"Y\"], \"passed\": false}, {\"check\": \"regression: negative phase input\", \"actual\": [2, \"Y\"], \"expected\": [0, \"Y\"], \"passed\": false}], \"passed\": false}\n"}},"member_only":{"stages":["fixed"],"fields":["implementations.fixed","verification.fixed","harness","repair"],"note":"The verified repair, its recorded checks, the repair description, and the scoring harness are available to members."}}