Skip to content

Stmts

Initialize

Bases: Statement


              flowchart TD
              bloqade.gemini.dialects.logical.stmts.Initialize[Initialize]

              

              click bloqade.gemini.dialects.logical.stmts.Initialize href "" "bloqade.gemini.dialects.logical.stmts.Initialize"
            

Initialize a list of logical qubits to an arbitrary state.

Parameters:

Name Type Description Default
phi float

Angle for rotation around the Z axis

required
theta float

angle for rotation around the Y axis

required
phi float

angle for rotation around the Z axis

required
qubits IList[QubitType, Len]

The list of logical qubits to initialize

required

TerminalLogicalMeasurement

Bases: Statement


              flowchart TD
              bloqade.gemini.dialects.logical.stmts.TerminalLogicalMeasurement[TerminalLogicalMeasurement]

              

              click bloqade.gemini.dialects.logical.stmts.TerminalLogicalMeasurement href "" "bloqade.gemini.dialects.logical.stmts.TerminalLogicalMeasurement"
            

Perform measurements on a list of logical qubits.

Measurements are returned as a nested list where each member list contains the individual measurement results for the constituent physical qubits per logical qubit.

Parameters:

Name Type Description Default
qubits IList[QubitType, Len]

The list of logical qubits

required

Returns:

Type Description

IList[IList[MeasurementResultType, CodeN], Len]: A nested list containing the measurement results, where each inner list corresponds to the measurements of the physical qubits that make up each logical qubit.