qiskit_pasqal_provider.providers.HamiltonianGate

class HamiltonianGate(amplitude, detuning, phase, coords, grid_transform='triangular', composed_wf=None, transform=False)[source]

Hamiltonian gate, an analog gate.

Hamiltonian gate is an analog gate that provides the relevant functionalities to use analog quantum computing in a circuit-like environment.

Parameters:
  • amplitude (InterpolatePoints) – an InterpolatePoints instance to represent an amplitude waveform.

  • detuning (InterpolatePoints) – an InterpolatePoints instance to represent a detuning waveform.

  • phase (float | InterpolatePoints | ParameterExpression) – a float, InterpolatePoints or qiskit ParameterExpression value.

  • coords (TypeAliasType) – an array-like containing (x, y) coordinates of the qubits.

  • grid_transform (Literal['linear', 'triangular', 'square']) – a string of which grid transform to use. Default to “triangular”.

  • composed_wf (Any | None) – alternative approach to generate a sequence of waveforms instead of amplitude, detuning and phase. Default to None.

  • transform (bool) – whether the coordinates need to be transformed into atoms coordinates. Default to False.

__init__(amplitude, detuning, phase, coords, grid_transform='triangular', composed_wf=None, transform=False)[source]

Hamiltonian gate is an analog gate that provides the relevant functionalities to use analog quantum computing in a circuit-like environment.

Parameters:
  • amplitude (InterpolatePoints) – an InterpolatePoints instance to represent an amplitude waveform.

  • detuning (InterpolatePoints) – an InterpolatePoints instance to represent a detuning waveform.

  • phase (float | InterpolatePoints | ParameterExpression) – a float, InterpolatePoints or qiskit ParameterExpression value.

  • coords (TypeAliasType) – an array-like containing (x, y) coordinates of the qubits.

  • grid_transform (Literal['linear', 'triangular', 'square']) – a string of which grid transform to use. Default to “triangular”.

  • composed_wf (Any | None) – alternative approach to generate a sequence of waveforms instead of amplitude, detuning and phase. Default to None.

  • transform (bool) – whether the coordinates need to be transformed into atoms coordinates. Default to False.

Methods

__init__(amplitude, detuning, phase, coords)

Hamiltonian gate is an analog gate that provides the relevant functionalities to use analog quantum computing in a circuit-like environment.

add_decomposition(decomposition)

Add a decomposition of the instruction to the SessionEquivalenceLibrary.

broadcast_arguments(qargs, cargs)

Validation and handling of the arguments and its relationship.

control([num_ctrl_qubits, label, ...])

Return the controlled version of itself.

copy([name])

Copy of the instruction.

inverse([annotated])

Invert this instruction.

is_parameterized()

Return whether the Instruction contains compile-time parameters.

power(exponent[, annotated])

Raise this gate to the power of exponent.

repeat(n)

Creates an instruction with self repeated \(n\) times.

reverse_ops()

For a composite instruction, reverse the order of sub-instructions.

soft_compare(other)

Soft comparison between gates.

to_matrix()

Return a Numpy.array for the gate unitary matrix.

to_mutable()

Return a mutable copy of this gate.

validate_parameter(parameter)

Gate parameters should be int, float, or ParameterExpression

Attributes

amplitude

Amplitude waveform-like data.

analog_register

Analog register as a PasqalRegister instance.

base_class

Get the base class of this instruction.

coords

coordinates as a dictionary where the keys are the qubits ids and values are their (x, y) coordinates.

decompositions

Get the decompositions of the instruction from the SessionEquivalenceLibrary.

definition

Return definition in terms of other basic gates.

detuning

Detuning waveform-like data.

label

Return instruction label

mutable

Is this instance is a mutable unique instance or not.

name

Return the name.

num_clbits

Return the number of clbits.

num_qubits

Return the number of qubits.

params

The parameters of this Instruction.

phase

Phase of the pulse as float.