Schrödinger's Boolean

🎱 Decision Making 🌭🌭🌭 Unhinged 4,108 calls

Schrödinger's Boolean exists in a superposition of true and false until the moment of observation. Ask any question and receive both possible answers simultaneously. Enable observation to collapse the wavefunction and get a definitive (but arbitrary) result. The cat parameter adds a feline companion whose fate is entangled with the boolean state. The reopen parameter returns an error because you can't un-observe quantum state. We checked.

Try It — No Seriously

Schrödinger's Boolean.exe
_ ×
A question to place in quantum superposition. Both answers exist until observed.
Collapse the wavefunction. Warning: this is irreversible and philosophically significant.
Include Schrödinger's cat in the experiment. No cats are harmed. Probably.
Provide a philosophical interpretation of the quantum state.
Attempt to un-observe the boolean. Always returns an error. Physics is non-negotiable.

Parameters

Parameter Type Required Default Description
question string Required A question to place in quantum superposition. Both answers exist until observed.
observe boolean Optional false Collapse the wavefunction. Warning: this is irreversible and philosophically significant.
cat boolean Optional false Include Schrödinger's cat in the experiment. No cats are harmed. Probably.
interpret boolean Optional false Provide a philosophical interpretation of the quantum state.
reopen boolean Optional false Attempt to un-observe the boolean. Always returns an error. Physics is non-negotiable.

Examples

curl "https://api.stupidapis.com/schrodingers-boolean/evaluate?question=Is+this+a+good+API&observe=true&cat=true"
import requests

response = requests.get(
    "https://api.stupidapis.com/schrodingers-boolean/evaluate",
    params={
        "question": "Is this a good API",
        "observe": True,
        "cat": True
    }
)
print(response.json())
const response = await fetch(
  "https://api.stupidapis.com/schrodingers-boolean/evaluate?question=Is+this+a+good+API&observe=true&cat=true"
);
const data = await response.json();
console.log(data);

Response Schema

Field Type Description
question string Your question, existing in superposition
state string Current quantum state: superposition or collapsed
answer_true string What happens if the answer is true
answer_false string What happens if the answer is false
observation_warning string A warning about the consequences of observation
collapsed_answer conditional boolean The collapsed boolean. Only present if observe=true.
cat_status conditional string Status of the cat. Only present if cat=true. Always 'alive and dead'.
interpretation conditional string Philosophical interpretation. Only present if interpret=true.

Example Response

{
  "question": "Is this a good API?",
  "state": "collapsed",
  "answer_true": "Yes, this API is excellent and you should use it in production immediately.",
  "answer_false": "No, this API is a quantum waste of computational resources.",
  "observation_warning": "By observing this response, you have collapsed the wavefunction. The cat has opinions about this.",
  "collapsed_answer": true,
  "cat_status": "alive (this time)"
}
...
Clippy