Harry Potter and Artificial Intelligence
by Roff

Chapter One

Harry Potter was born on July 31, 2010, but was orphaned a little over a year later on October 31, 2011. His family home was attacked by a magical terrorist on that night who ended up killing both his parents. When he tried to kill Harry, who was just a toddler, he failed. Why? It was something his very smart parents did to protect him.

The only problem was the trigger was not fully activated to make the protection work. However, Harry was smart too, even at fifteen months of age. He wasn't just smart though, he was a genius. In fact, he was a super genius.

Figuring things out was rather easy for him. He had watched his parents preparing the protection for him over several weeks so he had a good idea about it and what it needed to work. They even explained the steps to him as they set it up. They realized he was super smart so made sure to explain it all to him. He would ask questions if he needed to understand it better. As usual, he paid close attention to everything they did and said. That way he could learn and he loved to learn everything.

Then when Voldemort hit his mother with the killing curse, Harry used his wandless magic and simply triggered the protection himself since his mother never got the chance to complete the sequence. Voldemort was very quick with his curse, so Harry quickly completed the last step needed before the wizard could turn his focus on him.

When the dark wizard pointed his wand at little Harry, he was surprised to see a smirk on the toddler's face as if he knew something Voldemort did not. Voldemort was sure that the baby was too young to really know what was going on so he proceeded to kill little Harry just like he killed his parents.

He certainly could not afford to leave the child alive if he was even a possible threat to his plans as the prophecy indicated.

However, when the killing curse was cast, the invisible ward around Harry rebounded it back at Voldemort at several times the speed it was cast. Since the evil wizard was very close to the crib he did not have time to dodge his rebounded curse. He was also surprised since he thought you could not block that curse with magic. It required a physical object to block it. But somehow magic did block it. Extremely powerful magic.

The killing curse came right back, hit his own body, and killed him. However, Voldemort had done some very dark magic just for this scenario. It was to prevent his soul from leaving the world he wanted so much to rule. He became a wraith instead that would need to find a way to return himself to another body so he could continue with his plans of world domination.

Little Harry still had that smirk on his face when the wraith growled at him in anger before trying to possess him. Even as a wraith, Voldemort had more power than Harry to succeed even though the toddler was amazingly powerful, but it was the mind that he could not overcome.

The child's mind was like nothing he had ever come across. First, he was a natural Occlumens that didn't even have to try. It took zero effort on Harry's part to kick Voldemort back out of his body like it was nothing.

This prompted Voldemort to leave the house as fast as he could fly away, afraid of what else would be done to him if he didn't flee in his weakened state.

The Potters had set a trap for him and he failed to see it. He walked right into it he realized and now he had failed to kill the baby prophesied to defeat him. In fact, he was the one defeated …temporarily at least. He swore to find out the extent of the prophecy as soon as possible. Hearing just the first part and acting on it was obviously not a good idea, he told himself as he fled.

Harry realized that Voldemort did not completely die. He stored that information away so he could give it more thought later. Right now, his mind needed to focus on something else because he was very sad at the loss of his mother, as he looked down at her unmoving body. He assumed his father was killed by Voldemort too so he allowed himself to cry, which was not something he did often. For the most part, he quit crying after he turned six months old.

He started talking instead and communicating properly. His parents were shocked, of course, at how smart he was. They were geniuses too. His father's IQ was very impressive but his mum's was even higher. However, Harry's IQ, as was discovered later, was higher than theirs added together, higher than any other in recorded history. Of course, they currently had no way of measuring an IQ that high.

If that wasn't impressive enough then it should be mentioned that Harry was also very powerful magically. But it was his massive intelligence that allowed him the understanding required in how to use that power.


When Harry found himself at his Aunt Petunia and Uncle Vernon's house, along with his cousin Dudley, he was shocked. He thought for sure that his mum and her sister did not see eye to eye. He was positive his mum did not like Uncle Vernon. He had vivid memories of his mum's rants about her terrible brother-in-law.

From his short introduction to his relatives he was not certain he was going to like them either.

However, Harry decided to make the most of it. He had a lot of ideas he wanted to explore because he was certain at some point he would have to face Voldemort again. The prophecy that brought the mad man to his house was sure to bring him back for revenge. After all, Harry was the one that got away. He was also the one in the prophecy and so Voldemort would keep coming after him.

"Boy, we've decided to give you the cupboard under the stairs to sleep in." Uncle Vernon told little Harry, interrupting his thoughts and plans.

Harry looked up at him then walked over to the small opened door and peered inside. There appeared to be an old, stained crib mattress in there that had seen better days. There were cobwebs, spiders, and a good bit of dust.

Harry walked back toward his uncle and looked up at him.

"No," he said shaking his head. "That will not do. I'll need my own bedroom. I believe you have more than enough and will even have an extra left over if my calculations are correct."

Vernon started sputtering, shocked that his little nephew could talk so well and even refuse to obey him. Then he wondered what calculations he was referring to.

"You listen here you little freak!" he said after getting his wits, or lack thereof, about him. "I'll not have you disobeying me on your very first day. You will do as your told or else!"

Harry waved his little hand at Vernon and all of his clothes turned a hot pink color.

As Vernon tried to comprehend that, Harry informed him, "If you don't provide me with a proper bedroom like you are supposed to do then I will permanently turn all your clothes that same color pink. Even if you buy new ones."

When Vernon finally stopped sputtering, he threatened Harry. "How about I just beat that magic out of you?"

Remaining calm, Harry responded, "If you lay a finger on me, then I'll be forced to show you I know a lot more magic than just a few color changing charms." Of course, Harry was not going to tell him that his magic was not matured enough to do some of them but he purposely left that info off.

Vernon came at him anyway.

Harry waved his hand again and Vernon appeared to be frozen. He was hit with a Petrificus Totalis which caused it. Vernon then fell over backwards with a big crash since he was a tall and very obese man.

Harry turned to his aunt who watched the whole thing and was in shock more from what her nephew could say and do than anything else. In comparison, her Dudley couldn't even talk yet or walk properly and he was a few months older than his cousin.

"Aunt Petunia? Can you show me to my bedroom now?" he asked sweetly, using his bright green eyes as weapons.

She shook her head to clear it. She remembered her sister Lily sending her a picture and a short letter in the mail when she reached out to her in hopes to make amends. The picture was of Lily with Harry sitting in her lap as they read a book. James must have taken the picture.

She then recalled that Harry appeared to be reading the book too and not just listening to his mother. The letter said that her son Harry was super smart but she figured her sister was just bragging about her child.

She was confident she knew better now. At just 15 months he was walking and conversing like a young adult.

She looked down at her little nephew, "Certainly, Harry. It's upstairs. Do you need help getting up the stairs?" she asked him.

"Thanks for asking! I think I can make it on my own though. I'll definitely give it a try."

Harry had to use both hands and feet but he made it up the stairs just fine on his own.

"This will be your room, Harry," she said showing him the smallest bedroom. "Right now, it's Dudley's playroom for all his toys. He does tend to break quite a few, the little rascal. You can sleep in the guest bedroom for now but I want to keep it as a guest bedroom. Sometimes Vernon's sister comes to visit. I'll get you a bed and furniture for this room and clear out all of Dudley's toys for you."

"Can you leave the broken ones? I think I can do something with them," Harry said surveying all the broken electronic toys.

"Um …sure," she said confused.

"Just so you know, Aunt Petunia, I won't be a bother," Harry assured her. "I'm fully house broken as I can take care of my business in the loo by myself. I can also bathe myself. However, I'm still just 15 months old so if I need you to do something for me I can't do, I'll be sure and let you know. Is that alright with you?" he asked looking up at her.

"Sure. That'll be fine," she said as she looked down at him.

"As I get older and bigger, I should be even less of a bother to you and more self-sufficient."

Petunia just nodded.

"Now, if you'll excuse me, I need to take a nap."

With that Harry headed to the guest bedroom, climbed up, and laid down on the bed, leaving a very shocked and confused Petunia behind.

Dudley always fussed when she tried to get him to take a nap. He would eventually doze off by himself if she quit trying to force him. Yet Harry knew he needed a nap and managed it himself. What in the world have they got themselves into by housing her sister's son?

She had never in her life seen a child this smart. She knew Lily was smart, something she didn't get blessed with, including magic, and she heard James was smart too, but Harry was beyond anything she had ever witnessed in her life. She was not sure she was up to the challenge and she was positive Vernon would never be. They would just have to wait and see how Dudley reacts once he gets old enough to understand.


Harry skipped his early years education as it was too simple for him and he finished primary school the first year he went at age 5. It was required he attend so he did. It took him that long only because he had a lot on his plate that year so took his time. The next year he completed secondary school and then went on to Further Education at age 7.

When he was nine years old, he graduated from Oxford with a bachelor's degree in computer science and then when he was ten he graduated from Oxford with a master's degree in Artificial Intelligence. Harry was even mentioned in the news since he graduated university so early. Very few people had achieved a college degree at that young age so people were fascinated with him.

He was very interested in the programming and robotics aspect in regards to AI. He had ideas of where to take AI development no one else was even imagining.

His relatives refused to pay for his education but Harry didn't need their help. He received full ride scholarships that paid for everything. The universities were falling all over themselves to get Harry to come to their schools so he received scholarships from several before deciding on Oxford and declining the rest.

He was still staying with the Dursleys only because he was still a child. They thought he was a freak for his magic but they also thought he was a freak for his intelligence. One thing was certain though. Harry was definitely freaky smart.

He was in his expanded bedroom, right in the middle of lots of development using AI, when he received an owl from Hogwarts. It was a surprise as he was so busy he forgot all about Hogwarts. He had just turned eleven so it was his birthday, not that the Dursleys ever celebrated it. And, of course, at eleven you get your letter from Hogwarts.

Harry read it but he already knew pretty much what it said. It was a novelty at this point. Making up his mind, he decided he would finish up on this bit of code he was working on so he didn't lose his train of thought. Then he would get cleaned up and go to Diagon Alley. He would finally have to buy an owl just to respond and send his reply back.

He could pick up all his first year supplies while there and get fitted for his robes, he decided. Let's not forget about his wand. He was definitely looking forward to that.

He had been going to Diagon Alley regularly for a few years now to visit the bank and to buy books. He usually wore a cap and glasses to keep from being recognized. Three years ago, while still in college, he took 100,000 galleons out of his student vault, converted it to 500,000 pounds, and opened a bank account in a regular bank. His student vault was refilled from the family vault to its regular capped amount of 250,000 galleons every year on his birthday so he wasn't worried about draining his student account.

Harry then started investing his money in the stock market and made a killing, especially in the technology sector. He grew his money to an amazing amount, in the millions of pounds, simply because he needed to buy expensive things for his AI development. His investments were now set to continually grow his money with very little input. He had plans to start a company with that money when he became an adult and could sign legal contracts.

The money should be very well built up by then as it had many more years to grow. Of course, if anything popped up that had a promise of increasing the investments more rapidly, then he would put the necessary time in and increase his portfolio even more.

Harry bought magical books at Flourish and Blotts so he could use it to better his environment and satisfy his curiosity. He had a vigorous appetite for knowledge so tended to educate himself in several different fields. Harry's speed in devouring books was phenomenal. And he remembered all of it. Those who used the speed reading technique would not be able to keep up with him.

For instance, his small bedroom was expanded using runes after Harry read a few books on the subject. Harry also studied Charms, Transfiguration, Defense, Arithmancy, Herbology, Potions, Astronomy, Care of Magical Creatures, and History of Magic. He figured he needed to be better versed in magic as he was going to spend seven years studying it at Hogwarts. He didn't bother with Muggle Studies or Divination.

Unfortunately, he would not be able place out of most classes and years like he did with regular school. While he could certainly learn and pass all the theory and the classes that did not require magic, he would not be able to jump over years with the practical, especially wanded classes.

Why? Because in magic the body has to mature before you can use spells taught to the higher years. The eleven and twelve year olds have to stick with smaller magic because their bodies are not developed well enough with their magic. As the body matures and you get into higher classes then you are exposed to spells that require more magic and are usually more complicated.

Sure, Harry is magically stronger than most his age and can even perform wandless magic, but that is more due to his intelligence in figuring out how to make it work with only a little help from being a bit more powerful.

Even with Harry's extra power he will have to mature more and as his magic grows he will be able to do more. It's basically a waiting game when it comes to magic. If your smart and can learn all the theory you will be that much further ahead but will still have to wait to perform that higher level magic because your body and magic are simply not mature enough yet.

There are always exceptions to the rule, but basically that's the way the cookie crumbles.

After shutting down his project and taking a shower, Harry got dressed and walked over to Mrs. Figg's house.

When she answered the door, he asked if he could use her floo to get to the Leaky Cauldron. She acquiesced and invited him in. She didn't bother with asking if he needed someone to go with him. She had conversations with Harry before and she was well aware of his ability to take care of himself. He was already a college graduate after all. It didn't matter that he was only eleven.


Harry stepped out into the Leaky Cauldron and pulled his cap further down to cover his face more. There were quite a few people in there that day. Squaring his shoulders, Harry made his way to the back and out the door.

He tapped the bricks with his finger and walked through the archway into the alley. It was busy too. Harry continued on to the bank to get some galleons for his school supplies. When he walked up to a teller that wasn't busy, Harry presented his vault key and greeted the goblin in his own language of Gobbledegook.

The goblin was pleased and answered back.

Soon another goblin showed up and ushered Harry to a mine car and took him down to his student vault. Harry filled up his bag with galleons and headed back to the surface. It was time to shop.

He decided to get measured for his robes first so they would have time to get them ready. After that, he would shop for his other supplies. Thinking he would need a good trunk to carry it all in, he left Madam Malkin's and headed for Tristan's Trunks.

There were trunks for everything and every size in the store. Typically, he would be getting a one compartment first year school trunk but with his AI project he would need a place to work on it privately while at Hogwarts. He was going to need the ability to expand as his work grows too.

Shopping around he found a seven compartment trunk that would work. It was expensive but he would definitely need it. One compartment held a large house with 5 bedrooms upstairs. It also had an office, a library, exercise room, training room, kitchen, dining room, and a basement. There was a very large outdoors right outside the back door.

The back garden was fenced in with a white picket fence. The gate opened easily. It led to the meadow that was spread out on the other side of the fence. There was a forest in the distance and large hills beyond that. It was beautiful and completely climate controlled.

Everything was customizable and could even be resized if needed. He especially liked the basement space. It was empty, just waiting for him to turn it into his lab and setup all his computers and equipment. He had technology that he invented so it would also serve as a good private place no one else could get to, that is once he added his own blood wards for protection.

Harry walked out of the shop with that trunk keyed to him, shrunk down and in his pocket. Tristan was happy to make such a large sale, but there was something about that first year he couldn't quite put his finger on.

After Harry had collected all the supplies and needed equipment on his list, he went back to Madam Malkin's and picked up his school uniforms and robes. They had them ready as promised. He put them all in his trunk then made his way to Eeylops Owl Emporium to get his owl.

He picked out a snowy owl which he promptly named Hedwig, a name he remembered from a magical book he read. He also bought treats and a cage for her then put the treats in his new trunk while he carried Hedwig in her cage.

He then went straight to Olivander's to get his wand.

It was a somewhat dark store with low lighting. Long, thin, dusty boxes stacked everywhere on the shelves. Olivander came sliding into the room on a ladder attached to the shelves of wands after Harry entered his shop.

"Ah! Mr. Potter! I've been expecting you," he said in greeting as he nimbly climbed down from the ladder. "I remember your father James' wand, eleven inches, mahogany, pliable, with a dragon heartstring core. Excellent for Transfiguration. Your mother Lily, on the other hand, preferred ten and a quarter inch willow, swishy, with a unicorn hair core. It was better suited for charm work. I believe they both made their mark in those particular fields."

Harry nodded in agreement.

"I say she preferred but it's the wand that chooses the wizard, Mr. Potter," he told Harry as his tape measure jumped up and started measuring Harry in all sorts of strange ways. "I wonder which wand will choose you, Mr. Potter?" he asked curiously.

"I say we delve into it, Mr. Olivander," Harry responded. "I'm quite looking forward to finding that out myself."

"Yes! Let's get started, shall we?" he asked with a skip in his step as he headed back into the shelves, this time on his feet instead of the ladder.

He came back out a minute later with several boxes of wands and laid them on the counter. Unboxing one, he moved aside the silk covering it and lifted it out carefully. He then gently handed it to Harry for a try.

Harry took it and started to cast a real spell but Olivander reached over and quickly snatched it from his hand.

"No! That will never do. There's no telling what destruction would happen if you used that wand, Mr. Potter," he said with wide eyes and a startled look.

They continued testing wands for quite some time. Although Harry, after the next one simply took the other wands in his hand then gave it back when he did not feel the wand choosing him. They went through quite a few wands this way as it was a lot quicker and safer than waving them as he discovered.

Olivander then had Harry hang on as he had an idea that he wanted to try. He went back into the stacks and came back with one wand box. He waved his wand and sent all the others back to where they belonged.

He placed the wand he brought onto the counter, opened the box, and very carefully handed it to Harry.

"Try this one, Mr. Potter," he said with confidence.

Harry took the wand and immediately a warmth filled him. The inside of the store became very windy all of a sudden as it swirled around him like a mini tornado. He knew at that point the wand had chosen him.

"Yes, Mr. Potter. The wand has chosen the wizard. I was surprised when the holly wand with phoenix feather core did not choose you. My experience tells me it should have but it didn't. That's probably good because that wand is the brother wand to the one that was used to try to kill you when you were a baby. The phoenix who provided the feathers for those two wands has never provided any others. There's a possibility those two wands could get temperamental if used against each other."

"So, what makes up my new wand, Mr. Olivander?" Harry asked him as he admired it.

"Your wand, Mr. Potter, is an old wand made from a giant Redwood tree. That's the reason for the red tone. The core is the more interesting part, though, because the core in that wand you hold in your hand is a thunderbird tail feather." He paused before continuing. "To be chosen by that wand is a great honor, Mr. Potter. Thunderbird tail feathers in a wand are very picky with whom they will choose to wield them."

"I see," Harry said as he looked the wand over carefully. "Anything else?"

"Great for Transfiguration. In fact, they've been known to produce some of the most powerful Transfiguration spells ever seen."

"I'll take it!" he said excitedly. "Add in a black dragon hide wrist holster," he said pointing at one of the ones in the glass case under the counter, "and we can settle up."

"I will expect great things from you, Mr. Potter," he told him as he set the holster on the counter.

After Harry paid for the wand and holster, he put the holster onto his right arm and inserted the wand into it. He then practiced a few times releasing it into his hand, each time going faster than the last. Olivander was impressed at his prowess and picking up the use of the holster so quickly.

Yes, he was expecting great things from Mr. Potter.