QXel.transpiler.stabilizer_transpiler module

class QXel.transpiler.stabilizer_transpiler.StabilizerTranspiler

Bases: BaseTranspiler

Build the pass pipeline used by the stabilizer simulator.

class Pass(*values)

Bases: Enum

Named passes understood by StabilizerTranspiler.

STRINGFIER = 1
__init__()

Initialize the transpiler with no configured passes.

set_qubit_count(qubit_count)

Set the logical qubit count used by downstream passes.

set_qubit_count_local(qubit_count_local)

Set the qubit count local.

set_rank(rank)

Set the rank.

set_world_size(world_size)

Set the world size.

set_max_fusion(max_fusion)

Set the max fusion.

add_pass(ps)

Append a configured optimization pass to the pipeline.

Parameters:

ps (Pass) – Symbolic pass identifier to instantiate.

Raises:

TypeError – If ps is not supported by this transpiler.

transpile(circuit)

Run the configured stabilizer passes over circuit.

Parameters:

circuit (QuantumCircuit) – Circuit to optimize.

Returns:

Final circuits emitted by the last pass.

Return type:

list[QuantumCircuit]