ToU3Pass

class ToU3Pass(convert_all_single_qubit_gates=False)[source]

Bases: BasePass

Converts single-qubit general unitary gates to U3 Gates.

__init__(convert_all_single_qubit_gates=False)[source]

Construct a ToU3Pass.

Parameters:
  • convert_all_single_qubit_gates (bool) – Indicates wheter to convert

  • gates (only the general) –

  • gate. (or every single qubit) –

Attributes

name

The name of the pass.

Methods

execute(*args, **kwargs)

Map a function over iterable arguments in parallel.

get_connectivity(_, data)

Retrieve the current connectivity of the circuit.

get_model(_, data)

Retrieve the machine model from the data dictionary.

get_placement(_, data)

Retrieve the logical to physical qubit map from the data dictionary.

get_target(_, data)

Retrieve the target from the data dictionary.

in_parallel(data)

Return true if pass is being executed in a parallel.

run(circuit, data)

Perform the pass's operation, see BasePass for more.