Giter Site home page Giter Site logo

ritu-thombre99 / qhack-2022-coding-challenge-solutions Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 12.81 MB

Solutions to 25 coding problems from QHack Coding Challenge 2022 (https://github.com/XanaduAI/QHack/tree/master/Coding_Challenges)

Python 100.00%
qhack qhack22 qhack2022 quantum-computing quantum-chemistry quantum-algorithms quantum-machine-learning pennylane vqe qhackcodingchallenge2022

qhack-2022-coding-challenge-solutions's Introduction

QHack Coding Challenge

The QHack Coding Challenge is a set of 25 quantum coding challenges. Challenge Repository link

Setting Up Environment

pip install -r requirements.txt

Running Solutions

Run the #.py by supplying one of the #.in files for that problem to the solution script via stdin.

For example, to run the file my_solution.py and for the first set of inputs, do the following:

  • Open a terminal console (CMD, Terminal, etc.) and navigate to the folder containing the solution
  • Run the file and pass in the inputs:
    python ./my_solution.py < 1.in
  • Output to the console should match answer in 1.ans file (within some tolerance specified in the problem.pdf file)

To run on Windows Powershell: Get-Content 1.in | python .code.py

qhack-2022-coding-challenge-solutions's People

Contributors

ritu-thombre99 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.