Bloch vector computation

From XuShuwenn/RedAct · View interactive version

Bloch vector computation is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Compute Bloch sphere vector components (rx, ry, rz) from given angles with correct unit handling, rounding, and output formatting.

How to use this skill

Skill file

Bloch Vector Computation

Skill for converting Bloch angles (theta, phi) into Cartesian vector components (rx, ry, rz). It emphasizes unit handling (degrees vs radians), deterministic rounding, explicit sign formatting, and simple validation.

When to Use

Core Workflow

  1. Parse angles from the input:
  1. Confirm units and convert:
  1. Compute components:
  1. Round and format deterministically:
  1. Write output:

Verification

Common Pitfalls

Success Criteria

Optional Script Usage

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.