CLI Automation & CI/CD Integration

For enterprise environments, the softqcos CLI is designed to operate headlessly in CI/CD systems, cron servers, and orchestrators. This section provides detailed implementation plans and scripts for key environments.

1. GitHub Actions Integration

Use GitHub Actions to automatically run quantum regression testing or simulator-based smoke tests on pull requests. Store your QCOS_API_KEY securely in GitHub Secrets. Create a file named .github/workflows/quantum-ci.yml in your repository:

2. GitLab CI/CD Integration

To integrate QCOS tests into GitLab pipelines, add the following job configuration to your .gitlab-ci.yml file:

3. Azure Pipelines Integration

For teams using Azure DevOps, add this step block to your azure-pipelines.yml definition:

4. Operational Scripting & Parsing

JSON Parsing with jq

When running automated scripts, the CLI’s --json flag allows processing outputs dynamically. Here is a bash script that runs a circuit, reads the result, and exits with an error code if the fidelity of the main state falls below a threshold:

Scripting Parameter Sweeps

You can script multi-run parameters sweeps directly in shell: