-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a Bloch Sphere Scene selector, see #54
- Loading branch information
1 parent
c807646
commit 2efc269
Showing
4 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2024, University of Colorado Boulder | ||
|
||
/** | ||
* Contains the two possible selectable scenes on the Bloch Screen | ||
* | ||
* @author Agustín Vallejo | ||
*/ | ||
|
||
import Enumeration from '../../../../phet-core/js/Enumeration.js'; | ||
import EnumerationValue from '../../../../phet-core/js/EnumerationValue.js'; | ||
import quantumMeasurement from '../../quantumMeasurement.js'; | ||
|
||
export class BlochSphereScene extends EnumerationValue { | ||
public static readonly MEASUREMENT = new BlochSphereScene( 'Measurement', 'measurementScene' ); | ||
public static readonly PRECESSION = new BlochSphereScene( 'Precession', 'precessionScene' ); | ||
|
||
public static readonly enumeration = new Enumeration( BlochSphereScene ); | ||
|
||
public constructor( public readonly description: string, | ||
public readonly tandemName: string ) { | ||
super(); | ||
} | ||
} | ||
|
||
quantumMeasurement.register( 'BlochSphereScene', BlochSphereScene ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters