Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented quantopedia command #196

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

solodov
Copy link
Collaborator

@solodov solodov commented Jun 27, 2024

Fixes #177

Output looks like this:

>qua

Observer
  Observers are known to frequent quantum events.
  They will measure qubits in order to find out their values.

BlueFoam
  Blue foam are the simplest kind of quantum errors.  Blue foam
  are usually found in the |0> state and can be measured.
  They will often slime their opponents with small fracts of X gates.

GreenFoam
  Green foam are a simple kind of quantum error.  Green foam
  are usually found in the |0> state and can be measured immediately.
  They will often ooze, which will change their opponent's phase

RedFoam
  Red foam are a slightly more dangerous type of quantum error.
  They are usually found in the |1> state and must be flipped
  before they can be safely measured.

PurpleFoam
  Purple foam are a combination of red and blue form.
  They are found in a |+> state which is a combination of
  the |0> state and |1> state.  They can be safely measured
  once a Hadamard gate has been applied.

SchrodingerCat
  Schrödinger's cat are found in a superposition of zero and one.
  This cat contains multiple qubits that are entangled so that all
  qubits are in the same state.  That is, all qubits are in a superposition
  of all ones or all zeros.  These cats have been known to apply
  Hadamard gates with their claws and measure opponents.

@solodov
Copy link
Collaborator Author

solodov commented Jun 27, 2024

There's an open question around ambiguous commands, quit and quantopedia clash unless input is long enough, e.g. qua above. With change as it is q will no longer quit, it will have to be qui or longer. I have some ideas how this can be addressed, but it would change the experience in some way.

One idea is to make Quit case-sensitive, so only Q (and longer) would map to quit command. This is the simplest change I can think of. What do you think?

Copy link
Collaborator

@dstrain115 dstrain115 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing Quit to be capitalized seems good to me.
(in a follow-up PR though).
Thanks for the improvements!

@dstrain115 dstrain115 merged commit eb4c6ad into quantumlib:main Jul 1, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quantum RPG: 'q' exits game when meant 'quantapedia'
2 participants