Skip to content

stared/cdl-the-tomorrow

Repository files navigation

The Tomorrow - CDL Quantum Hackathon 2021

Project Description

We optimize a two-dimensional grid with k types of tiles for map generation with respect to:

  1. constraints
  2. cost function (energy)

The cost function can be set arbitrarily or derived from probabilities from a pattern sample. In this case, the cost is the negative log-likelihood of the probability.

Deep learning methods (especially Generative Adversarial Networks) offer a way to generate images based on training data (even 1024x1024 photorealistic faces). There are algorithms precisely for extending patterns. Yet, while they work decently for images, they are typically very bad at fulfilling constraints and any other exact patterns.

This tile problem can be naturally mapped to 2-d architectures of superconducting qubits or cold atoms in an optical lattice. We solve it with quantum annealing - simulated locally and using D-Wave devices. In a typical setting, we use the same wights for the whole system - which may make it easier for some implementations (e.g. optical lattices).

Still, it is possible to optimize it with a circuit-based Quantum Approximate Optimization Algorithm (we solved that with PennyLane).

This problem can offer good solutions even in presence of noise (as in this case it combines quantum annealing and classical annealing) - hence used with present-day noisy quantum devices. It is unlikely to number theory problems in which we cannot be “off by one”.

While we use one-hot encoding, for some computing models (allowing to use of more than two-particle operators) it is possible to do a more qubit-efficient binary encoding. This problem can naturally gain performance for many-level systems (qutrits and more) - as it will allow encoding more tiles kinds per node/wire.

Setup

No setup

Just open in Colab just_run_it.ipynb.

Local setup

You need git and conda. Install Python dependencies by running in the command line:

git clone https://github.com/stared/cdl-the-tomorrow.git
cd cdl-the-tomorrow.
conda env create -f environment.yml

To connect to D-Wave you need API Token for your D-Wave account. Create path y and fill the Authentication token; leave other fields with their defaults.

dwave config create

To run an interactive visual D-Wave Inspector, set it up with:

dwave install inspector

If you want to run in in Jupyter Notebook, see How to set up Anaconda and Jupyter Notebook the right way.

How to Use

Use Jupyter notebook to open files (such as just_run_it.ipynb).

Challenge(s) You Solved

Project Details

  • Further walkthrough of what you did
  • Links to any Jupyter notebooks/scripts

Market opportunity

Quantum CAD

Urban Planning

We can find sprawls in every city. It is not necessarily about the population size or class stratifications, these "disconnected environments" emerge in every part of the world as a result of flawed urban planning. Peter Calthorpe, a well-known architect and urban planner, points out that this phenomenon accounts for "not just environmental impacts, but our social well-being, the economic vitality, our sense of community and connectedness" [1]. Billions of dollars are spent on traffic optimization, respiratory and heart diseases, carbon footprint reduction, land consumption optimization, residential segregation mitigation (just to name a few common issues). And those problems are still evolving. Right now, more than half of the world's population already live in cities, and another 2.5 billion people are projected to move to urban areas by 2050 [2].

This, unfortunately, might lead to deplorable consequences:

At the same time that we are solving for climate change, we are going to be building cities for three billion people. That is a doubling of the urban environment. If we do not get that right, I am not sure all the climate solutions in the world will save mankind.

(c) Peter Calthorpe, TED lecture "7 principles for building better cities" ([1])

Historical background from Stanislas Chaillou's "The Advent of Architectural AI, Historical Perspective" [3]

Urban planning and systematic architectural design as tools help to solve some of those issues. These methods have been developing for about a century now [3]. The conception of this design trend can be traced back to the early 1920s, to the modularity era. Walter Gropius, Le Corbusier [4], they proposed modular grid and repetitive patterns in order to achieve technical simplicity and affordability to accommodate growing city populations. These trends have been adopted by many countries in different corners of the world from Eastern Europe and Asia to North and Latin America. However, zoning and clustering trends (many of which were adopted for good reasons, i.e. as the consequences of wars' disruptions and urbanization) have reinforced these sprawls which we are experiencing today [5]. Furthermore, this LEGO-like conception of architecture has found criticism for the indifference to social expression and pre-existing cultural sites. And the homogeneity and complexity of structures started discouraging architects.

Then in the 50s, the advent of computation reestablished systematic design with an opportunity to realize scalable solutions and as a result, the first prototypes of CAD and CATIA emerged. Over the following decades, with growing computational power and storage capacities, 3D design software solutions became widely adopted. It led to the creation of Parametricism, "communicating certain commands to the computer while isolating key parameters impacting the result" [3]. With these tools, extraordinary architectural designs have been created (i.e. Zaha Hadid Architects' work [6]).

However, there are several challenges associated with modern parametric design solutions.

Parametric modelling failed to account for (1) the compounded effect of multiple variables at once, (2) the imperative of space organization and style over strict efficiency, (3) the variability of scenarios, and finally (4) the computational cost of simulations.

(c) Stanislas Chaillou, The Advent of Architectural AI, Historical Perspective ([3])

In order to overcome these drawbacks, AI solutions were proposed [7], [8].
This continuous progression from Modularity, to Computational Design, Parametricism and AI all leads us to the proposal of quantum-methods-based architectural optimization solutions. With the overall simplicity of the introduction of constraints (parameters), we believe the quantum approach will boost the computational power, mitigate certain computational errors and improve the overall design.

For the most efficient and stable architectural and design solutions, we tend to copy nature as nature creates the ‘perfect’ patterns. Therefore, for creating the most suitable optimized solutions, we need to mimic nature and, hence, use quantum methods.

Market

The above-mentioned reasons make the urban planning software and services market especially attractive. The overall market projection is estimated to reach ~US$ 211.4 billion by the end of 2027, with a rapid growth rate (CAGR of around 7% from 2019 to 2027) [9]. The most prominent urban planning interest is expected to further develop in Asia, the Middle East, Africa and Latin America.

Potential customers

Architectural software solutions

  • AutoDesk
  • Rhino (especially, their Grasshopper 3D solution)
  • CATIA
  • SketchUp
  • Revit

Urban planning companies

  • Public sector
  • Real Estate & Infra Companies
    • HDR (and their UrbanFootprint software)
    • Zaha Hadid Architects
    • SOM
    • WSP
    • ARUP
    • Populous

Other business applications

  • SAAS for interior and indoor designs, master plans creation
  • Product design
  • Engineering: circuit design optimization
  • 3D computer graphics (e.g. game design)
  • Board games design
  • Fiber links, metros and power grid optimization (e.g. as a part of the urban design solutions)

The Pitch

Presentation

Contributors

  • Ravindra Babu - Data Scientist and Topological Data Analysis enthusiast, who is passionate about building impactful technological solutions to drive positive change
  • Klem Jankiewicz - Quantum Flytrap - Designer who works in the intersection of STEMs and art, providing a creative approach to education and constantly challenging herself
  • Piotr Migdał - Quantum Flytrap - Quantum physicist, data vis specialist and AI consultant with unlimited curiosity and passion for science
  • Victor Onofre - Quantum Engineer and a Quantum computing graduate, who wants to be on the frontlines of quantum technologies developments
  • Ekaterina Sokolovskaya - Quantum Nanoscience graduate and Entrepreneur who is driven by creating an added value by introducing high-tech solutions