ApplyLayout

class ApplyLayout(*args, **kwargs)[source]

Transform a circuit with virtual qubits into a circuit with physical qubits.

Transforms a DAGCircuit with virtual qubits into a DAGCircuit with physical qubits by applying the Layout given in property_set. Requires either of passes to set/select Layout, e.g. SetLayout, TrivialLayout. Assumes the Layout has full physical qubits.

Attributes

ApplyLayout.is_analysis_pass

Check if the pass is an analysis pass.

ApplyLayout.is_transformation_pass

Check if the pass is a transformation pass.

Methods

ApplyLayout.name()

Return the name of the pass.

ApplyLayout.run(dag)

Run the ApplyLayout pass on dag.