Skip to content

Alice and Bob

AliceBobBackendPreferences

Bases: BackendPreferences

Backend preferences specific to Alice&Bob for quantum computing tasks.

This class includes configuration options for setting up a backend using Alice&Bob's quantum hardware. It extends the base BackendPreferences class and provides additional parameters required for working with Alice&Bob's cat qubits, including settings for photon dissipation rates, repetition code distance, and the average number of photons.

Attributes:

Name Type Description
backend_service_provider ALICE_BOB

The service provider for the backend, which is Alice&Bob.

distance Optional[int]

The number of times information is duplicated in the repetition code. - Tooltip: Phase-flip probability decreases exponentially with this parameter, bit-flip probability increases linearly. - Supported Values: 3 to 300, though practical values are usually lower than 30. - Default: None.

kappa_1 Optional[float]

The rate at which the cat qubit loses one photon, creating a bit-flip. - Tooltip: Lower values mean lower error rates. - Supported Values: 10 to 10^5. Current hardware is at ~10^3. - Default: None.

kappa_2 Optional[float]

The rate at which the cat qubit is stabilized using two-photon dissipation. - Tooltip: Higher values mean lower error rates. - Supported Values: 100 to 10^9. Current hardware is at ~10^5. - Default: None.

average_nb_photons Optional[float]

The average number of photons. - Tooltip: Bit-flip probability decreases exponentially with this parameter, phase-flip probability increases linearly. - Supported Values: 4 to 10^5, though practical values are usually lower than 30. - Default: None.

api_key str

The API key required to access Alice&Bob's quantum hardware. - Required: Yes.

For more details, refer to the Alice&Bob Backend Documentation.

Attributes:

Name Type Description
api_key Optional[PydanticAliceBobApiKeyType]
average_nb_photons Optional[float]
backend_service_provider ALICE_BOB
distance Optional[int]
kappa_1 Optional[float]
kappa_2 Optional[float]
parameters dict[str, Any]

api_key

api_key: Optional[PydanticAliceBobApiKeyType] = Field(
    default=None, description="AliceBob API key"
)

average_nb_photons

average_nb_photons: Optional[float] = Field(
    default=None, description="Average number of photons"
)

backend_service_provider

backend_service_provider: ALICE_BOB = Field(
    default=ALICE_AND_BOB
)

distance

distance: Optional[int] = Field(
    default=None, description="Repetition code distance"
)

kappa_1

kappa_1: Optional[float] = Field(
    default=None,
    description="One-photon dissipation rate (Hz)",
)

kappa_2

kappa_2: Optional[float] = Field(
    default=None,
    description="Two-photon dissipation rate (Hz)",
)

parameters

parameters: dict[str, Any]

AliceBobBackendNames

Bases: StrEnum

Alice & Bob backend names which Classiq Supports running on.

Attributes:

Name Type Description
LOGICAL_EARLY
LOGICAL_TARGET
PERFECT_QUBITS
TRANSMONS

LOGICAL_EARLY

LOGICAL_EARLY = 'LOGICAL_EARLY'

LOGICAL_TARGET

LOGICAL_TARGET = 'LOGICAL_TARGET'

PERFECT_QUBITS

PERFECT_QUBITS = 'PERFECT_QUBITS'

TRANSMONS

TRANSMONS = 'TRANSMONS'