# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

"""Cirq interoperability for the Q# ecosystem.

This module re-exports all public symbols from ``qsharp.interop.cirq``,
making them available under the ``qdk.cirq`` namespace. The primary export
is ``NeutralAtomSampler`` — a standard ``cirq.Sampler`` that runs Cirq
circuits on the local NeutralAtomDevice simulator.

Requires the ``cirq`` extra: ``pip install qdk[cirq]``.

Usage::

    import cirq
    from qdk.cirq import NeutralAtomSampler

    q0, q1 = cirq.LineQubit.range(2)
    circuit = cirq.Circuit([
        cirq.H(q0),
        cirq.CNOT(q0, q1),
        cirq.measure(q0, q1, key="m"),
    ])

    sampler = NeutralAtomSampler(seed=42)
    result = sampler.run(circuit, repetitions=1000)
    print(result.histogram(key="m"))
"""

try:
    from qsharp.interop.cirq import *  # pyright: ignore[reportWildcardImportFromLibrary]
except Exception as ex:
    raise ImportError(
        "qdk.cirq requires the cirq extra. Install with 'pip install qdk[cirq]'."
    ) from ex
