Skip to content

Qubit pair

QubitPair

Bases: QuantumComponent

Source code in quam/components/quantum_components/qubit_pair.py
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@quam_dataclass
class QubitPair(QuantumComponent):
    id: str = "#./name"
    qubit_control: Qubit
    qubit_target: Qubit
    macros: Dict[str, MacroType] = field(  # type: ignore[assignment]
        default_factory=dict
    )

    @property
    def name(self) -> str:
        if not str_ref.is_reference(self.get_raw_value("id")):
            return self.id
        else:
            return f"{self.qubit_control.name}@{self.qubit_target.name}"

    def align(self):
        """Aligns the execution of all channels of both qubits"""
        self.qubit_control.align(self.qubit_target)

align()

Aligns the execution of all channels of both qubits

Source code in quam/components/quantum_components/qubit_pair.py
32
33
34
def align(self):
    """Aligns the execution of all channels of both qubits"""
    self.qubit_control.align(self.qubit_target)