Skip to main content

Table 2 QHAL core commands. Table outlining the QHAL core commands, their parameters, descriptions, and to which QHAL level they are relevant to

From: Optimising the quantum/classical interface for efficiency and portability with a multi-level hardware abstraction layer for quantum computers

Command

Parameters

Description

QHAL level

NOP

None

Performs no operation

All

State prepare

qubit address, state value

Prepare specific qubit to a known state

All

State prepare all

state value

Prepare all qubits to a |0> state

All

Qubit measure

qubit address

Return the measured state of a qubit

All

Rx, Ry, Rz

qubit address, angle

Perform qubit rotation around the X, Y or Z axis of the Bloch sphere on a qubit

All

X,Y,Z,H,S,T

qubit address

Perform the corresponding gate operation on a qubit

All

CNOT

qubits addresses

Perform a Controlled-NOT operation

3

Start of session

Type of session

Define the destination of the received commands (emulator, hardware, simulator)

3,2

End of session

None

Close a session

3,2

Set Page Qubit 0

Offset for the qubit index (0)

Modify the offset used in the qubit index computation

All

Set Page Qubit 1

Offset for the qubit index (1)

Modify the offset used in the qubit index computation

All