-
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.
start adding support for timed measurements, see #54
- Loading branch information
Showing
5 changed files
with
95 additions
and
34 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,22 @@ | ||
// Copyright 2024, University of Colorado Boulder | ||
|
||
/** | ||
* SpinMeasurementStates is a union type the represents the possible states for the measurement of a quantum spin system. | ||
* | ||
* @author John Blanco (PhET Interactive Simulations) | ||
*/ | ||
|
||
export const SpinMeasurementStateValues = [ | ||
|
||
// The system is prepared for a measurement. | ||
'prepared', | ||
|
||
// The system is prepared for a measurement and a timer is running, and when the timer expires, the measurement will | ||
// be made. | ||
'timingObservation', | ||
|
||
// The spin of the system has been observed. | ||
'observed' | ||
|
||
] as const; | ||
export type SpinMeasurementState = ( typeof SpinMeasurementStateValues )[number]; |
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
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