quri_parts.qsub.trans.qp_trans module

convert_to_qp(ops)
Parameters:

ops (qsub.trans.transpiler.Operations)

Return type:

ImmutableQuantumCircuit

gateset_from_primitives(primitives)

Circuit gate names for the qsub primitive ops that have a QURI Parts counterpart, suitable as a GateSetConversionTranspiler target.

Ops with no QURI Parts gate counterpart are skipped.

Parameters:

primitives (Iterable[AbstractOp])

Return type:

list[circuit.gate_names.GateNameType]

convert_from_qp(circuit)
Parameters:

circuit (ImmutableQuantumCircuit)

Return type:

qsub.trans.transpiler.Operations

class SeparateQURIPartsTranspiler(qp_trans)

Bases: SeparateTranspiler

Parameters:

qp_trans (Iterable[qt.CircuitTranspiler])

property target_ops: Collection[qsub.op.BaseIdent]
transpile_chunk(ops)
Parameters:

ops (qsub.trans.transpiler.Operations)

Return type:

qsub.trans.transpiler.Operations