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
Instructioncontains compile-time parameters.power(exponent[, annotated])Raise this gate to the power of
exponent.repeat(n)Creates an instruction with
selfrepeated \(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
amplitudeAmplitude waveform-like data.
analog_registerAnalog register as a PasqalRegister instance.
base_classGet the base class of this instruction.
coordscoordinates as a dictionary where the keys are the qubits ids and values are their (x, y) coordinates.
decompositionsGet the decompositions of the instruction from the SessionEquivalenceLibrary.
definitionReturn definition in terms of other basic gates.
detuningDetuning waveform-like data.
labelReturn instruction label
mutableIs this instance is a mutable unique instance or not.
nameReturn the name.
num_clbitsReturn the number of clbits.
num_qubitsReturn the number of qubits.
paramsThe parameters of this
Instruction.phasePhase of the pulse as float.