QXel.provider.braket.qxel_state_vector module

Braket state-vector device adapter built on top of QXel.

class QXel.provider.braket.qxel_state_vector.QXelStateVector

Bases: object

Braket-compatible wrapper around StateVectorSimulator.

DEVICE_ID = 'QXel-sv'
__init__()

Initialize static device metadata and the backing simulator.

property properties

Return the Braket device capability document for this simulator.

initialize_simulation(*, qubit_count, shots, quantum_circuit)

Braket hook for pre-allocation.

The current backend allocates lazily inside run(), so this hook intentionally returns None.

static parse_program(program)

Parse an OpenQASM payload into the internal circuit representation.

Parameters:

program (OpenQASMProgram) – Braket OpenQASM program to parse.

Returns:

Parsed program context containing the circuit and classical state.

Return type:

AbstractProgramContext

run(ir, *, shots=0, **kwargs)

Execute a Braket IR program with the state-vector simulator.

Parameters:
  • ir – Braket IR payload accepted by the OpenQASM interpreter.

  • shots (int, optional) – Number of samples to draw. 0 requests analytic result types only.

  • **kwargs – Additional simulator options forwarded to StateVectorSimulator.run().

Returns:

Braket-compatible simulation result.

Return type:

GateModelTaskResult