<ddi:DDIInstance xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ddi:instance:3_3 http://ddialliance.org/Specification/DDI-Lifecycle/3.3/XMLSchema/instance.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ddi="ddi:instance:3_3" xmlns:r="ddi:reusable:3_3" xmlns:s="ddi:studyunit:3_3" xmlns:d="ddi:datacollection:3_3" xmlns:a="ddi:archive:3_3" xmlns:c="ddi:conceptualcomponent:3_3" xmlns:cm="ddi:comparative:3_3" xmlns:g="ddi:group:3_3" xmlns:l="ddi:logicalproduct:3_3" xmlns:p="ddi:physicaldataproduct:3_3" xmlns:pi="ddi:physicalinstance:3_3" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xml="http://www.w3.org/XML/1998/namespace" isMaintainable="true" scopeOfUniqueness="Agency">
  <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488:0</r:URN>
  <r:Agency>SND</r:Agency>
  <r:ID>doi-10-17045-sthlmuni-32099488</r:ID>
  <r:Version>0</r:Version>
  <g:ResourcePackage>
    <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488.ResourcePackage:2.0</r:URN>
    <r:OtherMaterialScheme>
      <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488.OtherMaterialScheme:2.0</r:URN>
    </r:OtherMaterialScheme>
    <a:OrganizationScheme>
      <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488.OrganizationScheme-0:2.0</r:URN>
      <a:Individual>
        <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488.Individual-0:2.0</r:URN>
        <r:UserAttributePair>
          <r:AttributeKey>affiliation</r:AttributeKey>
          <r:AttributeValue>Stockholm University</r:AttributeValue>
        </r:UserAttributePair>
        <a:IndividualIdentification>
          <a:IndividualName>
            <a:FirstGiven>Themistoklis</a:FirstGiven>
            <a:LastFamily>Mavrogordatos</a:LastFamily>
            <a:FullName>
              <r:String>Themistoklis Mavrogordatos</r:String>
            </a:FullName>
          </a:IndividualName>
        </a:IndividualIdentification>
      </a:Individual>
    </a:OrganizationScheme>
  </g:ResourcePackage>
  <s:StudyUnit>
    <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488.StudyUnit:2.0</r:URN>
    <r:UserID typeOfUserID="datasetIdentifier">doi-10-17045-sthlmuni-32099488</r:UserID>
    <r:Citation>
      <r:Title>
        <r:String xml:lang="en">Data and codes for "Operating a contextual Stern-Gerlach apparatus"</r:String>
      </r:Title>
      <r:Creator>
        <r:CreatorReference>
          <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488.Individual-0:2.0</r:URN>
          <r:TypeOfObject>Individual</r:TypeOfObject>
        </r:CreatorReference>
      </r:Creator>
      <r:Publisher>
        <r:PublisherName>
          <r:String xml:lang="sv">Stockholms universitet</r:String>
          <r:String xml:lang="en">Stockholm University</r:String>
        </r:PublisherName>
      </r:Publisher>
      <r:Publisher>
        <r:PublisherName>
          <r:String xml:lang="sv">Stockholms universitet</r:String>
          <r:String xml:lang="en">Stockholm University</r:String>
        </r:PublisherName>
      </r:Publisher>
      <r:PublicationDate>
        <r:SimpleDate>2026-04-28</r:SimpleDate>
      </r:PublicationDate>
      <r:InternationalIdentifier>
        <r:IdentifierContent>10.17045/STHLMUNI.32099488</r:IdentifierContent>
        <r:ManagingAgency controlledVocabularyAgencyName="DOI">DOI</r:ManagingAgency>
      </r:InternationalIdentifier>
    </r:Citation>
    <r:Abstract>
      <r:Content xml:lang="en">We propose a contextual cavity/circuit QED analogue and extension of the Stern-Gerlach experiment, where the pseudo-spin of a two-state `atomic' transition plays the role of the ``spin'', while the resonant field driving the transition stands for the ``magnetic field''. A phase-sensitive continuous detection of the cavity field coupled to the induced `atomic' dipole affects the stability of the two distinct outcomes. The dressed states comprising the latter give their place to a self-consistent spontaneous dressed-state polarization as the driving strength is lowered. The associated evolution proves anew highly contextual, underpinned by a persistent production of coherent-state superpositions for a particular setting of the monitoring device. Finally, when bistability is absent, we employ the photoelectron `atomic' emission statistics as a diagnostic tool of the cavity field fluctuations.  

The present dataset contains codes and data as MATLAB .m and .mat files, respectively. Data generated and used for each figure are grouped according to the figure order in the manuscript. For example, the folder FIG2/D300_pi_2 contains data collected for a drive amplitude ratio over dissipation rate equal to 300, and the local oscillator phase set to pi/2 in homodyne detection. As another example, the file titled Wss_30.mat contains the matrix data corresponding to the steady-state Wigner function of the cavity for a drive amplitude ratio over dissipation rate equal to 30, plotted in Fig. 3. For the same figure, the file titled, e.g., W23340.mat contains the matrix data corresponding to the conditioned Wigner function at the time t=(23340-1)*dt. The time step dt is set in the main code generating the individual trajectories. 

The main MATLAB code used for generating quantum trajectories under homodyne (heterodyne) detection is Stern_Gerlach.m (Stern_Gerlach_het.m). A version for operation in the bad cavity limit is also included.</r:Content>
    </r:Abstract>
    <r:Coverage>
      <r:TopicalCoverage>
        <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488.TopicalCoverage:2.0</r:URN>
        <r:Subject xml:lang="en" controlledVocabularyID="10301" controlledVocabularyName="Standard för svensk indelning av forskningsämnen 2025">Subatomic Physics</r:Subject>
        <r:Subject xml:lang="sv" controlledVocabularyID="10301" controlledVocabularyName="Standard för svensk indelning av forskningsämnen 2025">Subatomär fysik</r:Subject>
      </r:TopicalCoverage>
      <r:SpatialCoverage />
    </r:Coverage>
    <a:Archive>
      <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488.Archive:2.0</r:URN>
      <a:ArchiveSpecific>
        <a:Item>
          <a:Access>
            <r:URN>urn:ddi:se.researchdata:doi-10-17045-sthlmuni-32099488.Archive-ArchiveSpecificType-AccessType:2.0</r:URN>
            <a:TypeOfAccess controlledVocabularyName="info:eu-repo-Access-Terms vocabulary"></a:TypeOfAccess>
          </a:Access>
          <a:DataFileQuantity>0</a:DataFileQuantity>
        </a:Item>
      </a:ArchiveSpecific>
    </a:Archive>
  </s:StudyUnit>
</ddi:DDIInstance>