[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F83KW565S7N1FHJH3C54WH":3,"skill-same:01M7F83KW565S7N1FHJH3C54WH":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":48},"01M7F83KW565S7N1FHJH3C54WH","transformers-and-compilation",null,"Use Cirq transformers, target gatesets, and routing workflows to compile circuits to gate and topology constraints.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fcirq\u002Fsub-skills\u002Ftransformers-and-compilation\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: transformers-and-compilation\ndescription: \"Use Cirq transformers, target gatesets, and routing workflows to\n  compile circuits to gate and topology constraints.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: Apache 2.0\n---\n\n# Cirq transformers and compilation\n\nUse this sub-skill when a task needs Cirq circuit transformations rather than raw circuit construction, simulation, provider submission, or algorithm design.\n\n## Use this when\n\n- Applying or composing `@cirq.transformer` functions\u002Fclasses.\n- Configuring `cirq.TransformerContext`, transformer logging, ignored tags, or deep `CircuitOperation` handling.\n- Cleaning or rewriting circuits with built-in transformers such as `drop_empty_moments`, `merge_single_qubit_gates_to_phxz`, `eject_z`, `expand_composite`, or `optimize_for_target_gateset`.\n- Compiling to `cirq.CompilationTargetGateset` implementations such as `cirq.CZTargetGateset`, `cirq.SqrtIswapTargetGateset`, or offline `cirq_google.SycamoreTargetGateset`.\n- Routing circuits with `cirq.RouteCQC`, `cirq.LineInitialMapper`, hard-coded initial mappings, named topologies, or physical device graphs.\n\n## Route elsewhere\n\n- Circuit construction, qubits, gates, measurements, custom gates, or JSON\u002FQASM basics: `core-circuits-and-ops`.\n- Running local simulators, sweeps, noise, histograms, or performance studies: `simulation-study-and-noise`.\n- Provider credentials, cloud jobs, samplers, serializers, or device submission: `hardware-providers-and-serialization`.\n- Algorithm-level motivation and observable expectation workflows: `algorithms-and-observables`.\n\n## Reference map\n\n- Start with [API reference](references\u002Fapi-reference.md) for signatures, target gatesets, and routing objects.\n- Use [Transformer workflows](references\u002Ftransformer-workflows.md) for pass ordering, custom transformers, no-compile tags, and deep subcircuits.\n- Use [Routing and targets](references\u002Frouting-and-targets.md) for device graphs, `RouteCQC`, named topologies, placements, and provider-gateset cross-links.\n- Use [Troubleshooting](references\u002Ftroubleshooting.md) when transformed circuits still contain unsupported gates, tags are not honored, routing fails, or moment structure changes unexpectedly.\n\n## Bundled safe helper\n\nRun the deterministic helper when you need a quick offline sanity check of the installed Cirq transformer stack:\n\n```bash\npython scripts\u002Finspect_transformer_pipeline.py --help\npython scripts\u002Finspect_transformer_pipeline.py --target cz\npython scripts\u002Finspect_transformer_pipeline.py --target sycamore\n```\n\nThe helper builds a tiny local circuit, applies a short transformer pipeline, compiles to a target gateset, and performs a local unitary equivalence check. It never contacts provider services.\n\n## Operating guardrails\n\n- Treat compilation as a pipeline: choose target constraints first, order passes deliberately, and validate after each major boundary when possible.\n- Prefer `ignore_failures=False` while debugging target-gateset conversion so unsupported operations do not remain silently.\n- Use `TransformerContext(tags_to_ignore=...)` for protected\u002Fno-compile operations and `TransformerContext(deep=True)` only when nested `CircuitOperation` bodies must be transformed.\n- Route topology first, then compile routed gates to the target gateset required by the physical device or provider workflow.\n- For live hardware submission or credentialed provider validation, stop here and route to `hardware-providers-and-serialization` after offline compilation checks.\n","# Cirq transformers and compilation\n\nUse this sub-skill when a task needs Cirq circuit transformations rather than raw circuit construction, simulation, provider submission, or algorithm design.\n\n## Use this when\n\n- Applying or composing `@cirq.transformer` functions\u002Fclasses.\n- Configuring `cirq.TransformerContext`, transformer logging, ignored tags, or deep `CircuitOperation` handling.\n- Cleaning or rewriting circuits with built-in transformers such as `drop_empty_moments`, `merge_single_qubit_gates_to_phxz`, `eject_z`, `expand_composite`, or `optimize_for_target_gateset`.\n- Compiling to `cirq.CompilationTargetGateset` implementations such as `cirq.CZTargetGateset`, `cirq.SqrtIswapTargetGateset`, or offline `cirq_google.SycamoreTargetGateset`.\n- Routing circuits with `cirq.RouteCQC`, `cirq.LineInitialMapper`, hard-coded initial mappings, named topologies, or physical device graphs.\n\n## Route elsewhere\n\n- Circuit construction, qubits, gates, measurements, custom gates, or JSON\u002FQASM basics: `core-circuits-and-ops`.\n- Running local simulators, sweeps, noise, histograms, or performance studies: `simulation-study-and-noise`.\n- Provider credentials, cloud jobs, samplers, serializers, or device submission: `hardware-providers-and-serialization`.\n- Algorithm-level motivation and observable expectation workflows: `algorithms-and-observables`.\n\n## Reference map\n\n- Start with [API reference](references\u002Fapi-reference.md) for signatures, target gatesets, and routing objects.\n- Use [Transformer workflows](references\u002Ftransformer-workflows.md) for pass ordering, custom transformers, no-compile tags, and deep subcircuits.\n- Use [Routing and targets](references\u002Frouting-and-targets.md) for device graphs, `RouteCQC`, named topologies, placements, and provider-gateset cross-links.\n- Use [Troubleshooting](references\u002Ftroubleshooting.md) when transformed circuits still contain unsupported gates, tags are not honored, routing fails, or moment structure changes unexpectedly.\n\n## Bundled safe helper\n\nRun the deterministic helper when you need a quick offline sanity check of the installed Cirq transformer stack:\n\n```bash\npython scripts\u002Finspect_transformer_pipeline.py --help\npython scripts\u002Finspect_transformer_pipeline.py --target cz\npython scripts\u002Finspect_transformer_pipeline.py --target sycamore\n```\n\nThe helper builds a tiny local circuit, applies a short transformer pipeline, compiles to a target gateset, and performs a local unitary equivalence check. It never contacts provider services.\n\n## Operating guardrails\n\n- Treat compilation as a pipeline: choose target constraints first, order passes deliberately, and validate after each major boundary when possible.\n- Prefer `ignore_failures=False` while debugging target-gateset conversion so unsupported operations do not remain silently.\n- Use `TransformerContext(tags_to_ignore=...)` for protected\u002Fno-compile operations and `TransformerContext(deep=True)` only when nested `CircuitOperation` bodies must be transformed.\n- Route topology first, then compile routed gates to the target gateset required by the physical device or provider workflow.\n- For live hardware submission or credentialed provider validation, stop here and route to `hardware-providers-and-serialization` after offline compilation checks.\n",{"name":5,"license":24,"metadata":25,"description":7,"disable-model-invocation":27},"Apache 2.0",{"disco-role":26},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fcirq\u002Fsub-skills\u002Ftransformers-and-compilation",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":27},[38,41,44],{"tool":39,"command":40},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill transformers-and-compilation",{"tool":42,"command":43},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill transformers-and-compilation",{"tool":45,"command":46},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill transformers-and-compilation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fcirq\u002Fsub-skills\u002Ftransformers-and-compilation\u002FSKILL.md",[49,55,59,63],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fapi-reference.md","REFERENCE","参考文档",8195,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fcirq\u002Fsub-skills\u002Ftransformers-and-compilation\u002Freferences\u002Fapi-reference.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Frouting-and-targets.md",6867,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fcirq\u002Fsub-skills\u002Ftransformers-and-compilation\u002Freferences\u002Frouting-and-targets.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Ftransformer-workflows.md",7010,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fcirq\u002Fsub-skills\u002Ftransformers-and-compilation\u002Freferences\u002Ftransformer-workflows.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Ftroubleshooting.md",7465,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fcirq\u002Fsub-skills\u002Ftransformers-and-compilation\u002Freferences\u002Ftroubleshooting.md",[68,76,81,88,95,102],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":77,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":72,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]