La interfaz está localizada; las descripciones y documentos de las Skills se traducen automáticamente con IA a su idioma. El código, los comandos, rutas y términos técnicos se mantienen en el original, y prevalece el documento del autor.
Explorar Skills
Datos e investigación · SKILL.md

io-data-logging

io-data-logging

Use PennyLane circuit import/export, dataset loading, debugging snapshots, logging, pytrees, and concurrency support workflows.

Independent GitHub snapshot · Automated classification · Original documentation governs

Documentación de la Skill

GitHub

name: io-data-logging description: "Use PennyLane circuit import/export, dataset loading, debugging snapshots, logging, pytrees, and concurrency support workflows." metadata: disco-role: operating disable-model-invocation: true license: Apache 2.0

I/O, data, debugging, and logging

Use this sub-skill when a task involves importing/exporting circuits, loading PennyLane datasets, debugging circuit execution, configuring logging, or using support utilities such as pytrees and concurrency.

Read first

Route within this sub-skill

  • Circuit export: use qp.to_openqasm(circuit, wires=None, rotations=True, measure_all=True, precision=None) for OpenQASM 2 output where supported.
  • Circuit import/conversion: use qp.from_qasm, qp.from_qasm3, qp.from_qiskit, qp.from_qiskit_noise, qp.from_qiskit_op, qp.from_pyquil, qp.from_quil, qp.from_quil_file, qp.FromBloq, and qp.to_bloq only after checking optional dependencies.
  • Datasets: use qp.data.load(...) and dataset namespace utilities; treat remote downloads/cache mutation as opt-in behavior.
  • Debugging: use qp.snapshots, qp.breakpoint, qp.debug_expval, qp.debug_state, qp.debug_probs, and qp.debug_tape for circuit introspection.
  • Logging: use pennylane.logging and its TOML configuration surfaces when instrumenting PennyLane behavior.
  • Support utilities: use pennylane.pytrees and pennylane.concurrency for advanced integration tasks after confirming exact APIs.

Boundaries

Minimal OpenQASM export

import pennylane as qp

dev = qp.device("default.qubit", wires=2)

@qp.qnode(dev)
def circuit(theta):
    qp.RX(theta, 0)
    qp.CNOT([0, 1])
    return qp.expval(qp.Z(1))

print(qp.to_openqasm(circuit)(0.2))

If a converter asks for Qiskit, PyQuil, OpenQASM3, or Qualtran, install and verify only that converter dependency.

Verification cues

State whether the workflow is local-only or requires network/cache/external converter packages. For debug/logging answers, include a tiny QNode and expected printed/debug signal rather than only prose.

Skills guardadas