QXel.provider.braket.qxel_density_matrix module

Braket density-matrix device adapter built on top of QXel.

class QXel.provider.braket.qxel_density_matrix.QXelDensityMatrix

Bases: object

Braket-compatible wrapper around DensityMatrixSimulator.

DEVICE_ID = 'QXel-dm'
__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.

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

Execute a Braket IR program with the density-matrix simulator.

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

  • shots (int, optional) – Number of samples to draw.

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

Returns:

Braket-compatible simulation result.

Return type:

GateModelTaskResult