Skip to main content
Tweeted twitter.com/StackMma/status/1002823642105950209
deleted 64 characters in body
Source Link
m_goldberg
  • 108.1k
  • 16
  • 104
  • 259

I want to generate 8 random variables (in reality to form 4 complex numbers) such that the sum of the 8 variables squared is equal to unity. The aim of generating such numbers is to perform a quantum simulation of 4 qubits (thus the 8 parameters). I've been trying to use RandomVariate[NormalDistribution[]], but I'm not quite sure how to satisfy the constraint previously described before. I'm not familiar with Monte-Carlo simulations.

Thanks in advance!

I want to generate 8 random variables (in reality to form 4 complex numbers) such that the sum of the 8 variables squared is equal to unity. The aim of generating such numbers is to perform a quantum simulation of 4 qubits (thus the 8 parameters). I've been trying to use RandomVariate[NormalDistribution[]] but I'm not quite sure how to satisfy the constraint described before. I'm not familiar with Monte-Carlo simulations.

Thanks in advance!

I want to generate 8 random variables (in reality to form 4 complex numbers) such that the sum of the 8 variables squared is equal to unity. The aim of generating such numbers is to perform a quantum simulation of 4 qubits (thus the 8 parameters). I've been trying to use RandomVariate[NormalDistribution[]], but I'm not quite sure how to satisfy the constraint previously described.

Use code blocks
Source Link
Carl Woll
  • 131.7k
  • 6
  • 246
  • 359

I want to generate 8 random variables (in reality to form 4 complex numbers) such that the sum of the 8 variables squared is equal to unity. The aim of generating such numbers is to perform a quantum simulation of 4 qubits (thus the 8 parameters). I've been trying to use RandomVariate[NormalDistribution[]]RandomVariate[NormalDistribution[]] but I'm not quite sure how to satisfy the constraint described before. I'm not familiar with Monte-Carlo simulations.

Thanks in advance!

I want to generate 8 random variables (in reality to form 4 complex numbers) such that the sum of the 8 variables squared is equal to unity. The aim of generating such numbers is to perform a quantum simulation of 4 qubits (thus the 8 parameters). I've been trying to use RandomVariate[NormalDistribution[]] but I'm not quite sure how to satisfy the constraint described before. I'm not familiar with Monte-Carlo simulations.

Thanks in advance!

I want to generate 8 random variables (in reality to form 4 complex numbers) such that the sum of the 8 variables squared is equal to unity. The aim of generating such numbers is to perform a quantum simulation of 4 qubits (thus the 8 parameters). I've been trying to use RandomVariate[NormalDistribution[]] but I'm not quite sure how to satisfy the constraint described before. I'm not familiar with Monte-Carlo simulations.

Thanks in advance!

Source Link

Random normalised variable generation

I want to generate 8 random variables (in reality to form 4 complex numbers) such that the sum of the 8 variables squared is equal to unity. The aim of generating such numbers is to perform a quantum simulation of 4 qubits (thus the 8 parameters). I've been trying to use RandomVariate[NormalDistribution[]] but I'm not quite sure how to satisfy the constraint described before. I'm not familiar with Monte-Carlo simulations.

Thanks in advance!