akataba / rl-repo

Contains different reinforcement learning models
3 stars 3 forks source link

print refactor #49

Closed Farquhar13 closed 6 months ago

Farquhar13 commented 6 months ago

Adds a get_info method to the SingleQubitEnv class. This makes the step function slightly cleaner.

The get_info method returns a string that includes the alpha action, which previously was not printed.

The get_info method is inherited by the NoisySingleQubitEnv class to reduce copy/pasted code.