qxmt.feature_maps.pennylane.base module

qxmt.feature_maps.pennylane.base module#

class qxmt.feature_maps.pennylane.base.PennyLaneBaseFeatureMap(n_qubits)

Bases: BaseFeatureMap

PennyLane base feature map class.

Parameters:
  • BaseFeatureMap (_type_) – base feature map class

  • n_qubits (int)

draw(x=None, x_dim=None, format='default', logger=<Logger qxmt.feature_maps.pennylane.base (INFO)>, **kwargs)

Draw the circuit using the platform’s draw function.

Parameters:
  • x (Optional[np.ndarray], optional) – input example data for drawing the circuit. Defaults to None.

  • x_dim (Optional[int], optional) – dimension of input data. Defaults to None.

  • format (str, optional) – format of the drawing the circuit. Select “defalt” or “mpl”. Defaults to “default”.

  • logger (Logger, optional) – logger object. Defaults to LOGGER.

  • kwargs (Any)

Raises:

NotImplementedError – not supported platform

Return type:

None